For those having difficulty with this, here is what I did to get it to work.
Thanks to Phantom for the share.
Adding the line to every gate keepers html you wish to have the function worked , no problems there.
<a action="link teleporter_decreaseexp.htm">Decrease my experience.</a>
After that it all went wrong for me.
Fix for my server but not all, maybe I have a different AI to some.
You must change the AI from the original post to class 1 eg:
class teleporter_decreaseexp : teleporter (original post)
class 1 teleporter_decreaseexp : teleporter (my server)
This class must be added to your AI before the gatekeeper you wish to have the function. eg find clavier and add this class above or before clavier. This must be added to every gate keeper you wish to have the function.
Then you must change
class 1 clavier : teleporter
to
class 1 clavier : teleporter_decreaseexp
and the same for any other gate keepers you have given this function too.
Then make you html as you desire.
Here is mine if you wish to use them as an example
teleporter_decreaseexp.htm
<html>
<head>
<body>
Choose the amount of EXP you would like me to suck from you<br><br>
<center><a action="bypass -h menu_select?ask=100&reply=0">Decrease my EXP by 25000000</a><br></center><br1>
<center><a action="bypass -h menu_select?ask=100&reply=1">Decrease my EXP by 3500000</a><br></center><br1>
<center><a action="bypass -h menu_select?ask=100&reply=2">Decrease my EXP by 1000000</a><br></center><br1>
<center><a action="bypass -h menu_select?ask=100&reply=3">Decrease my EXP by 500000</a><br></center><br>
</body>
</head>
</html>
teleporter_donedecrease.htm
<html>
<head>
<body>
Your sole has been sucked of EXP<br>
<br>
<br>
<a action="link teleporter_decreaseexp.htm">Have you sole sucked again.</a>
</body>
</head>
</html>
teleporter_lowlevel.htm
<html>
<head>
<body>
Your level is too low you can't decrease your exp anymore.
</body>
</head>
</html>
Sorry about not putting the html into code, not sure how to do that.
Hope this helps those having problems implementing this option to there servers.
It seems Phantoms method worked for some servers but not for others, I am not at all saying his method is incorrect.
Thanks again for sharing.
Rexx
|