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 09-21-2012, 04:53 AM
Figback65
Discordant
 
Join Date: Aug 2009
Location: 2131231231
Posts: 255
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
  #2  
Old 09-21-2012, 09:43 AM
c0ncrete's Avatar
c0ncrete
Dragon
 
Join Date: Dec 2009
Posts: 719
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
  #3  
Old 09-21-2012, 10:42 PM
Figback65
Discordant
 
Join Date: Aug 2009
Location: 2131231231
Posts: 255
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


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 12:59 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