Jump to content
  • 0

Pvp Warper with 4 position


Question

2 answers to this question

Recommended Posts

Posted

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;
}

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...