![]() |
[Share]Exp decreasing npc.
This is originally used on my own server... but i'm using event mangers on my own server and i'm sharing gatekeeper version.
First of all you have to add this line to every GK: Code:
<a action="link teleporter_decreaseexp.htm">Decrease my experience.</a>Code:
<html>But after the "teleporter" class! Open your ai.obj and add: Code:
class teleporter_decreaseexp : teleporterCode:
class clavier : teleporterCode:
class clavier : teleporter_decreaseexpteleporter_lowlevel.htm: Code:
<html>Code:
<html>http://img146.imageshack.us/img146/8...eexp9ys.th.jpghttp://img153.imageshack.us/img153/9...exp28bp.th.jpghttp://img20.imageshack.us/img20/915...exp35bn.th.jpg |
good lord:P useful for bounty hunters. Can you make it give you an item everytime it decreases your xp?
|
Yes i can write that for you in a sec...
|
Use this code if you want to give an item to someone after his exp has been decreased.
Change this line for which item and how much Code:
push_const 110 // Item ID, 110 = Doom Shield.Code:
class teleporter_decreaseexp : teleporter |
instead of decreasing exp you could just decrease the level by 1 per click... just look up the param option 0-6 to find the right one.
duante |
nope cos IncrementParam level is not permanent.
|
I thought the permanent ones were: level, exp, sp, and something else...isnt it ? O.o
|
i could be wrong but i remember testing it and only exp and sp was permanent.
|
Sorry for bumping this topic.
Someone requested an updated version of this. I included the html just dont forget to save it as unicode. This new script is fully supported by C4. |
thank you for sharing :)
|
Script don`t work for me. AI have more errors. PLIZ post there put this script.
|
umm.. this post is from 2 years ago.. meaning that it doesnt work with C4 server -.-
|
Quote:
|
Thank you for the share working great
|
Please excuse my ignorance but Im am trying to understand the structure of the ai.
Where in the ai should this script be placed, and if you wouldn't mind, a short explanation as to why it goes there and not just placed anywhere. Thanks Rexx |
i just place AI at the end of the file seems to work fine :P
|
Thanks Nish
I tried that but got all sorts of errors when the NPC's loaded, but at least I know thats were you put yours and it worked for you. Going through the error logs, it looks like the main error is : Cannont find AI class [default_maker] I will take another look at my AI as I too have added other scripts to my AI with no problems before. Did you leave your class heading as in the post: "class teleporter_decreaseexp : teleporter", or did you change it to "class 1 teleporter_decreaseexp : teleporter", |
default maker is a npcpos error im pretty sure there is a fix for that somewhere here not sure where since its a older topic.... try a search
|
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 |
great share
**off topic** is there any type of guide for ai scripting the c4 fetch_i const? tryig to learn it myself for future stuff i seen the function post and thats about it |
I wanted to add some search key words to this thread cause I had some trouble finding it:
Delevel, deleveling, reduce, experience, sp, exp, xp |
| All times are GMT. The time now is 15:32. |