- script auto_kick_pvp -1,{
OnInit:
.map$ = "prontera";
.npc_name$ = strnpcinfo(0);
setmapflag .map$,mf_loadevent;
setmapflag .map$,mf_pvp;
end;
OnPCLoadMapEvent:
if( strcharinfo(3) == .map$ ){
deltimer .npc_name$+"::Onaaa";
deltimer .npc_name$+"::Onbbb";
addtimer ( 7 * 60000 ),.npc_name$+"::Onaaa";
}
end;
Onaaa:
if( strcharinfo(3) == .map$ ){
addtimer ( 3 * 60000 ),.npc_name$+"::Onbbb";
dispbottom "last 3 mins to kill or will be kicked out";
}
end;
Onbbb:
if( strcharinfo(3) == .map$ ){
warp "Save", 0,0;
dispbottom "You have been kick because of failure to kill";
}
end;
OnPCKillEvent:
if( strcharinfo(3) == .map$ )
if ( killedrid != getcharid(3) ){
deltimer .npc_name$+"::Onaaa";
deltimer .npc_name$+"::Onbbb";
addtimer 7000,.npc_name$+"::Onaaa";
}
end;
}