Conversation
@Logout trigger When NPCs (mounts) are logged out of the session in any way, i.e. mounted or minimised, they will log out (disconnect) but will not trigger.
|
Since it's a particular situation on a particular NPC, should we really use the @logout trigger? I mean, we disconnect the mount when we climb on it to avoid it take damage and maybe more reason. If the purpose is really explicitly for this situation, could we use something like @Dismounted and place it directly on the dismount method? Juste after the @Dismont for player. |
In fact, a mount can be logged out not only when it is mounted but also when we directly .xdisconnect it to the mount. Previously, this trigger was not triggered when a mount was disconnected with .xdisconnect. It also disconnects when the mount is shrink. |
|
That's interesting. Do you have any use cases in mind? |
Actually, the disconnect event for NPCs is completely incomplete right now, that is, an entity can be .xdisconnected, when .allshow is set to 1, this entity appears in the [logout] position but cannot be called back, that is, something like .xdisconnect 0 or .xconnect should be for NPCs as well, that is, since disconnect can be used for NPCs as well, then I think these should work without problems. For example, we should be able to .disconnect 1 the mount of a player who enters an area, and .connect that mount again when the player leaves the area, and naturally @login and @logout should be triggered on that mount or NPC, if it can be disconnected, these should be done too. |
|
I understand the principle and i think having npcs call a disconnect trigger won't cause any harm. |
@Logout trigger When NPCs (mounts) are logged out of the session in any way, i.e. mounted or minimised, they will log out (disconnect) but will not trigger.