![]() |
NPC setimg() from another NPC
It seems as though NPCs don't update their image on a player's screen until actually interacting with the NPC (onCreated(), onPlayer____()). At least, this is seen on Unholy Nation with their Event Doors. Is there any way to get the image to update with a (public) function called from another NPC?
Edit: Seems like they don't update anything (to the player) unless an interaction with the player is done. |
Maybe it's just asleep and you need to wake it by triggering an event?
|
All you need to do is..
this.trigger("Update", ""); Which will force an update (Any event will do not just Update) |
Quote:
Edit: Seems like having a timeout triggering (starting from onCreated) can update the NPC to the player. Edit: That worked too, Jer, and will be more efficient, thanks. Still pretty weird that it needs this in the first place. |
Quote:
PHP Code:
|
Another note to my post, originally Novo had stored clan data and so on in a DB but we experienced a random data loss when the server restarted/crashed. To counter this:
PHP Code:
|
All times are GMT +2. The time now is 06:17 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.