Log in

View Full Version : Remove level exp?


Randymarsh9
08-19-2012, 10:01 PM
Does anyone know a way to remove or lower someone's experience via a quest?

trevius
08-20-2012, 05:37 AM
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.php?wakka=QuestTutorial

And

http://www.eqemulator.net/wiki/wikka.php?wakka=QuestObjects

One example being:

SetEXP(set_exp, set_aaxp, resexp=false)

Figback65
09-21-2012, 04:53 AM
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

wolfwalkereci
09-21-2012, 07:43 AM
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.

chrsschb
09-21-2012, 07:58 AM
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.

c0ncrete
09-21-2012, 09:43 AM
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() );

Figback65
09-21-2012, 10:42 PM
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() );

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!