Originally Posted by Figback65
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:
$client->SetEXP( ($client->GetEXP()-500), $client->GetAAExp() );