Hi ! how to make variable expire ? like example I have a Freebies npc (for example) ,, When I claim the rewards it will set into set #freebies, 1; ... and you can claim again by next week same day .example every sunday you can claim the reward .... thankyou
claim:
if ( gettime(4) != 0 && #free == 1) {
mes .name$;
mes "I'm sorry but supplies are only available every ^ff0000Sundays^000000";
end;
}
if (#freeclaim == 1) {
mes .name$;
mes "You have already claimed your streamer's pack see you next week!";
end;
}
else {
getitembound 14003,50,1;
set #freeclaim, 1;
}
Question
Eross
Hi ! how to make variable expire ? like example I have a Freebies npc (for example) ,, When I claim the rewards it will set into set #freebies, 1; ... and you can claim again by next week same day .example every sunday you can claim the reward .... thankyou
claim: if ( gettime(4) != 0 && #free == 1) { mes .name$; mes "I'm sorry but supplies are only available every ^ff0000Sundays^000000"; end; } if (#freeclaim == 1) { mes .name$; mes "You have already claimed your streamer's pack see you next week!"; end; } else { getitembound 14003,50,1; set #freeclaim, 1; }
Link to comment
Share on other sites
1 answer 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.