BlackSnow Posted February 29, 2016 Posted February 29, 2016 How do you turn them into a switch case? I dont want two or more npc while using itemshop. prontera,150,150,3 itemshop Headies 909,509:0,5406:10000000,5407:10000000 prontera,151,151,3 itemshop Supplies 909,509:0,5766:10000000,5207:10000000 Quote
0 PandaLovesHamster Posted February 29, 2016 Posted February 29, 2016 (edited) Try this.You need to finish it first though. - itemshop custom_seller1 909..... - itemshop custom_seller2 909..... Coordinate_Here script Name_Shop_Here 437,{ mes "[NPC_NAME_HERE]"; mes "Which one do you want to open?"; @shop = select("Headgears:Supplies"); mes "[NPC_NAME_HERE"; mes "Happy shopping."; close2; deletearray @bought_nameid; callshop "custom_seller"+@shop,1; npcshopattach "custom_seller"+@shop; end; } Edited February 29, 2016 by PandaLovesHamster Quote
0 BlackSnow Posted February 29, 2016 Author Posted February 29, 2016 (edited) Thanks but unfortunately it doesn't want to work. - itemshop custom_seller1 909,509:0,5406:100,5407:100 - itemshop custom_seller2 909,509:0,5766:100,5207:100 prontera,155,155,3 script Name_Shop_Here 437,{ mes "[NPC_NAME_HERE]"; mes "Which one do you want to open?"; @shop = select("Headgears:Supplies"); mes "[NPC_NAME_HERE"; mes "Happy shopping."; close2; deletearray @bought_nameid; callshop "custom_seller"+@shop,1; npcshopattach "custom_seller"+@shop; end; } I'm using White Herb(509) as my currency. It doesn't do anything. My money is still intact and my white herb is still there. It says deal completed but its not. Edited February 29, 2016 by BlackSnow Quote
0 PandaLovesHamster Posted February 29, 2016 Posted February 29, 2016 Try removing that deletearray line. Quote
Question
BlackSnow
How do you turn them into a switch case? I dont want two or more npc while using itemshop.
4 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.