PVP rest time

mrlongshen

Noobies
Messages
1,126
Points
0
Age
36
Location
localhost 127.0.0.1
Emulator
prontera,165,177,3 script PVP Warper 106,{if (!agitcheck() || !agitcheck2()) { if (select("Yes!","No thanks.") == 2) close; warp "guild_vs5",0,0; announce strcharinfo(0) + " has entered the PVP Room.",0; announce "There are ["+getmapusers("guild_vs5")+"/30] players inside.",0; end; } end;}
Can someone edit, if player kill same person for 5 time, auto kick from pvp map and cannot enter for 5 minutes? on player click pvp warper. disbottom message, you need a rest for 5 minute.

 
@@mrlongshen

Code:
prontera,165,177,3	script	PVP Warper	1_M_MOC_LORD,{	if ( !agitcheck() || !agitcheck2() ) {		if( gettimetick( 2 ) < PVPCD ) {			dispbottom "You need to rest for 5 minutes.";			end;		}				if ( select( "Yes!", "No thanks.") == 2 ) close;		warp "guild_vs5",0,0;		announce strcharinfo(0) + " has entered the PVP Room.",0;		announce "There are ["+getmapusers("guild_vs5")+"/30] players inside.",0;	}	end;	OnPCKillEvent:                if ( strcharinfo( PC_MAP ) != "guild_vs5" ) end;		if( PVPKilltarget == killedrid ) {			PVPTargetKillCount++;		} else {			PVPKilltarget = killedrid;			PVPTargetKillCount = 1;		}				if( PVPTargetKillCount == 5 ) {			PVPCD = gettimetick( 2 ) + 300;			PVPKilltarget = 0;			PVPTargetKillCount = 0;									warp "prontera",0,0; 		}}
 
Last edited by a moderator:
hehehe ... 1 of my super old script

https://www.eathena.ws/board/index.php?showtopic=155874

I mean I used in my dota announcement script -> https://www.eathena.ws/board/index.php?showtopic=237765

prontera,155,187,3 script PVP Warper 1_F_MARIA,{ if ( !agitcheck() && !agitcheck2() ) { if ( pvproom_cooldown + 5*60 > gettimetick(2) ) { dispbottom "You need to rest for 5 minutes."; end; } if ( select("Yes!","No thanks.") == 2 ) close; announce strcharinfo(0) + " has entered the PVP Room.", bc_all; announce "There are ["+getmapusers("guild_vs5")+"/30] players inside.", bc_all; warp "guild_vs5",0,0; deletearray @sitkillid; deletearray @sitkillidtimes; @sitkillsize = 0; end; } end;OnPCKillEvent: if ( strcharinfo(PC_MAP) != "guild_vs5" ) end; while ( killedrid != @sitkillid[.@i] && .@i < @sitkillsize ) .@i++; if ( .@i == @sitkillsize ) // only add new entry if kill new players @sitkillid[.@i] = killedrid; @sitkillidtimes[.@i]++; @sitkillsize++;// dispbottom "You just killed "+ rid2name( killedrid ) +" for "+ @sitkillidtimes[.@i] +" times."; if ( @sitkillidtimes[.@i] == 5 ) { // when kill same player 5 times pvproom_cooldown = gettimetick(2); warp "Save", 0,0; } end;}guild_vs5 mapflag pvp.btw it should be && condition

either if ( !agitcheck() && !agitcheck2() ) {

or if ( agitcheck() || agitcheck2() ) end;

 
Last edited by a moderator:
@@Winterfox

@@AnnieRuru

wah thanks alot so much ! hehe~ 
default_blush.png


 
Back
Top