Quote:
Originally Posted by JohnnyChimpo
Okay thanks for the suggestion. I still dont think it will fit my needs though. In short i am trying to make a shop, only display items to certain players. What players get displayed the shop items are based off of variables in a sql database(per individual player). The trouble im having is, when i place the npcs (putnpc2) and connect it to my item class, i am not able to access the clientdata(sql). I cannot triggeraction clientside from serverside, nor triggerClientside from server side in a putnpc2. I think i might be going about this wrong, but i dont see any better way, besides possibly using showimg.
|
You shouldn't need to use putnpc2. You should have one vendor NPC, and when they touch/click or whatever to open the shop window, it determines the items that they're selling and triggerclient's to the weapon NPC that handles displaying your shop GUI.