SphereCommunity
NPCRrestock doesnt fire - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: NPCRrestock doesnt fire (/Thread-NPCRrestock-doesnt-fire)

Pages: 1 2 3


RE: NPCRrestock doesnt fire - kn4tseb - 08-26-2014 04:46 PM

anyone? Sad


RE: NPCRrestock doesnt fire - XuN - 08-26-2014 08:09 PM

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.


RE: NPCRrestock doesnt fire - kn4tseb - 08-27-2014 01:21 AM

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


RE: NPCRrestock doesnt fire - kn4tseb - 08-28-2014 04:37 AM

may anyone try skul's value override script with animal trainer selling gump? to me it doesnt show up...


thanks!


RE: NPCRrestock doesnt fire - kn4tseb - 08-30-2014 02:56 AM

NOBODY??? Really???? c'mon guys Smile give me a hand


RE: NPCRrestock doesnt fire - kn4tseb - 08-31-2014 08:02 AM

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


RE: NPCRrestock doesnt fire - Ben - 08-31-2014 10:40 PM

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...


RE: NPCRrestock doesnt fire - kn4tseb - 09-01-2014 04:29 AM

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'


RE: NPCRrestock doesnt fire - Extreme - 09-01-2014 06:14 AM

Change speak to SAY!!!


RE: NPCRrestock doesnt fire - kn4tseb - 09-01-2014 01:05 PM

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 ^^