![]() |
NPCs Not Selling Custom Items - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: NPCs Not Selling Custom Items (/Thread-NPCs-Not-Selling-Custom-Items) |
NPCs Not Selling Custom Items - pinku - 09-04-2013 07:01 PM Hey, Another annoying post. I'm sorry, I actually try my best before posting. ![]() I'm trying to make the tailor NPC sell a custom deed, but no luck so far, they show on the selling menu, but they are not in stock. I'll explain a bit more below: Code: [TEMPLATE VENDOR_S_TAILOR] Code: [ITEMDEF i_deed_loom_s] First - I made sure the deed is reading before the vendor templates. Second - VALUE does not work, it's 100k instead of 50k. Third - Code: WARNING:1:Cheater 'admin' is submitting illegal buy packet (Requested items out of stock) Forth - In game the NPC says: Code: Alas, I don't have these goods currently stocked. Let me know if there is something else thou wouldst buy. Again, I can see the items in the menu, but I can't buy them. There must be a problem on the restock, but I haven't figure out how to fix it. Thanks again! RE: NPCs Not Selling Custom Items - Extreme - 09-05-2013 01:57 AM Remove the ATTR=ATTR_NEWBIE and test again. RE: NPCs Not Selling Custom Items - pinku - 09-05-2013 02:49 PM This is not the issue. My houses are newbied as well and sell just fine. I tested anyway and no luck. It's something else. Thanks for your help anyway! Made a new test. The issue seems to be the deeds. Value still not work and I still can't buy. Any and all other custom item sells just fine... ): RE: NPCs Not Selling Custom Items - RanXerox - 09-05-2013 03:26 PM For an item to be bought and sold it needs both VALUE and WEIGHT... If you don't explicitly set the WEIGHT of a thing, it will try to compute the weight using the RESOURCES... if the items in the list of RESOURCES do not themselves have WEIGHT or RESOURCES defined, the WEIGHT in the MUL (or UOP) file is used... if they dont have a valid value either, the item is considered unmovable. To make a long story short, try adding WEIGHT=1 to your deed ITEMDEF and add a VALUE to the base item (that you are setting on MORE in @Create). That's my theory anyway ;-) RE: NPCs Not Selling Custom Items - pinku - 09-05-2013 05:03 PM This was indeed the error. ![]() I would never imagine that. Thanks RanXerox! |