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.
 Entire forum ➜ MUSHclient ➜ Plugins ➜ Adapting Slow walk Plugin for multi-lined exits

Adapting Slow walk Plugin for multi-lined exits

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


Posted by Xandler   (52 posts)  Bio
Date Thu 11 May 2023 12:37 AM (UTC)

Amended on Thu 11 May 2023 12:50 AM (UTC) by Xandler

Message
Sorry if this has been asked before or a subject for it already exists, I went looking for similar things and didn't see anything related to my plight. The subject pretty much says it all. I'm trying to adapt the slow walk speedwalk plug-in found here:

To a mud that uses multi-lined exits and for the life of me, I just can't figure it out because the plug-in unedited ends up timing out.

The mud I play on has exits designed like so:

Quote:
Visible Exits:
> north - Northern Space
> south - Southern Space
> west - Western Space


Is there something special I need to add into the exits trigger so that it can see the new lines below Visible Exits?
Top

Posted by Fiendish   USA  (2,533 posts)  Bio   Global Moderator
Date Reply #1 on Fri 12 May 2023 11:53 PM (UTC)
Message
Hoooooo boy...uh...

I think that depends on whether it's possible for you to convert the exit trigger pattern into a multiline trigger (you'd also have to add the multiline flag to the created trigger in the waitforregexp function.)

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

Posted by Nick Gammon   Australia  (23,120 posts)  Bio   Forum Administrator
Date Reply #2 on Sat 13 May 2023 04:16 AM (UTC)
Message
Can't you just change the exit trigger to "Visible Exits:"? You may not parse the exit names, but I don't think you need to.

So, in the plugin change the exits_trigger line(s) near the start to be:



 <!ENTITY exits_trigger 
      "^Visible Exits:$" >

- Nick Gammon

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

Posted by Xandler   (52 posts)  Bio
Date Reply #3 on Sat 13 May 2023 03:22 PM (UTC)
Message
Much appreciated, that fix seemed to have done the trick.
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.


5,191 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.