SphereServer BugTracker - SphereServer
View Issue Details
0002574SphereServerexecutable - windows buildpublic09-02-16 21:0912-02-16 16:09
darksun84 
 
normalmajoralways
newopen 
 
 
Automated (specify build number)
None
None
2681
0002574: @NpcRestock seems to recognize only SELL and BUY keywords
Using Nightly Build 2681

Items placed under the @NpcRestock trigger aren't created when a NPC is placed on the world.
At first we thought that @NpcRestock wasn't fired but then we noticed that vendors still get the items from their buy/sell list.

Example from the c_blacksmith NPC:
ON=@NPCRestock
   ITEM=random_coin_purse //This is not placed
   ITEM={ i_hammer_sledge 1 i_hammer_smith 1 } // This is not placed
   //Sell and Buy keyword are recognized, so the vendor's item list appears
   //when you do buy or sell
   SELL=VENDOR_S_BLACKSMITH
   BUY=VENDOR_B_ARMORER_LEATHER

Noticed that items inserted in @create are correctly placed in the NPC's backpack.
1)Add a NPC
2)Kill it or check its backpack.
No tags attached.
Issue History
09-02-16 21:09darksun84New Issue
09-02-16 21:17darksun84Note Added: 0003009
09-02-16 21:32darksun84Note Edited: 0003009bug_revision_view_page.php?bugnote_id=0003009#r910
09-02-16 21:40darksun84Note Edited: 0003009bug_revision_view_page.php?bugnote_id=0003009#r911
12-02-16 16:09nolokNote Added: 0003010

Notes
(0003009)
darksun84   
09-02-16 21:17   
(edited on: 09-02-16 21:40)
UPDATE

@NpcRestock seems to work if the creature is Spawned ( and not placed manually).

Edit:

Not always @NpcRestock works even by spawned creature

(0003010)
nolok   
12-02-16 16:09   
Try now, with latest nightly