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, confirm your email, resolve issues, 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.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ Triggers/Aliases/Timers on a disconnected world.

Triggers/Aliases/Timers on a disconnected world.

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


Posted by Panaku   (34 posts)  Bio
Date Thu 05 Sep 2013 12:08 AM (UTC)
Message
I'm back and once again trying something ridiculous. After running into issues with the screen flickering horribly in my last few scripts I've come up with a way to fix that issue and get all my mini windows working.

Is there anyway to have triggers/timers/aliases work on a disconnected world?

Using this post (http://mushclient.com/forum/?id=7991) as a reference I have created a dummy world. My plugin takes all information sent from the game and redirects it into the dummy world, and I've added in the second plugin so that I can send commands to the game via the dummy world.

Because of the way the prompt works in the game I play I have to add a newline at the end of it in order to get the prompt in the dummy world to update properly, this is fine. However the newline is not blank, it has '>' at the very end which would normally not be a problem except I can't use a trigger to omit this line.
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #1 on Thu 05 Sep 2013 06:19 AM (UTC)
Message
Triggers and aliases work on a disconnected world. Timers will if you check "Active when disconnected".

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Panaku   (34 posts)  Bio
Date Reply #2 on Thu 05 Sep 2013 08:08 AM (UTC)
Message
I determined why the triggers weren't working. Since the dummy world isn't actually receiving the information from the mud it can't catch triggers, but I if place the triggers into the world that is actually connected they fire. So I have that working, but it's not as easy as I had hoped -- still works though.

Next problem I ran into is the Keypad doesn't work in the dummy world. I can't seem to figure out why, whether I'm just stupid or it's disabled unless connected.

Another issue I ran into is I'm using your Add_Newline_To_Prompt plugin which is working as means to get the prompt to update instantly instead of needing to wait for another command but sometimes it thinks a certain line is my prompt and adds a new line in the wrong place, one specific instance is everytime I use the 'score' command.

I'm going to work on getting the Admin to add in a configuration option to have the game send a newline after each prompt anyways.

Either way I'm one step closer to the final goal.
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #3 on Thu 05 Sep 2013 10:54 AM (UTC)
Message
Triggers don't work on Notes, only on MUD output.

The keypad could send an alias which would match.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
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.


15,184 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.