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-nmm7 (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-nmm7 (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-nmm7 (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 for all magic items?
Author Message
Capes
Journeyman
*

Posts: 57
Likes Given: 0
Likes Received: 4 in 4 posts
Joined: Mar 2018
Reputation: 0



Post: #1
Non-vendable for all magic items?
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
04-13-2018 04:50 AM
Find all posts by this user Like Post Quote this message in a reply
azmanomer
Journeyman
*

Posts: 139
Likes Given: 4
Likes Received: 18 in 16 posts
Joined: Nov 2013
Reputation: 1



Post: #2
RE: Non-vendable for all magic items?
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
(This post was last modified: 04-14-2018 03:14 AM by azmanomer.)
04-14-2018 03:13 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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