View Single Post
  #7  
Old 08-26-2006, 07:55 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Quote:
Originally Posted by Stefan
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.
Yeah, my solution was to trigger an action to itself :o
Reply With Quote