//@unloadnpc x2
//@loadnpc npc/valhalla/events/x2.txt

-	script	x2	-1,{
end;

OnInit:
	bindatcmd("xrates","x2::OnRates",99,99);
	callfunc("F_AddDrop");	
	callfunc("F_AddDropx");
	callfunc("F_AddDrop3");	
	end;


OnMinute07:
OnMinute12:
OnMinute17:
OnMinute22:
OnMinute27:
OnMinute32:
OnMinute37:
OnMinute42:
OnMinute47:
OnMinute52:
OnMinute57:
OnMinute02:
	if($@x2) announce "Weekend 150x EXP BOOST is active until Sunday.  Use @rates to verify.  Enjoy ValhallaRO. ",bc_all|bc_blue;
	end;


OnRates:
//OnClock0600:
//OnClock1200:
	if (!$@x2) {
		announce "Weekend 150x EXP BOOST is now active until Sunday.  Use @rates to verify.  Enjoy ValhallaRO. ",bc_all|bc_blue;
		// Experience Rate
		setbattleflag("base_exp_rate", 15000);
		setbattleflag("job_exp_rate", 15000);
		atcommand("@reloaditemdb");
		atcommand("@reloadmobdb");
		callfunc("F_AddDrop");	
		callfunc("F_AddDropx");
		callfunc("F_AddDrop3");	
		$@x2=1;
		end;
	} else {
		// Experience Rate
		setbattleflag("base_exp_rate", 5000);
		setbattleflag("job_exp_rate", 5000);
		atcommand("@reloaditemdb");
		atcommand("@reloadmobdb");
		callfunc("F_AddDrop");	
		callfunc("F_AddDropx");
		callfunc("F_AddDrop3");	
		$@x2=0;	
		end;
	}	
end;
}