Hello. Im requesting some help on how to show time remaining before they can get supplies again after 12 hours.
if(gettimetick(2) - #lastTimeTalked > (60 * 60 * 12)) {
mes .@rewname$;
mes "Hello "+strcharinfo(0)+"";
mes "Do you wish to receive your daily supplies today?";
mes "- ^0000FF100x Free Cold Medicine^000000";
mes "- ^0000FF25x Free Yggdrasil Seeds^000000";
mes "- ^0000FF25x Free Yggdrasil Berries^000000";
mes "^FF0000Note : Free Supplies have delays per use.";
next;
switch(select("- Yes,sure!:- No,bye!:- Cancel")) {
case 1:
.@weight = 100 * Weight / MaxWeight;
if (50 <= .@weight) {
mes .@rewname$;
mes "You are currently at " + .@weight + " percent of your maximum weight.";
mes "Make sure that you are below 50% then come back";
close;
}
mes .@rewname$;
mes "Okay here is your items!!";
next;
mes .@rewname$;
getitem 8011,25;
getitem 8012,25;
getitem 8013,100;
mes "Okay have fun playing and come back tomorrow!!";
set #lastTimeTalked,gettimetick(2);
close;
case 2:
mes .@rewname$;
mes "Uhhh. Okay?? Lol..";
close;
case 3:
close;
}
}
mes .@rewname$;
mes "Sorry, you have to wait for 12 hours to claim your free supplies again.";
mes "Thank you!!";
close;
OnInit:
waitingroom "Daily Supplies",0;
}
So instead of
mes .@rewname$;
mes "Sorry, you have to wait for 12 hours to claim your free supplies again.";
mes "Thank you!!";
close;
I'm hoping to get Sorry you have to wait for "Time Remaining" before claiming your supplies again. Thank you so much.
Question
Muskellunge
Hello. Im requesting some help on how to show time remaining before they can get supplies again after 12 hours.
So instead of
I'm hoping to get Sorry you have to wait for "Time Remaining" before claiming your supplies again. Thank you so much.
Edited by Emistryuse codebox
Link to comment
Share on other sites
3 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.