Deleveling npc
Is it possible to have an npc reset your level to one and keep track of how many times it delevels you so a limit can be set for how many times you can use the npc? I have seen many deleveling scripts on here but they all seem to allow the player to choose what level to go back to. I would like to find one that only sets your level to one and limits the amount of times you can do it or a tutorial so i can make my own
|
... an oddity thusfar
|
The language of scripting, is Perl.
|
yes. you can use quest globals to store persistent information for characters.
there is information here (towards the bottom of the page), and there are hundreds of examples you can use as a reference in your quests directory. |
Thanks c0ncrete that was excellent info. Things will deffinatly go much quicker. Thank you so much
|
i would use quest globals.
Code:
sub EVENT_SAY { |
Something like this maybe? This limits you to two resets.
Code:
sub EVENT_SAY |
defined $qglobals{Resets} == 2 will always return false.
|
How do you come to that conclusion?
|
because defined will only return 1 (true) or nothing (false)
Quote:
|
Thank you kind sir.
|
Quote:
|
I have successfully written a deleveling script with a level requirement. Will post it here later if anyone is interested. It works great. Thanks to all who helped especially c0ncrete for the link to the perl lessons
|
All times are GMT -4. The time now is 03:31 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.