Hello sir! I have a question. I am using this script it's working fine when i got 5x basic exp drop rate it multiplies by 2. But when I changed my basic rates to x10 it's still x10 exp when its triggered and not x20. Thank you in advance.
- script HappyHour -1,{
OnInit:
atcommand ("@reloadbattleconf");
atcommand ("@reloadmobdb");
bindatcmd("starthappyhour", strnpcinfo(0) +"::OnHappyHour2", 93, 99);
bindatcmd("endhappyhour", strnpcinfo(0) +"::OnEndHappyHour", 93, 99);
.base_exp_rate = getbattleflag("base_exp_rate");
.job_exp_rate = getbattleflag("job_exp_rate");
.item_rate_common = getbattleflag("item_rate_common");
.item_rate_heal = getbattleflag("item_rate_heal");
.item_rate_use = getbattleflag("item_rate_use");
.item_rate_equip = getbattleflag("item_rate_equip");
end;
OnHappyHour2:
//add any other HOURS
OnClock2100:
OnClock0400:
OnClock0900:
OnClock1600:
atcommand ("@reloadbattleconf");
atcommand ("@reloadmobdb");
announce("-- Happy Hour has started! --", bc_yellow|bc_all); // Announce Happy Hour
$@dispbottom = 2;
callsub(server_rate,2);
end;
OnEndHappyHour:
OnClock2200:
OnClock0500:
OnClock1000:
OnClock1700:
atcommand ("@reloadbattleconf");
atcommand ("@reloadmobdb");
announce("-- Happy Hour has ended! --", bc_yellow|bc_all); // Announce Happy Hour
$@dispbottom = 1;
callsub(server_rate,1);
end;
//-------------------
server_rate:
//set $@brate,2;
//set $@jrate,2;
//set $@drate,2;
$@rate = getarg(0,2);
//Base exp
setbattleflag("base_exp_rate",$@rate * .base_exp_rate);
//Job exp
setbattleflag("job_exp_rate",$@rate * .job_exp_rate);
//Drops
setbattleflag("item_rate_common",$@rate * .item_rate_common);
setbattleflag("item_rate_heal",$@rate * .item_rate_heal);
setbattleflag("item_rate_use",$@rate * .item_rate_use);
setbattleflag("item_rate_equip",$@rate * .item_rate_equip); // Apply new rates to configs set above
//we don't change card drops rate, because these values won't change them anyway
announce "Current Server rates are: "+($@rate * .base_exp_rate /100)+"x "+($@rate * .job_exp_rate /100)+"x "+($@rate * .item_rate_heal /100)+"x",bc_all;
end;
}