Hi I am using this Floating drop rate script. but when I type @mobinfo of a boss the boss cards and TCG and everything did not increase the drop rate. I just wanted it to be every Weekend it will increase droprate automatically. I am doing it manually everytime it gets to weekends. here is the script:
// Author: _Okuz_
// Version: 1.0.2 - 20:40 14/10/2016
- script Weekend Floating Exp -1,{
OnInit:
// Setup the rates you want to double here...
setarray .server_conf$[0], "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"),
"item_rate_card", getbattleflag("item_rate_card"),
"item_rate_mvp", getbattleflag("item_rate_mvp"),
"item_rate_adddrop", getbattleflag("item_rate_adddrop"),
"item_rate_treasure", getbattleflag("item_rate_treasure");
// To force the event to run even if you have to shutdown your server for some reason...
if (gettime(4) != 5 && gettime(4) != 6 && gettime(4) != 0) end;
OnFri0000:
// start double rates on Friday 00:00
if (!.active)
callsub(S_changeRates, 2);
end;
OnMon0000:
// stop double rates on Monday 00:00
callsub(S_changeRates, 1); end;
// Arg(0): mult
S_changeRates:
set .@size, getarraysize(.server_conf$);
for (set .@i, 0; .@i < .@size; set .@i, .@i + 2) {
setbattleflag .server_conf$[.@i], atoi(.server_conf$[.@i + 1]) * getarg(0);
}
set .active, !.active;
atcommand "@reloadmobdb";
announce "[Event] : Rates " + (.active ? "increased" : "restored") + "!",bc_all,0xFF6060;
return;
}
BTW, i want it to be x3 instead of x2 on the script. or if you have a better working script pls link it to me thanks!.
Question
cross10hunter
Hi I am using this Floating drop rate script. but when I type @mobinfo of a boss the boss cards and TCG and everything did not increase the drop rate. I just wanted it to be every Weekend it will increase droprate automatically. I am doing it manually everytime it gets to weekends. here is the script:
// Author: _Okuz_ // Version: 1.0.2 - 20:40 14/10/2016 - script Weekend Floating Exp -1,{ OnInit: // Setup the rates you want to double here... setarray .server_conf$[0], "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"), "item_rate_card", getbattleflag("item_rate_card"), "item_rate_mvp", getbattleflag("item_rate_mvp"), "item_rate_adddrop", getbattleflag("item_rate_adddrop"), "item_rate_treasure", getbattleflag("item_rate_treasure"); // To force the event to run even if you have to shutdown your server for some reason... if (gettime(4) != 5 && gettime(4) != 6 && gettime(4) != 0) end; OnFri0000: // start double rates on Friday 00:00 if (!.active) callsub(S_changeRates, 2); end; OnMon0000: // stop double rates on Monday 00:00 callsub(S_changeRates, 1); end; // Arg(0): mult S_changeRates: set .@size, getarraysize(.server_conf$); for (set .@i, 0; .@i < .@size; set .@i, .@i + 2) { setbattleflag .server_conf$[.@i], atoi(.server_conf$[.@i + 1]) * getarg(0); } set .active, !.active; atcommand "@reloadmobdb"; announce "[Event] : Rates " + (.active ? "increased" : "restored") + "!",bc_all,0xFF6060; return; }
BTW, i want it to be x3 instead of x2 on the script. or if you have a better working script pls link it to me 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.