Mythryx Posted March 20, 2020 Posted March 20, 2020 Hi! just wanted to ask if the script floating_rates will revert back to normal after 1 hour? If no, can someone teach me on how to make that so? Really wanted to try and add Happy Hours to my server. like 2 times a day or so. Quote
0 Patskie Posted March 22, 2020 Posted March 22, 2020 On 3/21/2020 at 4:55 AM, Mythryx said: Hi! just wanted to ask if the script floating_rates will revert back to normal after 1 hour? If no, can someone teach me on how to make that so? Really wanted to try and add Happy Hours to my server. like 2 times a day or so. You can try below - script FloatExp -1,{ OnMinute00: if (.floated) { setbattleflag "base_exp_rate", .currentRates[0]; setbattleflag "job_exp_rate", .currentRates[1]; announce "Server rates are now back to normal. Rates are " + getbattleflag("base_exp_rate") + "/" + getbattleflag("job_exp_rate"), bc_all; .floated = 0; } end; OnTrig: setarray .@i[ 0 ], 100, 150, 200; .@a = .@i[ rand( getarraysize( .@i ) ) ]; setbattleflag "base_exp_rate", .@a; setbattleflag "job_exp_rate", .@a; announce "Server rates are adjusted. New rates are " + getbattleflag("base_exp_rate") + "/" + getbattleflag("job_exp_rate"), bc_all; .floated = 1; end; OnInit: bindatcmd "floatexp", strnpcinfo(0) + "::OnTrig"; setarray .currentRates[0], getbattleflag("base_exp_rate"), getbattleflag("job_exp_rate"); end; } Use @floatexp to readjust the base/job exp rates Quote
Question
Mythryx
Hi! just wanted to ask if the script floating_rates will revert back to normal after 1 hour?
If no, can someone teach me on how to make that so?
Really wanted to try and add Happy Hours to my server. like 2 times a day or so.
2 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.