Hello,
I've changed the script a lot but I rly dont know how do you want it "maybe two in two hours have a 30% chance of getting the event". Thereforce I've added an array where you can change the random time. I hope it will help you.
- script FloatingRates -1,{
OnInit:
//x minutes then stops(0),((Random)min. x minutes(1), max x minutes(2))
setarray $@RateConf[0],120,60,180;
goto L_Tick;
end;
L_Tick:
sleep2 rand($@RateConf[1],$@RateConf[2])*60000;
goto L_Start;
end;
L_Start:
//Base(0),Job(1),Common(2),Heal(3),Use(4),Equip(5)
setarray $@Rates[0],550,550,550,550,550,550;
setbattleflag("base_exp_rate",$@Rates[0]);
setbattleflag("job_exp_rate",$@Rates[1]);
setbattleflag("item_rate_common",$@Rates[2]);
setbattleflag("item_rate_heal",$@Rates[3]);
setbattleflag("item_rate_use",$@Rates[4]);
setbattleflag("item_rate_equip",$@Rates[5]);
atcommand "@reloadmobdb";
announce "Sistema de rates flutuantes ativadas(duração de meia hora): 1."+($@Rates[0]-100)+"x 1."+($@Rates[1]-100)+"x 1."+($@Rates[2]-100)+"x",bc_all,0xFF6060;
announce "Não afetam as cartas, digite @rates e confira! - Bom jogo a todos",bc_all,0xFF6060;
sleep2 $@RateConf[0]*60000;
goto L_End;
end;
L_End:
//Base(0),Job(1),Common(2),Heal(3),Use(4),Equip(5)
setarray $@Rates[0],500,500,500,500,500,500;
setbattleflag("base_exp_rate",$@Rates[0]);
setbattleflag("job_exp_rate",$@Rates[1]);
setbattleflag("item_rate_common",$@Rates[2]);
setbattleflag("item_rate_heal",$@Rates[3]);
setbattleflag("item_rate_use",$@Rates[4]);
setbattleflag("item_rate_equip",$@Rates[5]);
atcommand "@reloadmobdb";
announce "Rates flutuantes Finalizadas!.",bc_all,0xFF6060;
announce "Bom jogo a todos!",bc_all,0xFF6060;
goto L_Tick;
end;
}
Rynbef~