Someone requested it on MSN from me.
Made for 0.3.6pl1, not tested. I will update post if it crash server or not compile.
account.h
After:
Add:
After:
Add:
creature.h
Under:
Add:
creature.cpp
Replace:
With:
iologindata.cpp
Replace:
With:
Under:
Paste:
Under:
Paste:
Made for 0.3.6pl1, not tested. I will update post if it crash server or not compile.
account.h
After:
PHP:
premiumDays =
PHP:
vipDays =
After:
PHP:
premiumDays,
PHP:
vipDays,
creature.h
Under:
PHP:
int32_t mana, manaMax;
PHP:
uint32_t vipDays;
creature.cpp
Replace:
PHP:
if(color < 0)
PHP:
if(color < 0 || vipDays > 0)
iologindata.cpp
Replace:
PHP:
query << "SELECT `id`, `name`, `password`, `premdays`,
PHP:
query << "SELECT `id`, `name`, `password`, `premdays`, `vipdays`,
Under:
PHP:
account.premiumDays = result->getDataInt("premdays");
PHP:
account.vipDays = result->getDataInt("vipdays");
Under:
PHP:
player->premiumDays = account.premiumDays;
PHP:
player->vipDays = account.vipDays;