Jump to content
  • 0
Sign in to follow this  
mrlongshen

Simple script to reset

Question

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

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

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;}
Edited by Zhao Chow

Share this post


Link to post
Share on other sites
  • 0

 

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 :(

Share this post


Link to post
Share on other sites
  • 0

Double check your baselevel and job level :lol:
also, have you tried putting "end;" after "resetstatus;"? Not sure with this.

Share this post


Link to post
Share on other sites
  • 0
- 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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.