SphereCommunity
Non-vendable for all magic items? - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Non-vendable for all magic items? (/Thread-Non-vendable-for-all-magic-items)



Non-vendable for all magic items? - Capes - 04-13-2018 04:50 AM

0.56d
(default scripts)
- Curious... I just noticed that vendors that sell/buy magic items such as weapons & armor produce tons of non-vendable console errors.

I checked the default scripts and everything looks ok. Does anyone know what causes this error? Or how I can fix it?

I read a forum post about cost/weight/SKILLMAKE causing this but the item defs for magic items are derived from base items already so they should inherit the base cost & weight etc...

Here's a copy/paste from sphere_item_magic_weapon.scp

[ITEMDEF i_scimitar_ruin]
ID=i_scimitar
NAME=Scimitar of Ruin
RESOURCES=10 i_ingot_iron, i_scimitar
//INCREASEDAM=15

CATEGORY=Provisions - Weapons - Magic
SUBSECTION=Magic Scimitars
DESCRIPTION=Scimitar of Ruin

ON=@Create
MOREY=1.0
ATTR=attr_magic
HITPOINTS={31 90}
COLOR=color_magic_weap

The ID property is set to ID=i_scimitar, but this throws a non-vendable error....

Do I have to manually add cost/weight/SKILLMAKE to every magic weapon & armor?


Thanks
Capes


RE: Non-vendable for all magic items? - azmanomer - 04-14-2018 03:13 AM

you need to add cost for buy and sell also u need to add it to vendors template. If its dont have cost then how can sphere know what will be the price. ID means for sphere just picture of it. Like u are saying to sphere to use same picture for i_scimitar_ruin