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 ➜ How to kill/stop stacked commands after an alias is fired?

How to kill/stop stacked commands after an alias is fired?

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


Posted by Ganada   (8 posts)  Bio
Date Sun 12 Jan 2020 09:53 PM (UTC)
Message
Hi, I'd like to know if there is a way to stop/clear/kill stacked commands once an alias is fired.

For example, the alias 'Darkfield!' runs about 50 directions (n;n;n;n;s;s;s;s;e;e;e;e.....)
which usually takes up to ~5 seconds until I'm done moving.


However, sometimes there are mobs preemptively attack me while I'm moving.

I.e.) when a mob attacks me when I moved 4 times (n;n;n;n;) from 50 direction commands of 'Darkfield'.

In this case, my usual attack/skill triggers would fire when the mob attacks me, but they'll be only executed after running all 46 remaining commands from already fired alias 'Darkfield!' : (s;s;s;s;e;e;e;e;...).


Is there any way to kill/clear/stop the 46 remaining direction commands, so that the triggers to attack the mob can be fired once I'm attacked immediately?

Watching my character getting badly beaten, not being able to do anything before the remaining 46 'attempts' to move to somewhere, is really annoying.

Any insights would be highly appreciated.

Thanks!!
Top

Posted by Fiendish   USA  (2,558 posts)  Bio   Global Moderator
Date Reply #1 on Sun 12 Jan 2020 10:13 PM (UTC)
Message
MUSHclient sends those movement commands to the server all at once. After that, it's up to the server whether to let you interrupt them being performed. Depending on the game, disconnecting and then reconnecting may clear your action queue.

https://github.com/fiendish/aardwolfclientpackage
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #2 on Sun 12 Jan 2020 10:23 PM (UTC)
Message
What you need to do is use something like a "slow" speedwalk. This waits until you reach a room until it issues the next command, so they are not pre-sent to the MUD where they can't be cancelled. See here, for example:

https://www.gammon.com.au/forum/?id=6008

- Nick Gammon

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

Posted by Ganada   (8 posts)  Bio
Date Reply #3 on Sun 12 Jan 2020 10:50 PM (UTC)
Message
Thanks a lot @Nick Gammon, @Fiendish for your swift replies!!!

I used to use Zmud for speedwalk just like the link provided, but I was not sure how to implement that in MUSHclient with Lua.

I'll go explore and give it a try.

Thanks again!!!
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.


16,482 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.