x13th Posted December 18, 2012 Group: Members Topic Count: 55 Topics Per Day: 0.01 Content Count: 206 Reputation: 14 Joined: 11/20/11 Last Seen: April 9, 2024 Share Posted December 18, 2012 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; } Quote Link to comment Share on other sites More sharing options...
Miles Posted December 18, 2012 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 68 Reputation: 13 Joined: 11/14/11 Last Seen: April 30, 2013 Share Posted December 18, 2012 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! Quote Link to comment Share on other sites More sharing options...
x13th Posted December 19, 2012 Group: Members Topic Count: 55 Topics Per Day: 0.01 Content Count: 206 Reputation: 14 Joined: 11/20/11 Last Seen: April 9, 2024 Author Share Posted December 19, 2012 Thank you for your suggestion but I want the goto L_shop; to be there. Quote Link to comment Share on other sites More sharing options...
clydelion Posted December 19, 2012 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 754 Reputation: 186 Joined: 05/22/12 Last Seen: October 15, 2022 Share Posted December 19, 2012 What for? It's as if you're talking to 2 npcs at once, and that's not allowed. Quote Link to comment Share on other sites More sharing options...
Question
x13th
Hello. What's wrong with my script? I can't move after clicking the cancel button in cash shop.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.