- script NightmareMode -1,{
OnHour00: OnHour03: OnHour06: OnHour09: OnHour12: OnHour15: OnHour18: OnHour21:
set .Nightmare,1;
maprespawnguildid "<your_pvp_map>",0,3;
setbattleflag "pk_mode",1;
atcommand "@reloadbattleconf";
setbattleflag "base_exp_rate", 2*getbattleflag("base_exp_rate");
setbattleflag "job_exp_rate", 2*getbattleflag("job_exp_rate");
atcommand "@reloadmobdb";
announce "Nightmare Mode is now active.",0;
sleep 2000;
announce "For the next 15 minutes, all maps except towns will be open for PVP, and EXP rates will be doubled. Have fun!",0;
initnpctimer;
end;
OnTimer900000:
stopnpctimer;
if (!.Nightmare) end;
set .Nightmare,0;
announce "Nightmare Mode is now off.",0;
setbattleflag "pk_mode",0;
atcommand "@reloadbattleconf";
setbattleflag "base_exp_rate", getbattleflag("base_exp_rate")/2;
setbattleflag "job_exp_rate", getbattleflag("job_exp_rate")/2;
atcommand "@reloadmobdb";
end;
OnPCDieEvent:
if (!.Nightmare) end;
if (killerrid < 110000000) set .@i,2;
else set .@i,1;
set .@j, .@i*(BaseExp + NextBaseExp)/100;
if (BaseExp - .@j < 0) set BaseExp,0;
else set BaseExp, BaseExp - .@j;
end;
}
I couldn't quite figure out setting the "pk_mode" mapflag, dunno if that'll work for you. But the rest is fine.