Simple script to reset

mrlongshen

Noobies
Messages
1,126
Points
0
Age
36
Location
localhost 127.0.0.1
Emulator
Hi all. I want to request a simple script, on player login, who has  base level 100 - 255 and job 71 - 120, reset to base level 99 and job 7.

And also reset the allstats and allskill. So player need to configure back the stats. Thanks

 
Hi all. I want to request a simple script, on player login, who has base level 100 - 255 and job 71 - 120, reset to base level 99 and job 7.

And also reset the allstats and allskill. So player need to configure back the stats. Thanks
try this one, i didnt test it, just try it

Code:
-    script    Sample    FAKE_NPC,{OnPCLoginEvent:if( ( BaseLevel >= 100 && BaseLevel <= 255 ) && ( JobLevel >= 71 && JobLevel <= 100 ) ){set BaseLevel,99;set JobLevel,70;sc_end SC_ALL;resetskill;resetstatus;}end;}
 
Last edited by a moderator:
Hi all. I want to request a simple script, on player login, who has base level 100 - 255 and job 71 - 120, reset to base level 99 and job 7.

And also reset the allstats and allskill. So player need to configure back the stats. Thanks
try this one, i didnt test it, just try it

- script Sample FAKE_NPC,{OnPCLoginEvent:if( ( BaseLevel >= 100 && BaseLevel <= 255 ) && ( JobLevel >= 71 && JobLevel <= 100 ) ){set BaseLevel,99;set JobLevel,70;sc_end SC_ALL;resetskill;resetstatus;}end;}
hellow bro. I have test this script. At first this script working, after I restart my server this script not working anymore. No error appear. Please help me
default_sad.png


 
Double check your baselevel and job level
default_laugh.png

also, have you tried putting "end;" after "resetstatus;"? Not sure with this.

 
- script Sample FAKE_NPC,{
OnPCLoginEvent:
if( ( BaseLevel >= 100 && BaseLevel <= 255 ) && ( JobLevel >= 71 && JobLevel <= 200 ) )
{
set BaseLevel,99;
set JobLevel,70;
sc_end SC_ALL;
resetskill;
resetstatus;
}
 
end;
}
 
 
Change to the value and its working hahaha
 
Back
Top