Advertisement
Emistry

[RO] Hourly Script - Map

Apr 23rd, 2019
723
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.54 KB | None | 0 0
  1. // https://rathena.org/board/topic/118689-scripting-hourly-points/
  2.  
  3. -   script  sample  -1,{
  4.    
  5.     OnInit:
  6.         .map$ = "louyang";
  7.         setmapflag(.map$, mf_loadevent);
  8.         end;
  9.    
  10.     OnCheck:
  11.         if (strcharinfo(3) == .map$) {
  12.             if (!checkvending()) {
  13.                 #CASHPOINTS += 2;
  14.                 dispbottom "You received 2 Cash Points. Current Cash Points: " + #CASHPOINTS;
  15.             }
  16.         }
  17.         @has_timer = 0;
  18.        
  19.     OnPCLoadMapEvent:
  20.         if (!@has_timer) {
  21.             deltimer strnpcinfo(3)+"::OnCheck";
  22.             addtimer (60 * 1000), strnpcinfo(3)+"::OnCheck";
  23.             @has_timer = 1;
  24.         }
  25.         end;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement