Equivalent zMud onConnect
Equivalent zMud onConnect
zMud has an onConnect alias that is run when the MUD is connected. Is there an equivalent alias or event in Mudlet?
Re: Equivalent zMud onConnect
Define a simple trigger on the login message of your MUD and run your init scripts from there.
Re: Equivalent zMud onConnect
And it all goes awry when someone fakes that line
Re: Equivalent zMud onConnect
zMud doesn't exactly have an alias, it has system defined event, called 'onConnect'. I believe this event sort of already exists in Mudlet, but is not accessible in script (I may well be wrong). Still, if it already exists, maybe it wouldn't be hard to have it call an actual Mudlet script event, which would let us create event handler functions for it?
At the moment I just trigger on the text I see on login, but if people faking that line is a problem, as Vadi suggests, then that would be my suggestion for a solution.
At the moment I just trigger on the text I see on login, but if people faking that line is a problem, as Vadi suggests, then that would be my suggestion for a solution.
Re: Equivalent zMud onConnect
Sounds like a great solution
-
- Posts: 13
- Joined: Fri May 15, 2009 12:52 pm
Re: Equivalent zMud onConnect
Not if you properly disable your initialization trigger after login and enable them on disconnect.Vadi wrote:And it all goes awry when someone fakes that line
I'm using a login trigger and it's easy and reliable.
Re: Equivalent zMud onConnect
What if someone fakes your disconnect message? ;P
Re: Equivalent zMud onConnect
You don't have to use a trigger to reenable your init triggers. You can use buttons or aliases to disconnect you from the MUD.
Adding an onConnect system event is no big deal and will be added eventually.
Adding an onConnect system event is no big deal and will be added eventually.
Re: Equivalent zMud onConnect
Eventually! It would still be great heh.
Re: Equivalent zMud onConnect
It's been a year since I originally posted this. Has there been any progress?
This is the one feature that is keeping me from using mudlet.
I'm unable to use a trigger of the login text, as the MUD has two modes. The mode that I am trying to enable with mudlet requires a special cookie be sent before the login text is printed. This special mode would enable graphical maps, MOB entry and exit notifications, inventory control, etc.
The onConnect event in ZMUD allowed me to send this special cookie before the 'plain' login text displayed.
I can understand if it is not a priority for the overall project, but it is the number one item on my wish list.
This is the one feature that is keeping me from using mudlet.
I'm unable to use a trigger of the login text, as the MUD has two modes. The mode that I am trying to enable with mudlet requires a special cookie be sent before the login text is printed. This special mode would enable graphical maps, MOB entry and exit notifications, inventory control, etc.
The onConnect event in ZMUD allowed me to send this special cookie before the 'plain' login text displayed.
I can understand if it is not a priority for the overall project, but it is the number one item on my wish list.