Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to "verify" your details, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ MUSHclient ➜ General ➜ Trigger on disconnect?

Trigger on disconnect?

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Vincitore   (11 posts)  Bio
Date Fri 08 Apr 2011 03:58 PM (UTC)
Message
Is there a way to have disconnecting fire a trigger? The game I play doesn't have a text notification of such, and I don't see anything in the documentation about this.
Top

Posted by Daniel P   USA  (97 posts)  Bio
Date Reply #1 on Fri 08 Apr 2011 04:47 PM (UTC)

Amended on Fri 08 Apr 2011 04:50 PM (UTC) by Daniel P

Message

<script>
function OnPluginDisconnect ()

end -- function
</script>

Of course, with this option, you MUST build your script into a plugin, but this would do it. And without an "official" trigger!

In the help file, this would be located under the search term: "Scripting callbacks - plugins"
Top

Posted by Vincitore   (11 posts)  Bio
Date Reply #2 on Fri 08 Apr 2011 05:27 PM (UTC)
Message
Thanks. I was indeed working with a plugin, so this is perfect.
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


12,221 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.