This is from the retail source and has been converted.

Replace the entire function of:
Code:
CEventLua::SetLevelUpGift

With:
Code:
#ifdef __EVENTLUA_GIFT
void CEventLua::SetLevelUpGift(CUser* pUser, int nLevel)
{
	if...

Read more