Jump to content
  • 0
andoy

NPC calling cash shop

Question

I have 2 invisible cash shop npcs and I call them from another npc depending on the choice.

The problem is even though I pick "Usables", which is case 1, it opens the Costumes Cash Shop, which is case 2.

 

-	cashshop	Usables Shop	-1,14003:15,12902:100
-	cashshop	Costumes Shop	-1,20404:1000,20459:1000,31057:1000,31062:1000,31178:1000,31199:1000

 payon,171,142,4	script	Cash Shop	874,{
 	switch(select("Usables:Costumes:Cancel")) {
 		case 1:
 			callshop "Usables Shop", 1;
 		case 2:
 			 callshop "Costumes Shop", 1;
 		case 3:
 			close;
 	}
 }

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

add "break" on your case.

-	cashshop	Usables Shop	-1,14003:15,12902:100
-	cashshop	Costumes Shop	-1,20404:1000,20459:1000,31057:1000,31062:1000,31178:1000,31199:1000

 payon,171,142,4	script	Cash Shop	874,{
 	switch(select("Usables:Costumes:Cancel")) {
 		case 1:
 			callshop "Usables Shop", 1;
			break;
 		case 2:
			callshop "Costumes Shop", 1;
			break;
 		case 3:
 			close;
 	}
 }

 

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.