- script hourlygift -1,{
OnPCLoginEvent:
set .Hour,1;
if( #dailytimer < gettimetick(2) ) {
mes "You have Gained a Hourly Gift.";
set #dailytimer,gettimetick(2) + ( .Hour * 3600 );
getitem 6101,1; //set the price here
}else{
set .@last,#dailytimer - gettimetick(2);
set .@hour, .@last % ( 24 * 3600 ) / 3600;
set .@min, .@last % ( 24 * 3600 ) % 3600 / 60;
set .@sec, .@last % ( 24 * 3600 ) % 3600 % 60;
mes "You have to wait to get your next Hourly Gift.";
mes "Time CountDown : ^FF0000"+.@hour+":"+.@min+":"+.@sec+"^000000";
}
close;
}
Everything was perfect but the thing is. When a player first logged in. They already received the item.
Can it be done like this?
After a player logged in they have to wait for 1 hour in order for them to get the gift item.
Because of the previous case. A player can abuse and switch on other account. Hope you understand what im saying guys. And Thanks in advance for those who will help.
Question
rayleigh
Hi guys.
Im using this script (Credits to Anakid)
Everything was perfect but the thing is. When a player first logged in. They already received the item.
Can it be done like this?
After a player logged in they have to wait for 1 hour in order for them to get the gift item.
Because of the previous case. A player can abuse and switch on other account. Hope you understand what im saying guys. And Thanks in advance for those who will help.
Thanks RATHENA.
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.