Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 08-19-2012, 10:01 PM
Randymarsh9
Dragon
 
Join Date: Dec 2007
Posts: 612
Default Remove level exp?

Does anyone know a way to remove or lower someone's experience via a quest?
Reply With Quote
  #2  
Old 08-20-2012, 05:37 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,779
Default

Not sure exactly what you are trying to do, but there are multiple ways to modify someone's experience or level in the wiki. Try these 2 guides:

http://www.eqemulator.net/wiki/wikka...=QuestTutorial

And

http://www.eqemulator.net/wiki/wikka...a=QuestObjects

One example being:

Code:
SetEXP(set_exp, set_aaxp, resexp=false)
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #3  
Old 09-21-2012, 04:53 AM
Figback65
Sarnak
 
Join Date: Aug 2009
Location: 2131231231
Posts: 57
Default

I would also like to know how to remove experience from a person. I reviewed the 2 links you posted Trev and after massive research through other quests, I have only found ways to take a persons level away which starts them at 0 exp for that level. I have not figured out a way to take a set number amount of exp away, like you can give it with quest::exp(500); I tried to use (-500) but that didnt work either.

If this will help, the reason I am wanting this is because I am trying to make a quest to allow the npc to take a set amount of xp away from the player in exchange for an itemID. I have found a quest on here that will take you to a certain level, but again that resets ur exp to 0 in that level.

Any ideas? Thank you
Reply With Quote
  #4  
Old 09-21-2012, 07:43 AM
wolfwalkereci
Discordant
 
Join Date: Dec 2005
Posts: 266
Default

Eww might not be able to do that but in theory you should be able to as the info is stored in the db. I'll poke around as its an interesting question. If I stumble across how its done I'll post again and if you figure it out let me know. I like odd, interesting stuff.
Reply With Quote
  #5  
Old 09-21-2012, 07:58 AM
chrsschb
Discordant
 
Join Date: Nov 2008
Location: Alabama
Posts: 410
Default

You may have to use a custom spell effect to do it, akin to how Sacrifice works.

Not even a GM rez can restore that experience loss.
Reply With Quote
  #6  
Old 09-21-2012, 09:43 AM
c0ncrete
Dragon
 
Join Date: Dec 2009
Posts: 625
Default

Quote:
Originally Posted by Figback65 View Post
I would also like to know how to remove experience from a person. I reviewed the 2 links you posted Trev and after massive research through other quests, I have only found ways to take a persons level away which starts them at 0 exp for that level. I have not figured out a way to take a set number amount of exp away, like you can give it with quest::exp(500); I tried to use (-500) but that didnt work either.

If this will help, the reason I am wanting this is because I am trying to make a quest to allow the npc to take a set amount of xp away from the player in exchange for an itemID. I have found a quest on here that will take you to a certain level, but again that resets ur exp to 0 in that level.

Any ideas? Thank you
quest::exp() should only take positive numbers.

if you only want to remove 500 normal (not aa) exp, you likely want to use something like this:

Code:
$client->SetEXP( ($client->GetEXP()-500), $client->GetAAExp() );
Reply With Quote
  #7  
Old 09-21-2012, 10:42 PM
Figback65
Sarnak
 
Join Date: Aug 2009
Location: 2131231231
Posts: 57
Default

Quote:
Originally Posted by c0ncrete View Post
quest::exp() should only take positive numbers.

if you only want to remove 500 normal (not aa) exp, you likely want to use something like this:

Code:
$client->SetEXP( ($client->GetEXP()-500), $client->GetAAExp() );
Awsome that works! I have some issues with it sometimes giving exp back or maybe it delevels past 1 back to 60. That is probably some issues with my server. Wierd bugs to fix!

Thank you!
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

vB 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 01:27 AM.


 

EQEmulator is a trademark of The EQEmulator Team.
Everquest is a registered trademark of Sony Computer Entertainment America Inc.
EQEmulator is not associated with Sony, SOE, & Affiliates, in any way.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3
All material copyright of their respective artists.
All other materials Copyright© http://www.eqemulator.net.