The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Non-Vendable Item
Author Message
mpgram
Apprentice
*

Posts: 21
Likes Given: 0
Likes Received: 3 in 1 posts
Joined: Apr 2013
Reputation: 0



Post: #1
Non-Vendable Item
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.
04-15-2013 11:54 PM
Find all posts by this user Like Post Quote this message in a reply
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #2
RE: Non-Vendable Item
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?
04-16-2013 07:18 AM
Find all posts by this user Like Post Quote this message in a reply
mpgram
Apprentice
*

Posts: 21
Likes Given: 0
Likes Received: 3 in 1 posts
Joined: Apr 2013
Reputation: 0



Post: #3
RE: Non-Vendable Item
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
04-16-2013 03:43 PM
Find all posts by this user Like Post Quote this message in a reply
Shaklaban
Master
**

Posts: 378
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 8

DOT

Post: #4
RE: Non-Vendable Item
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.
(This post was last modified: 04-17-2013 02:47 PM by Shaklaban.)
04-17-2013 02:47 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
mpgram
Apprentice
*

Posts: 21
Likes Given: 0
Likes Received: 3 in 1 posts
Joined: Apr 2013
Reputation: 0



Post: #5
RE: Non-Vendable Item
Heh.. I didnt know they changed that much! Cool, thanks.
04-17-2013 04:40 PM
Find all posts by this user Like Post Quote this message in a reply
UltimaAku
Journeyman
*

Posts: 125
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2013
Reputation: 1



Post: #6
RE: Non-Vendable Item
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
04-21-2013 07:13 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)