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
Extreme
Grandmaster Poster
***

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

SphereCommunity

Post: #21
RE: NPCRrestock doesnt fire
Try this:
PHP Code:
ON=@NPCRestock
TIMERF 1
,UPDATEVALUES

[FUNCTION UPDATEVALUES]
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 

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 03:01 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: #22
RE: NPCRrestock doesnt fire
doesnt work... it only works if i write this in-game over the char

.set TIMERF 1,UPDATEVALUES

and when i manually restock: .set restock 1
over the char, values return to original ...
pretty annoying...

I have even tried with:

ON=@NpcRestock
serv.log hello

and no log message at all, char items are restocked but trigger never fires... :/
(This post was last modified: 09-01-2014 04:49 PM by kn4tseb.)
09-01-2014 03:26 PM
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: #23
RE: NPCRrestock doesnt fire
(08-26-2014 06:33 AM)Extreme Wrote:  This one is fired to create initial items on npc.
You can see it on all npc scripts.
If you pay more attention, you should know that this trigger fires only one timer.

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 11:52 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: #24
RE: NPCRrestock doesnt fire
indeed, but even when npc is spawned for the first time it doesnt update the values....
anyway.. for now i put the code before the NEW_BYE function at speakshopkeep... so animalvendor stocked items are updated when buying ... not the best idea but will do the job for now
(This post was last modified: 09-02-2014 02:49 AM by kn4tseb.)
09-02-2014 02:13 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes kn4tseb's post
Post Reply 


Forum Jump:


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