Jump to content
  • 0

Simple PVP room


Jniko

Question


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.01
  • Content Count:  42
  • Reputation:   2
  • Joined:  03/24/17
  • Last Seen:  

Hello, I currently have this script but when I click the npc nothing happens


prontera,151,85,4    script    PvP Warper    46,{

mes .Npc_Name$;

mes "Hello!";

switch(select("Enter PVP_ROOM")) {

next;

mes .Npc_Name$;

case 1:

mes "Goodluck!";

warp .pvp_y_2-2;

close; break;


}

end;

OnInit:

.Npc_Name$ = "[^0000FF "+strnpcinfo(1)+" ^000000]";

setarray .Map$[0],"your_map1","your_map2","your_map3";

end;

}

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

prontera,151,85,4	script	PvP Warper	1_ETC_01,{

	.@npc$ = "["+strnpcinfo(0)+"]";
	
	mes .@npc$;
	mes "Would you like to enter the PvP Room?";
	next;
	switch(select("Enter Room [Current Users ~ "+getmapusers("pvp_y_2-2")+" ~]:Leave")) {	// Change pvp_y_2-2 into your PvP Map
	
		case 1:
			warp "pvp_y_2-2",0,0;	// Change pvp_y_2-2 into your PvP Map
			end;
			
		case 2:
			close;
	}

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

 

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