Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fcity,96,114,4 script Addicted Reward 100,{
- mes "[Addicted Reward]";
- mes "Total playing time is: " + (Play_Time / 3600) + "h:" + ( (Play_Time % 3600) / 60 ) + "m:" + ( (Play_Time % 3600) % 60 ) + "s";
- mes " ";
- if ( ( Play_Time / 3600 ) < 24 ) {
- mes "You don't have enough playing hours.";
- close;
- }
- mes "You have more than 24 accumulated hours!";
- next;
- mes "[Addicted Reward]";
- mes "Take your reward.";
- getitem 501,1;
- set Play_Time,Play_Time - 86400;
- close;
- OnPCLoginEvent:
- set @timelog,gettimetick(2);
- end;
- OnPCLogoutEvent:
- set Play_Time,Play_Time + (gettimetick(2) - @timelog);
- end;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement