bWolfie 139 Posted June 14, 2017 I'm trying to use npcshopattach() on a shop in another script. Can this be done? Always returns false. if (npcshopattach("My_Shop") == false) mes("FALSE"); else mes("TRUE"); close; And in another script: - trader My_Shop FAKE_NPC,{ OnInit: tradertype(NST_CUSTOM); sellitem(Red_Potion, 1); end; OnCountFunds: setcurrency(countitem(Orange_Potion)); end; OnPayFunds: if (countitem(Orange_Potion) < @price) end; delitem(Orange_Potion, @price); purchaseok(); end; } Quote Share this post Link to post Share on other sites
0 Dastgir 1246 Posted June 14, 2017 Because it's trader script and not shop. You cannot use npcshopattach with trader scripts. Quote Share this post Link to post Share on other sites
0 bWolfie 139 Posted June 14, 2017 17 minutes ago, Dastgir said: Because it's trader script and not shop. You cannot use npcshopattach with trader scripts. o i c thanks for quick response. shame Quote Share this post Link to post Share on other sites
I'm trying to use npcshopattach() on a shop in another script. Can this be done? Always returns false.
And in another script:
Share this post
Link to post
Share on other sites