yuhsing

Untitled

Apr 1st, 2013
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1.  
  2. - script Sample -1,{
  3. OnInit:
  4. bindatcmd "dailyreward",strnpcinfo(3)+"::OnAtCommand";
  5. end;
  6.  
  7. OnAtCommand:
  8. .@day = atoi( gettimestr("%Y%m%d") );
  9. if( #dailyreward <= .@day ){
  10. message strcharinfo(0),"You have take the item for today.";
  11. }else if( @online > gettimetick(2) ){
  12. message strcharinfo(0),"You must wait 24 hours before receiving more items.";
  13. }else{
  14. #dailyreward = .@day;
  15. getitem 607,1;
  16. message strcharinfo(0),"You gained the item for today.";
  17. }
  18. end;
  19.  
  20. OnPCLoginEvent:
  21. @online += ( 3600 );
  22. end;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment