Good day, I always got map crash issues during @reloadmobdb on my happy hour script. I tried to search but i cannot find the answer that related to this issue. Hoping that you guys could help me to figure out the map crash issue on happy hour or floating rates.
I have the screenshot of crash log from "gdb map-server map-server.core".
By the way, i am using latest rAthena-rev62532.
I also enabled the mobs_level_up: yes in conf/battle/monster.conf so the monster will level up each time a player is killed.
This is the Happy Hour script i've been using:
Spoiler
- script HappyHourAuto -1,{
OnClock0200:
OnClock0800:
OnClock1400:
OnClock2000:
set $@brate,1000;
set $@jrate,1000;
set $@drate,500;
setbattleflag("base_exp_rate",$@brate);
setbattleflag("job_exp_rate",$@jrate);
setbattleflag("item_rate_common",$@drate);
setbattleflag("item_rate_heal",$@drate);
setbattleflag("item_rate_use",$@drate);
setbattleflag("item_rate_equip",$@drate);
announce "Happy Hour Time!!!",bc_all,0xB6FF00;
sleep 1500;
announce "Happy Hour has started for 2 hour's and the new rates will be these: Base:"+($@brate/100)+"x, Job:"+($@jrate/100)+"x, Drop:"+($@drate/100)+"x, card not included.",bc_all,0xB6FF00;
initnpctimer;
set .HHAuto,1;
sleep 1000;
atcommand "@reloadmobdb";
sleep 10000;
end;
OnTimer7200000:
set .HHAuto,0;
setbattleflag("base_exp_rate",$defaultbrate);
setbattleflag("job_exp_rate",$defaultjrate);
setbattleflag("item_rate_common",$defaultdrate);
setbattleflag("item_rate_heal",$defaultdrate);
setbattleflag("item_rate_use",$defaultdrate);
setbattleflag("item_rate_equip",$defaultdrate);
sleep 1000;
atcommand "@reloadmobdb";
sleep 10000;
announce "Happy Hour Event has ended. Rates have returned to normal.",bc_all,0xB6FF00;
end;
OnPcLoginEvent:
if (.HHAuto == 1) announce "Happy Hour Event currently active!",bc_self,0xB6FF00;
end;
OnInit:
set $defaultbrate,700;
set $defaultjrate,700;
set $defaultdrate,300;
end;
}
Question
GMH
Good day, I always got map crash issues during @reloadmobdb on my happy hour script. I tried to search but i cannot find the answer that related to this issue. Hoping that you guys could help me to figure out the map crash issue on happy hour or floating rates.
I have the screenshot of crash log from "gdb map-server map-server.core".
By the way, i am using latest rAthena-rev62532.
I also enabled the mobs_level_up: yes in conf/battle/monster.conf so the monster will level up each time a player is killed.
This is the Happy Hour script i've been using:
- script HappyHourAuto -1,{
OnClock0200:
OnClock0800:
OnClock1400:
OnClock2000:
set $@brate,1000;
set $@jrate,1000;
set $@drate,500;
setbattleflag("base_exp_rate",$@brate);
setbattleflag("job_exp_rate",$@jrate);
setbattleflag("item_rate_common",$@drate);
setbattleflag("item_rate_heal",$@drate);
setbattleflag("item_rate_use",$@drate);
setbattleflag("item_rate_equip",$@drate);
announce "Happy Hour Time!!!",bc_all,0xB6FF00;
sleep 1500;
announce "Happy Hour has started for 2 hour's and the new rates will be these: Base:"+($@brate/100)+"x, Job:"+($@jrate/100)+"x, Drop:"+($@drate/100)+"x, card not included.",bc_all,0xB6FF00;
initnpctimer;
set .HHAuto,1;
sleep 1000;
atcommand "@reloadmobdb";
sleep 10000;
end;
OnTimer7200000:
set .HHAuto,0;
setbattleflag("base_exp_rate",$defaultbrate);
setbattleflag("job_exp_rate",$defaultjrate);
setbattleflag("item_rate_common",$defaultdrate);
setbattleflag("item_rate_heal",$defaultdrate);
setbattleflag("item_rate_use",$defaultdrate);
setbattleflag("item_rate_equip",$defaultdrate);
sleep 1000;
atcommand "@reloadmobdb";
sleep 10000;
announce "Happy Hour Event has ended. Rates have returned to normal.",bc_all,0xB6FF00;
end;
OnPcLoginEvent:
if (.HHAuto == 1) announce "Happy Hour Event currently active!",bc_self,0xB6FF00;
end;
OnInit:
set $defaultbrate,700;
set $defaultjrate,700;
set $defaultdrate,300;
end;
}
Thanks in advance and more power.
Link to comment
Share on other sites
10 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.