Jump to content
  • 0

warper warps player to last place on list


Question

Posted (edited)

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

1 answer to this question

Recommended Posts

  • 0
Posted

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

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