View Single Post
  #6  
Old 08-26-2006, 01:47 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
When you modify some other npc then it will not be updated, since it is inactive. Best way is to activate it afterwards by triggering it:

PHP Code:
function onActionGrab() {
  
with (findNPC("localnpc_g_kuji-testlvl_35088589_0")) {
    
message("wtf");
    
trigger("update","");
  }

Since might sound strange, but the npcserver is just not caring about inactive npcs, because the total number of npcs is often 100 times bigger than the number of active npcs, so checking all npcs for updates would slow down the server. It could be possible to let the npc activate itself though, will check sometime if that is possible.
Reply With Quote