Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - script Sample -1,{
- OnInit:
- bindatcmd "dailyreward",strnpcinfo(3)+"::OnAtCommand";
- end;
- OnAtCommand:
- .@day = atoi( gettimestr("%Y%m%d") );
- if( #dailyreward <= .@day ){
- message strcharinfo(0),"You have take the item for today.";
- }else if( @online > gettimetick(2) ){
- message strcharinfo(0),"You must wait 24 hours before receiving more items.";
- }else{
- #dailyreward = .@day;
- getitem 607,1;
- message strcharinfo(0),"You gained the item for today.";
- }
- end;
- OnPCLoginEvent:
- @online += ( 3600 );
- end;
- }
Advertisement
Add Comment
Please, Sign In to add comment