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 10-01-2011, 11:22 AM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,498
Default

zone\questmgr.cpp line 614 shows QuestManager::exp(int amt) which is called by zone\perlparser.cpp block starting at line 769
Reply With Quote
  #2  
Old 10-02-2011, 11:00 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Well, it would mean editing all quests manually, but I made a function a while back that makes adding useful amounts of XP for quests easy.

Code:
AddLevelBasedExp(exp_percentage, max_level=0)
So, if you want your quest to reward 10% experience up to level 15, you could just do this:

Code:
$client->AddLevelBasedExp(10, 15);
In this example, anyone from level 1 to level 15 that completed this quest would get 10% of their level worth of experience. Anyone level 16 or higher would just get the same amount of experience that a level 15 would have gotten. So, for a level 16, they still might get 8% or so, but as your level increases, that particular quest would have lesser returns. This means you can easily make quests that scale up to a certain level range they are intended for. At the same time, they cannot be abused to gain easy experience once you are far above the intended level range.

This command isn't very useful for rewarding AA experience, but it is very nice for normal leveling experience. Instead of having to know the amounts of experience required for every level and then having to do math to figure out the amount you want them to have, you can do it all very quickly and easily with this function.

Also, for people that aren't aware, there is a similar feature built into the tasks system. You can set the experience reward in tasks to a negative value, which then gets used to do experience scaling like the command above. Level based experience percentage rewards for tasks can be set using a negative value of the max level * 100 + experience percent (IE. -510 for 10% exp up to level 5).

More details on the task settings for it can be found at the link below in the xpreward field details:

http://www.eqemulator.net/wiki/wikka...SystemDBTables
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
Reply

Thread Tools
Display Modes

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 06:17 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3