Jump to content
  • 0
Sign in to follow this  
mrlongshen

PVP rest time

Question

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.

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

@@mrlongshen

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; 		}}
Edited by Winterfox

Share this post


Link to post
Share on other sites
  • 0

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;

Edited by AnnieRuru

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.