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
NPCRrestock doesnt fire
Author Message
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #11
RE: NPCRrestock doesnt fire
anyone? Sad
08-26-2014 04:46 PM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #12
RE: NPCRrestock doesnt fire
Code:
layer_vendor_stock   26 // the stuff the vendor will restock and sell to the players
layer_vendor_extra   27 // the stuff the vendor will resell to players but is not restocked. (bought from players)
layer_vendor_buys    28 // the stuff the vendor can buy from players but does not stock.

Try to add the items to these layers.
08-26-2014 08:09 PM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #13
RE: NPCRrestock doesnt fire
will do, thank you xun, by the way, could you take a look when you have time or maybe tell skul or one of the devs if can take a look to the tag_override_value script because it works fine but for animal trainer selling gump isnt shown. seems to be only for animal trainer, all the rest brains/vendors work fine Smile

that would be it ^^ thank you
08-27-2014 01:21 AM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #14
RE: NPCRrestock doesnt fire
may anyone try skul's value override script with animal trainer selling gump? to me it doesnt show up...


thanks!
(This post was last modified: 08-28-2014 04:38 AM by kn4tseb.)
08-28-2014 04:37 AM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #15
RE: NPCRrestock doesnt fire
NOBODY??? Really???? c'mon guys Smile give me a hand
08-30-2014 02:56 AM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #16
RE: NPCRrestock doesnt fire
Guys i dont think this is too much to ask xDD.. would be nice if anyone using pricing overriding tag script has the very same problem than i do when buying from animaltrainer, for some reason its the only npc the buying gump isnt shown.... with all the rest it works fine... i need to know if its only me..


THANKS! Big Grin
08-31-2014 08:02 AM
Find all posts by this user Like Post Quote this message in a reply
Ben
Sphere Developer
*****

Posts: 612
Likes Given: 2
Likes Received: 123 in 70 posts
Joined: Mar 2010
Reputation: 18

SphereCommunity

Post: #17
RE: NPCRrestock doesnt fire
Just a guess here, but i don't think the animal trainer has a vendor brain. If it's not that much to ask, then you should be able to figure it out yourself. When people are pushy, they tend not to get answers...

AxisII's current version: 2.0.4j
AxisII SourceCode on Github
AxisII up to date changelog
08-31-2014 10:40 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #18
RE: NPCRrestock doesnt fire
You were right again, the code was only taking the vendor brains... just added the animal trainer brain and worked the buying gump, the override tag works, but when selling for most npcs the gump doesnt appear and the char freezes..... for now only architects works fine when selling,
no idea how to fix it, hope skul's will take a look when he gets some time
thanks ben and im sorry for pushing people to answer.. i just couldnt figure it until you said so... thank you very much

and i get this console errors everytime after buying something.
16:54:ERROR:Undefined keyword 'speak'
16:54:ERROR:Undefined keyword 'speak'
16:54:ERROR:Undefined keyword 'speak'
(This post was last modified: 09-01-2014 05:57 AM by kn4tseb.)
09-01-2014 04:29 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #19
RE: NPCRrestock doesnt fire
Change speak to SAY!!!

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
09-01-2014 06:14 AM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #20
RE: NPCRrestock doesnt fire
okey... im able to override values from buying items but i cant make the fallowing work... the idea is to change de value of all stockable pets from an animaltrainer... if i use a npc trigger that fires as i know they do, the values are successfully overriden but when restocked they return to their "default" value...
whats wrong with this little code?

Code:
ON=@NPCRestock
IF <NPC> == brain_animal_trainer
IF <FINDLAYER.26>
REF1 = <FINDLAYER.26.UID>
FORCONT <REF1>
IF <TYPE> == T_FIGURINE
REF2 = <UID>
REF2.TAG.OVERRIDE.VALUE = <SERV.ITEMDEF.<REF2.BASEID>.VALUE>*8
ENDIF
ENDFOR
ENDIF
ENDIF

Values arent changed when restocking :/


Thanks ^^
(This post was last modified: 09-01-2014 01:20 PM by kn4tseb.)
09-01-2014 01:05 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)