Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 07-26-2009, 08:21 AM
djeryv
Hill Giant
 
Join Date: Apr 2008
Posts: 234
Default Experience Tables?

I was wondering what the Experience Tables were for EQ? Like D&D has XP tables (need 1,000 for level 1 ... 2,000 for level 2). It would really help with determining what kind of XP reward to give for quests.

Also...How is XP calculated for killing monsters? Is it based of their level?

- Djeryv
Reply With Quote
  #2  
Old 07-26-2009, 08:31 AM
demonstar55
Demi-God
 
Join Date: Apr 2008
Location: MA
Posts: 1,165
Default

http://www.eqemulator.net/wiki/wikka...kka=ExpByLevel
Reply With Quote
  #3  
Old 07-26-2009, 08:34 AM
djeryv
Hill Giant
 
Join Date: Apr 2008
Posts: 234
Default

Duh...I should have looked there. Now...does anyone know how it is calculated from a monster? Is it the monster's level that calculates the XP?

- Djeryv
Reply With Quote
  #4  
Old 07-26-2009, 05:27 PM
djeryv
Hill Giant
 
Join Date: Apr 2008
Posts: 234
Default

Is the damage they cause calculated at all?
Reply With Quote
  #5  
Old 07-26-2009, 06:03 PM
pfyon's Avatar
pfyon
Discordant
 
Join Date: Mar 2009
Location: Ottawa
Posts: 495
Default

I can't find where xp is calculated from mob kills right now, but dmg is in the npc_types table (mindmg and maxdmg).
Reply With Quote
  #6  
Old 07-26-2009, 07:26 PM
djeryv
Hill Giant
 
Join Date: Apr 2008
Posts: 234
Default

yeah...I see where the damage is located. I was just wondering...for the coders in the group...what is the XP calculated from? You get a certain XP from killing monsters...it is calculated somehow. Whatever method is used, is it the same as determining if a creature is red/yellow/white/blue to you?

- Djeryv
Reply With Quote
  #7  
Old 07-27-2009, 01:53 PM
AndMetal
Developer
 
Join Date: Mar 2007
Location: Ohio
Posts: 648
Default

Check out zone/exp.cpp.
__________________
GM-Impossible of 'A work in progress'
A non-legit PEQ DB server
How to create your own non-legit server

My Contributions to the Wiki
Reply With Quote
  #8  
Old 07-27-2009, 07:31 PM
djeryv
Hill Giant
 
Join Date: Apr 2008
Posts: 234
Default

Wow...I actually can make sense out of most of that. Thank you. I do have a question about that code though...

int conlevel = Mob::GetLevelCon(maxlevel, other->GetLevel());

...does this mean it is taking the monster's level and using it to calculate?

- Djeryv
Reply With Quote
  #9  
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
  #10  
Old 07-29-2009, 12:10 AM
EvoZak
Sarnak
 
Join Date: May 2008
Location: Midwest
Posts: 72
Default

Check that, I realize now what I was missing. The xp sent in the packets is your entire xp amount, not what you've just gained. Ahh, so that's solved.
Reply With Quote
  #11  
Old 06-08-2010, 02:08 AM
Allizia
Fire Beetle
 
Join Date: Nov 2009
Posts: 5
Default

Quote:
Originally Posted by EvoZak View Post
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...
This formula does not seem to match actual experience gains (not close enough to be mods) is this correct or am I missing something?

I have a much more classic feeling formula for level tables (no 800% increase in lower levels, which means blues can be worth killing) but I need a minor tweak to the actual base experience formula given by mobs, can't find it anywhere in exp.cpp (could only find mods)
Reply With Quote
  #12  
Old 06-08-2010, 05:33 AM
Secrets's Avatar
Secrets
Demi-God
 
Join Date: May 2007
Location: b
Posts: 1,450
Default

This is because it's in features.h, look for the define EXP_FORMULA and all references to it.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 07:42 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3