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
Vendors won't buy anything..
Author Message
Capes
Journeyman
*

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



Post: #1
Vendors won't buy anything..
All they say is Sorry I don't have enough money etc....
How or where do I make a change so all vendors upon creation have 1000 gold to spend on purchases from players?

I tried adding 1000 gold to the NPCRESTOCK of each vendor but that just adds it to their inventory and they don't seem to wanna spend that money....


Thanks
Capes
03-25-2018 06:04 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: Vendors won't buy anything..
is your sphere.ini setted correctly? also which version are u using? and what are u trying to sell? is that item has value in script?
// If 1 vendors will take gold only from backpack
PayFromPackOnly=0
03-25-2018 07:17 AM
Find all posts by this user Like Post Quote this message in a reply
Capes
Journeyman
*

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



Post: #3
RE: Vendors won't buy anything..
Hi!
This is my sphere_ini
// If 1 vendors will take gold only from backpack
PayFromPackOnly=0

It's the vendors that say - I do not have the funds.....
How do I add money for/to vendors to spend on buying stuff from players?


Thanks
Capes
03-28-2018 06:56 AM
Find all posts by this user Like Post Quote this message in a reply
Satvet
Journeyman
*

Posts: 105
Likes Given: 32
Likes Received: 6 in 6 posts
Joined: Sep 2015
Reputation: 0



Post: #4
RE: Vendors won't buy anything..
I do not know exactly what it is, but maybe this can help?

Errors triggers success.
(This post was last modified: 03-29-2018 09:34 AM by Satvet.)
03-29-2018 01:42 AM
Find all posts by this user Like Post Quote this message in a reply
Capes
Journeyman
*

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



Post: #5
RE: Vendors won't buy anything..
ON=@NPCRestock
VENDGOLD=100000

Error -> undefined VENDGOLD
and the server crashed.....
using 0.56d


EDIT -
Crash not related.

Works perfect thanks!

Capes
(This post was last modified: 03-29-2018 08:39 AM by Capes.)
03-29-2018 05:29 AM
Find all posts by this user Like Post Quote this message in a reply
Capes
Journeyman
*

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



Post: #6
RE: Vendors won't buy anything..
New issue!
I copied the sphere_vendors.spc and added vendgold=1000 to my file. I did not touch the original file.

Vendors will buy now but the console is dumping a lot of errors out...
ERROR:(c_sphere_vendors.scp,2659)Loot item 'i_lantern' too heavy for NPC 'c_innkeeper_f'
08:12:ERROR:(c_sphere_vendors.scp,1915)Loot item 'i_torch' too heavy for NPC 'c_fisher'
08:12:ERROR:(c_sphere_vendors.scp,1915)Loot item 'i_lantern' too heavy for NPC 'c_fisher'

It spits out an error for every vendor now that spawns?
When I remove vendgold=1000 from vendors and respawn world, there error disappears...

Any ideas on how vendgold=1000 would cause this?

Thanks
Capes



UPDATE -

It was not an issue with sphere or the npc vendors..
A file comparison revealed my script file had '\r' for new line/line-break/carriage return.
Warning Notepad++ users -> make sure default for new-line is '\n' else sphere will not handle the asci correctly hence go weird.

Everything works now!

Thanks for all the help!
Capes
(This post was last modified: 03-30-2018 04:42 AM by Capes.)
03-29-2018 10:18 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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