Jump to content
  • 0

Can't move after clicking Cancel button


x13th

Question


  • Group:  Members
  • Topic Count:  55
  • Topics Per Day:  0.01
  • Content Count:  206
  • Reputation:   13
  • Joined:  11/20/11
  • Last Seen:  

Hello. What's wrong with my script? I can't move after clicking the cancel button in cash shop.


mes @npcname$;
mes "Choose your Shop";

L_shop:
next; 
switch (select ("Headgear:Armor:Armor2:Weapon:Weapon2:Accessory:Cards:Etc")) {

Case 1: switch (select ("Upper:Middle:Lower:*^808080Go Back^000000")){
Case 1: callshop "Shop1",1;  goto L_shop; break;
Case 2: callshop "Shop2",1;  goto L_shop;   break;
Case 3: callshop "Shop3",1;  goto L_shop;   break; 
case 4: goto L_shop; break;
}
Case 2: callshop "Shop4",1;  goto L_shop;   break;
Case 3: callshop "Shop41",1;  goto L_shop;   break; 
Case 4: callshop "Shop5",1;  goto L_shop;   break;
Case 5: callshop "Shop51",1;  goto L_shop;   break;
Case 6: callshop "Shop6",1;  goto L_shop;   break;
Case 7: callshop "Shop9",1;  goto L_shop;   break;
Case 8: callshop "Shop8",1;  goto L_shop;   break;

}


Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  68
  • Reputation:   13
  • Joined:  11/14/11
  • Last Seen:  

Well, i suggest you to end the script rigth after you do a callshop.

Use some close2 and then open the shop and use an end

Something like:

case 2:
mes @npcname$;
mes "I will open the Shop";
close2;
callshop "Shop4",1;
end;

Or instead of using:

goto L_shop;

Just remove it. If they want to shop again, just talk to the NPC.

I don't know what could be causing the error, but try those thing i told you.

Good Luck!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  55
  • Topics Per Day:  0.01
  • Content Count:  206
  • Reputation:   13
  • Joined:  11/20/11
  • Last Seen:  

Thank you for your suggestion but I want the goto L_shop; to be there.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

What for? It's as if you're talking to 2 npcs at once, and that's not allowed.

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