SphereCommunity
Non-Vendable Item - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Non-Vendable Item (/Thread-Non-Vendable-Item)



Non-Vendable Item - mpgram - 04-15-2013 11:54 PM

I get errors when someone tries to buy/sell against a vendor.

20:55:WARNING:(spheretemp_vend.scp,1850)Vendor non-vendable item: i_ingot_iron uid=040007edf, vendor: Zalika uid=01b7d7
20:55:WARNING:(spheretemp_vend.scp,1596)Vendor non-vendable item: i_ingot_iron uid=0400078ea, vendor: Zalika uid=01b7d7

[ITEMDEF 019b7]
DEFNAME=i_ore_iron
NAME=Iron Ore
TYPE=t_ore
SKILLMAKE=SKILL_MINING 0.0
TDATA1=i_ingot_iron
WEIGHT=1
VALUE=1
DUPELIST=019b8,019b9,019ba

and on the vendor_template

BUY=i_ingot_iron

Does anyone know why it does this? It happens with multiple items, not just iron ingots.


RE: Non-Vendable Item - RanXerox - 04-16-2013 07:18 AM

Items non-vendable if they have no weight or price... if weight is not directly specified, it is calculated from the item's resources.

You posted the i_ore_iron definition... but the log is complaining that the i_ingot_iron item was the problem... so what does that one look like?


RE: Non-Vendable Item - mpgram - 04-16-2013 03:43 PM

Hehe, meant to paste the ingot:

[itemdef 01bf2]
defname=i_ingot_iron
name=iron ingot
type=t_ingot
resources=i_ore_iron
skillmake=skill_mining 20.0
tdata1=20.0
tdata2=50.0
weight=1
value=3


RE: Non-Vendable Item - Shaklaban - 04-17-2013 02:47 PM

skillmake seems to be wrong:

[ITEMDEF 01bef]
DEFNAME=i_ingot_iron
TYPE=T_INGOT
RESOURCES=i_ore_iron
SKILLMAKE=20.0 MINING
TDATA1=20.0
TDATA2=50.0
WEIGHT=0.5
DUPELIST=01bf0,01bf1,01bf2,01bf3,01bf4
CATEGORY=Items by Professions
SUBSECTION=Blacksmiths
DESCRIPTION=Iron Ingot

i think you need to update your base scripts.


RE: Non-Vendable Item - mpgram - 04-17-2013 04:40 PM

Heh.. I didnt know they changed that much! Cool, thanks.


RE: Non-Vendable Item - UltimaAku - 04-21-2013 07:13 PM

yea skill make is how it's produced. If the skill-make is scripted wrong, it won't recognise the object as a creatable object, so it won't generate it by vendors. Had same problem with black staff took me forever to work out how to fix it