viewing paste autokick pvp if no kill | Athena

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
 
prontera,155,181,5  script  Sample#autokickpvp  757,{
 
if( select( "Enter PVP","Cancel" ) == 1 ){
    attachnpctimer;
    initnpctimer;
}
close;
 
 
OnTimer420000:
    set .@temp_minute,.@temp_minute + 1;
OnTimer480000:
    set .@temp_minute,.@temp_minute + 1;
OnTimer540000:
    set .@temp_minute,.@temp_minute + 1;
    dispbottom "Last "+.@temp_minute+" minute to kill before auto-warp out.";
    end;
    
OnTimerQuit:
OnTimer600000:
    dispbottom "Failed to kill any players within "+( getnpctimer(0) / 1000 )+" seconds. Auto-Kick out";
OnTimerQuit:
    warp "SavePoint",0,0;
    stopnpctimer;
    end;
 
OnPCKillEvent:
    setnpctimer 0;
    end;
}
Viewed 554 times, submitted by Guest.