View Single Post
  #7  
Old 07-28-2009, 06:48 PM
EvoZak
Sarnak
 
Join Date: May 2008
Location: Midwest
Posts: 72
Default

Yeah, it's making a determination if it is green to you, or blue, or yellow, etc.

What's really confusing is how the xp packets are sent with the whole 330 ratio deal...

So the formula for xp is mobLevel^2 * 75 * 35 / 10. So for a 2nd level mob, you just got 1050 xp, which is enough in one shot to level you to 2nd level. Oddly, this seems necessary as anything less than 1000 xp at 2nd level gets you negative xp. Why? Because the way the xp packets are sent, it uses a 1 to 330 ratio.

the way the XP update packets are sent appears to be like:

((XP - currentLevelXP) / (nextLevelXP - currentLevelXP)) * 330

So for example, taking out a 2nd level orc at 1st level it would be:

(1050 - 0 / 1000 - 0) * 330 or 346

at 2nd level we would be at

(1050 - 1000 / 8000 - 1000) * 330 or 2


Needless to say, I'm confused on the way XP is sent in packets in the emulator. Probably missing something...
Reply With Quote