Im trying to modified a script of Happy Hour in latest SVN to my like. Im noob and still learning in Renewal scripting. This is the script
- script FloatingRates -1,{
OnInit:
OnMon2100:
OnTue2100:
OnWed2100:
OnThu2100:
OnFri2100:
OnSat2100:
OnSun2100:
//-------------------
FR_start:
set $@brate,rand(2000,3000);
set $@jrate,rand(2000,3000);
set $@drate,rand(2000,3000);
//Base exp
setbattleflag("base_exp_rate",$@brate);
//Job exp
setbattleflag("job_exp_rate",$@jrate);
//Drops
//setbattleflag("item_rate_common",$@drate);
//setbattleflag("item_rate_heal",$@drate);
//setbattleflag("item_rate_use",$@drate);
//setbattleflag("item_rate_equip",$@drate);
//we don't change card drops rate, because these values won't change them anyway
atcommand "@reloadmobdb";
announce "Happy Hour is being held. Current rates are between 20x/20x ~ 30x/30x or type @rates to see the Happy Hour Rates",bc_all,0xFF6060;
end;
OnMon2259:
OnTue2259:
OnWed2259:
OnThu2259:
OnFri2259:
OnSat2259:
OnSun2259:
FR_end:
//if((gettime(5)==8 && gettime(6)==24) || (gettime(5)==9 && gettime(6)==23)) {
//Base exp
setbattleflag("base_exp_rate",500);
//Job exp
setbattleflag("job_exp_rate",500);
//Drops
//setbattleflag("item_rate_common",500);
//setbattleflag("item_rate_heal",500);
//setbattleflag("item_rate_use",500);
//setbattleflag("item_rate_equip",500);
//we don't change card drops rate, because these values won't change them anyway
atcommand "@reloadmobdb";
announce "Happy Hour is Ending. Current rates are back to normal at 5x/5x.",bc_all,0xFF6060;
end;
}
The scripts run well. But everytime im @reloadscript this script will be activate even not in the hour tht im configured.
and it keeping the floating rate after the period of hour. Hope anyone could help me on this...
Question
Elsa Mist
Hi Community,
Im trying to modified a script of Happy Hour in latest SVN to my like. Im noob and still learning in Renewal scripting. This is the script
The scripts run well. But everytime im @reloadscript this script will be activate even not in the hour tht im configured.
and it keeping the floating rate after the period of hour. Hope anyone could help me on this...
Thanks!
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.