Jump to content
  • 0

Pvp Warper with 4 position


PapaZola

Question


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  925
  • Reputation:   32
  • Joined:  12/05/11
  • Last Seen:  

hello

may i request make this guild vs guild room warp 4 position

example

1st position 58,78

2nd position 78,74

3rd position 65,24

4th position 31,65

 

http://pastebin.com/ai18fWMR

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  1096
  • Reputation:   345
  • Joined:  02/26/12
  • Last Seen:  

Random warp when you select second menu to different positions.

// PVP Yoyo Mode Staff
//============================================================
prontera,150,150,4	script	PVP Arena	559,{
mes "Hi  ^ff8000"+strcharinfo(0)+"^000000,";
mes "Which arena do you want to go to?";

switch( select( 
	"PVP Normal [ "+getmapusers("pvp_m_1-1")+" ]",
	"Guild Vs Guild [ "+getmapusers("magpvp")+" ]" ))
{
	case 1:
		warp "pvp_m_1-1",0,0;
		break;
	case 2:
		if( getcharid(1) ) mes "Please leave your party.";
		else 
			switch(rand(3))
			{
				case 0: .@x = 57; .@y = 78; break;
				case 1: .@x = 78; .@y = 74; break;
				case 2: .@x = 65; .@y = 24; break;
				case 3: .@x = 31; .@y = 65; break; 
			}
			warp "Coliseum",.@x,.@y;
		break;
}
close;

OnInit:
	waitingroom "PVP Warper",0;
	end;
}

You select second menu, then you select to what position you want warp:

// PVP Yoyo Mode Staff
//============================================================
prontera,150,150,4	script	PVP Arena	559,{
mes "Hi  ^ff8000"+strcharinfo(0)+"^000000,";
mes "Which arena do you want to go to?";

switch( select( "PVP Normal [ "+getmapusers("pvp_m_1-1")+" ]",
				"Guild Vs Guild [ "+getmapusers("magpvp")+" ]" ))
{
	case 1:
		warp "pvp_m_1-1",0,0;
		break;
	case 2:		
		switch( select( "Position 1", "Position 2", "Position 3", "Position 4") )
		{
			case 1: if( getcharid(1) ) mes "Please Leave Your Party"; else warp "Coliseum",57,78; break;
			case 2: if( getcharid(1) ) mes "Please Leave Your Party"; else warp "Coliseum",78,74; break;
			case 3: if( getcharid(1) ) mes "Please Leave Your Party"; else warp "Coliseum",65,24; break;
			case 4: if( getcharid(1) ) mes "Please Leave Your Party"; else warp "Coliseum",31,65; break;
		}
}
close;

OnInit:
	delwaitingroom;
	waitingroom "PVP Warper",0;
	end;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  925
  • Reputation:   32
  • Joined:  12/05/11
  • Last Seen:  

thanks

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...