Jump to content
  • 0

one for all


brunoshp

Question


  • Group:  Members
  • Topic Count:  64
  • Topics Per Day:  0.02
  • Content Count:  180
  • Reputation:   7
  • Joined:  12/19/12
  • Last Seen:  

Hi all!

i need one script basead in Miss Annie System queue!

 

3 peoples enter in room but only 1 win, others dead go to prontera and winner go to izlude.

 

Edited by brunoshp
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

-	script	Sample	-1,{
	function push; function pull; function display; function size;
	OnPCLoadMapEvent:
		getmapxy( .@map$, .@x, .@y, 0 );
		if ( .@map$ == "prontera" )
			push( getcharid( 3 ) );
		end;
	OnPCDieEvent:
                if ( strcharinfo( 3 ) != "prontera" ) end;
		warp "SavePoint", 0, 0;
		pull( getcharid( 3 ) );
		end;
	OnPCKillEvent:
		if ( size() == 1 && strcharinfo( 3 ) == "prontera" )
			display();
		end;
	
	function	display	{
		for ( .@x = 0; .@x < getarraysize( .Queue ); .@x++ )
			announce "" + rid2name( .Queue[ .@x ] ) + "", 0;
		return;
	}
	function	size	{
		return getarraysize( .Queue );
	}
	function	push	{
		for ( .@i = 0; .@i < getargcount(); .@i++ ) {
			for ( .@x = 0; .@x < getarraysize( .Queue ); .@x++ ) {
				if ( .Queue[ .@x ] == getarg( .@i ) )
					deletearray .Queue[ .@x ], 1;
			}
			.Queue[ getarraysize( .Queue ) ] = getarg( .@i );
		}
		return;
	}
	function	pull	{
		for ( .@i = 0; .@i < getargcount(); .@i++ ) {
			for ( .@x = 0; .@x < getarraysize( .Queue ); .@x++ ) {
				if ( .Queue[ .@x ] == getarg( .@i ) )
					deletearray .Queue[ .@x ], 1;
			}
		}
		return;	
	}
}

prontera	mapflag	loadevent

Not tested though. Change prontera to your desired map

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  64
  • Topics Per Day:  0.02
  • Content Count:  180
  • Reputation:   7
  • Joined:  12/19/12
  • Last Seen:  

i use  miss AnnieRuru System

http://rathena.org/board/topic/72571-battleground-system-without-waitingroom/

 

how i do? for enter 3 players and only one win?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...