Jump to content
  • 0

NPC calling cash shop


andoy

Question


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.01
  • Content Count:  39
  • Reputation:   1
  • Joined:  12/11/20
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  477
  • Reputation:   269
  • Joined:  06/13/17
  • Last Seen:  

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