EXP bug after 2bil fix

smoochy boys on tour

JSB123

LOMCN Veteran
Veteran
Aug 7, 2004
370
0
63
S.Yorkshire
No sure if this is really the right section. But, thought i'd share this info, which can be usefull if you have very high exp rates set.

I've discovered that after roughly 2billion exp, the CHANGEEXP + comamnd will bug the players exp, to over double what is meant to be needed to lvlup, and they return to 0% after killing another mob.

So if you have exp values above 2bil and you have the CHANGEEXP + command in your server NPC's, QFunction items, or MapQuest scripts,

simply change the command from

Code:
[@Whatever]
#ACT
CHANGEEXP + 800000
BREAK

to

Code:
[@Whatever]
#IF
CHECKEXP > 1980000000
#ACT
BREAK
 
#IF
#ACT
CHANGEEXP + 800000
BREAK

diverting the command away from anyone it may bug.

Again, not sure if this is supposed to be in here, but it moves down less often that other sections and will enable more people to see it over time. I appologise if you need to move the topic.
 
Last edited:

lifco

Untrusted Member
Legendary
Golden Oldie
Loyal Member
Jul 6, 2004
3,400
66
195
UK/Italy
n1 jsb iam sure it will help new server owner loads, but there is other ways for doing this, i mite get some stuff out my self soon

lif
 

Sean

Developer
Golden Oldie
Loyal Member
May 13, 2003
699
0
172
Aye, it's all down to the wordsize which is hardware and OS restricted.

Using the script is one way to get around that :D
 

Dataforce

LOMCN VIP
VIP
Apr 15, 2003
2,080
0
283
Depends how your emulator is coded.

If you bug is at 2bill then your max exp is: 2147483647
if its 4bil then its: 4294967295
if your lucky enough to have an emul that was coded with an int64 you get a nice: 9223372036854775807