![]() |
local NPC's(putnpc2)
So I was making a little pet script... and it works great, sort of.
I create make a putnpc2, and access it... warp it around and such. That all works great, but whenever I want to change something it won't update until it's warped. For example, I have it so I can set it's chat. If I do "/pet chat testing", it won't set the chat, but if I leave to another level and it warps to me, it's chat will change to testing. Is there anyway I can get these changes to update without warping it? |
PHP Code:
|
I would try restarting the NPC Server to see if it persists... To me, it seems like the packets aren't being sent when particular variables are changed: Restarting might fix that problem.
|
Happened to me, I believe I fixed it, but can't recall how :x
|
If you're using this.chat = ""; or chat = ""; try using message("");
If you're already using message(""); good luck lol. |
I tried message(), no luck. It happens whenever I try to change anything... introducing a timeout into the NPC fixed it though.
|
Quote:
|
Do trigger("update","") or similar to wake the npc up, like Chompy said. Only attributes of active npcs are sent to the player.
|
| All times are GMT +2. The time now is 05:47 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.