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
npc buy problem, help me?
Author Message
jexnico
Journeyman
*

Posts: 191
Likes Given: 114
Likes Received: 3 in 3 posts
Joined: Jan 2014
Reputation: 0



Post: #1
Exclamation npc buy problem, help me?
well, when i try to make a purchase on an npc the purchase is not finalized
i make the command buy, i select the item that i want to buy and confirm, the gump trade does not close and the item does not appear in my inventory ...
i do not know if it is some mistake because when i make a purchase nothing appears without a sphere

the only error that is appearing is this:

06:36:ERROR:(sphere_vendors.scp,333)Undefined symbol 'VENDOR_S_DEED_TEMPLATE' ['VENDOR_S_DEED_TEMPLATE']

but i do not know if there is anything related to my problem

note: i can not finish the purchase in any npc

any help me please?
02-20-2018 07:37 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: npc buy problem, help me?
Open sphere_template_vend.scp

and check if you have this
Code:
[TEMPLATE VENDOR_S_DEED_TEMPLATE]
CATEGORY=Vendor Templates
SUBSECTION=Sell Templates
DESCRIPTION=Deed Vendor
SELL=i_deed_stone_and_plaster_house,{2 6}
SELL=i_deed_field_stone_house,{2 6}
SELL=i_deed_small_brick_house,{2 6}
SELL=i_deed_wooden_house,{2 6}
SELL=i_deed_wood_and_plaster_house,{2 6}
SELL=i_deed_thatched_roof_cottage,{2 6}
SELL=i_deed_brick_house,{2 6}
SELL=i_deed_two_story_wood_and_plaster_house,{2 6}
SELL=i_deed_two_story_stone_and_plaster_house,{2 6}
SELL=i_deed_tower,{2 6}
SELL=i_deed_small_stone_keep,{2 6}
SELL=i_deed_Castle,{2 6}
SELL=i_deed_large_house_with_patio,{2 6}
SELL=i_deed_marble_house_with_patio,{5 10}
SELL=i_deed_small_stone_tower,{10 20}
SELL=i_deed_two_story_log_cabin,{10 20}
SELL=i_deed_sandstone_house_with_patio,{10 20}
SELL=i_deed_two_story_villa,{10 20}
SELL=i_deed_small_stone_workshop,{10 20}
SELL=i_deed_small_marble_workshop,{10 20}
SELL=i_deed_tower,{2 6}
SELL=i_deed_Castle,{2 6}
SELL=i_deed_evil_compound,{5 10}

If you don't have probably you have some wrong/old scripts

You can still add the one above btw.
(This post was last modified: 02-20-2018 10:26 PM by darksun84.)
02-20-2018 10:26 PM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes darksun84's post
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #3
RE: npc buy problem, help me?
the error itself is already telling the problem: on sphere_vendors.scp, the vendor on line 333 is trying to use an sell template list which doesn't exist (VENDOR_S_DEED_TEMPLATE). So you must create this template or remove this line from this NPC

anyway, based on your report (you click on "confirm" and nothing happens) this seems occur when you try to buy from an NPC out o LOS
02-21-2018 02:49 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Coruja's post
jexnico
Journeyman
*

Posts: 191
Likes Given: 114
Likes Received: 3 in 3 posts
Joined: Jan 2014
Reputation: 0



Post: #4
RE: npc buy problem, help me?
(02-21-2018 02:49 AM)Coruja Wrote:  the error itself is already telling the problem: on sphere_vendors.scp, the vendor on line 333 is trying to use an sell template list which doesn't exist (VENDOR_S_DEED_TEMPLATE). So you must create this template or remove this line from this NPC

anyway, based on your report (you click on "confirm" and nothing happens) this seems occur when you try to buy from an NPC out o LOS

yeah, template was off haha

Quote://[TEMPLATE VENDOR_S_DEED_TEMPLATE]
//CATEGORY=Vendor Templates
//SUBSECTION=Sell Templates
//DESCRIPTION=Deed Vendor
//SELL=i_house_placement_tool,{10}
//SELL=i_house_interior_decorator,{10}

but anyway im still having problems trying to buy, now even the buying gump appears, npc says that it has nothing to sell me...
i believe the problem is in my restock script, but i used it without problems before...

check this:
[Image: 334it6f.png]

**** edit:
gump appeared but i can not complete the purchase

[Image: 4l4xud.png]
(This post was last modified: 02-21-2018 07:23 AM by jexnico.)
02-21-2018 07:15 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #5
RE: npc buy problem, help me?
Do you have any custom scripts that handles buy/sell/restock, also in new UO client the buy/sell range was reduced so you need to be near the vendor for completing the transaction
02-21-2018 07:33 AM
Find all posts by this user Like Post Quote this message in a reply
jexnico
Journeyman
*

Posts: 191
Likes Given: 114
Likes Received: 3 in 3 posts
Joined: Jan 2014
Reputation: 0



Post: #6
RE: npc buy problem, help me?
(02-21-2018 07:33 AM)darksun84 Wrote:  Do you have any custom scripts that handles buy/sell/restock, also in new UO client the buy/sell range was reduced so you need to be near the vendor for completing the transaction

yes, im on the sellers side, even so my purchase is not complete
02-21-2018 11:13 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
jexnico
Journeyman
*

Posts: 191
Likes Given: 114
Likes Received: 3 in 3 posts
Joined: Jan 2014
Reputation: 0



Post: #7
RE: npc buy problem, help me?
i need help :c
02-21-2018 08:15 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #8
RE: npc buy problem, help me?
Try to buy/sell from a NPC by using a the default script pack, that means just default sphere files without any custom script:

https://github.com/Sphereserver/Scripts/...master.zip

If it works it means something is wrong on your custom scripts, if you moved from 56b to 56c/d there could be some incompabitilies that you need to address
02-21-2018 08:43 PM
Find all posts by this user Like Post Quote this message in a reply
jexnico
Journeyman
*

Posts: 191
Likes Given: 114
Likes Received: 3 in 3 posts
Joined: Jan 2014
Reputation: 0



Post: #9
RE: npc buy problem, help me?
(02-21-2018 08:43 PM)darksun84 Wrote:  Try to buy/sell from a NPC by using a the default script pack, that means just default sphere files without any custom script:

https://github.com/Sphereserver/Scripts/...master.zip

If it works it means something is wrong on your custom scripts, if you moved from 56b to 56c/d there could be some incompabitilies that you need to address

i deactivated my new script to buy and sell, now the purchases are back to normal, i do not know why, because the sphere does not accuse any errors...
02-22-2018 08:18 AM
Visit this user's website 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: #10
RE: npc buy problem, help me?
In your script probably there is some return 1 when u hit accept so it dont let you to finish your purchase so u need to check your scripts.
02-22-2018 11:02 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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