daily pastebin goal
18%
SHARE
TWEET

Untitled

a guest Aug 10th, 2018 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -   script  lvupinterval    -1,{
  2.    
  3.     OnPCBaseLvUpEvent:
  4.         if( BaseLevel >= 80 && BaseLevel < 100 )
  5.         {
  6.             if(baseupinterval > gettimetick(2))
  7.             {
  8.                 getmapxy(.@m$,.@x,.@y,0);
  9.                 query_sql "INSERT INTO `levelupinterval` (`type`,`gid`,`map`,`x`,`y`) values ('base','"+getcharid(0)+"','"+.@m$+"','"+.@x+"','"+.@y+"')";
  10.             }
  11.             baseupinterval = gettimetick(2) + 900;
  12.         }
  13.         else if(BaseLevel == 100 && baseupinterval)
  14.             baseupinterval = 0;
  15.         end;
  16.        
  17.     OnPCJobLvUpEvent:
  18.         if( JobLevel >= 50 )
  19.         {
  20.             if(jobupinterval > gettimetick(2))
  21.             {
  22.                 getmapxy(.@m$,.@x,.@y,0);
  23.                 query_sql "INSERT INTO `levelupinterval` (`type`,`gid`,`map`,`x`,`y`) values ('job','"+getcharid(0)+"','"+.@m$+"','"+.@x+"','"+.@y+"')";
  24.             }
  25.             jobupinterval = gettimetick(2) + 900;
  26.         }
  27.         else if(JobLevel == 70 && jobupinterval)
  28.             jobupinterval = 0;
  29.         end;
  30. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top