Jump to content
  • 0

Itemshop turn into switch cases


BlackSnow

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  32
  • Reputation:   0
  • Joined:  02/19/16
  • Last Seen:  

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
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  452
  • Reputation:   35
  • Joined:  12/18/14
  • Last Seen:  

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 by PandaLovesHamster
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  32
  • Reputation:   0
  • Joined:  02/19/16
  • Last Seen:  

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.

 

 

de7a1k.png

Edited by BlackSnow
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...