|
lol you can do it the way you propose however it's more difficult than just making an npc to do it at the spawn point of new chars. this is how to do it. you choose your own lines and stuff so here goes.
(these lines are just hypothetical)
1st create an npc in the npc table. if you don't know how to create one and point him to the task table then don't read any further cause there is no sense.
2nd creat your task in the tasks and point it to his line number in the actions
3rd in the action it should look something like this:
id# idnext idnextfail type data param
10 11 0 101 0 your~words
11 12 0 102 0 sure. 20
12 60013 0 102 0 no~thanks. 0
20 21 30 1001 0 level < 120
21 22 30 1001 0 old_prof < 1
22 23 0 1001 0 level == 120
23 24 0 1001 0 strength == 500
24 25 0 1001 0 Speed == 500
25 26 0 1001 0 health == 500
26 27 0 1001 0 soul == 500
27 0 0 1010 2005 GRATS!!
30 0 0 1010 2005 SORRY!!
ok there ya go. omg i did what i said i wouldn't oh well what happens in that above is this:
it tells you where i put "your~words" thats what you want to introduce the npc to the player like this Hello~I~can~make~you~level~120~and~fix~your~points ~if~your~a~new~player.
then the player responds with either yes or no.
then is checks to see if your player is less than lvl 120
if not it goes to the sorry you don't qualify line.
if so then it checks to see if he is reborn
if not it goes to the line that makes him 120
then to the lines that change his stats.
well you get the point. but if your having any issues with this code it's prolly cause you messed up your npc like if the npc don't talk you didn't set up tasks and such. if it talks but don't make them 120 or fix stats then it's in the level < 120 or the old_prof < 120 i say that because i had issues b4 in other lines with the < symbol but generally speaking use your pm and if you got any brains you can figure it out from there. if i helped you great idc if you thank me i'm not here for the fame, just wanna help.
|