Jump to content
  • 0

warper warps player to last place on list


omar

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   0
  • Joined:  08/20/17
  • Last Seen:  

Hello 
so i used this code to warp players to a map but then when i try it it warps me to the map i choose then to x_prt which is the last map 
 

		mes "Leveling Quests";
		mes "Placeholder.";
		next;
		switch(select("120-140 :141-150 :151-160 :161-175 ")) {
			case 1: warp ("vis_h01",114,118);
			case 2: warp ("1@md_pay",22,38);
			case 3: warp ("1@slw",114,59);
			case 4: warp ("x_prt",70,122);
		}

 

Edited by omar
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

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

after each case: usage you must add "break;" command to terminate switching.

		mes "Leveling Quests";
		mes "Placeholder.";
		next;
		switch(select("120-140 :141-150 :151-160 :161-175 ")) {
			case 1: warp ("vis_h01",114,118); break;
			case 2: warp ("1@md_pay",22,38); break;
			case 3: warp ("1@slw",114,59); break;
			case 4: warp ("x_prt",70,122); break;
		}

 

  • Upvote 1
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...