• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Feature Vip players - random experience animation color

Gesior.pl

Mega Noob&LOL 2012
Senator
Joined
Sep 18, 2007
Messages
2,968
Solutions
99
Reaction score
3,385
Location
Poland
GitHub
gesior
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:
PHP:
 premiumDays =
Add:
PHP:
 vipDays =

After:
PHP:
premiumDays,
Add:
PHP:
vipDays,

creature.h
Under:
PHP:
int32_t mana, manaMax;
Add:
PHP:
uint32_t vipDays;

creature.cpp
Replace:
PHP:
if(color < 0)
With:
PHP:
if(color < 0 || vipDays > 0)

iologindata.cpp
Replace:
PHP:
query << "SELECT `id`, `name`, `password`, `premdays`,
With:
PHP:
query << "SELECT `id`, `name`, `password`, `premdays`, `vipdays`,

Under:
PHP:
account.premiumDays = result->getDataInt("premdays");
Paste:
PHP:
account.vipDays = result->getDataInt("vipdays");

Under:
PHP:
player->premiumDays = account.premiumDays;
Paste:
PHP:
player->vipDays = account.vipDays;
 
Will be helpful if Vip Players can login if server full (No queue)

PS.: There are two vip systems:
- vipdays
- vip_time
 
Good job, but the server crashed on logging account (win7 32 86-bit).


Now it's working good, i had to install (win7 64-bit) to compile using Dev-C++ (4.9.9.2).

Put
Code:
	else if (!getPlayer())
	color = 215;
after
Code:
   	if(color < 0 || vipDays > 0)
	color = random_range(0, 255);
That would be nice.
 
Last edited:
Will be helpful if Vip Players can login if server full (No queue)

PS.: There are two vip systems:
- vipdays
- vip_time


-----
bump
 
If server crash at begin, try to rebuild all.
 
Back
Top