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 ➜ Using slow_speedwalk plugin with speedwalk_fixer plugin

Using slow_speedwalk plugin with speedwalk_fixer plugin

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


Posted by Ganada   (8 posts)  Bio
Date Mon 13 Jan 2020 05:36 AM (UTC)

Amended on Mon 13 Jan 2020 05:40 AM (UTC) by Ganada

Message
Hi, is it possible to use the speedwalk_fixer with the slow_speedwalk plugin?

I tried to get the script from speedwalk_fixer and tried to use it in slow_speedwalk, but it doesn't seem to work.

If there is a way to use both at the same time so that !* command of the slow_speedwalk plugin would change the direction commands of "north|south|..." to "n|s|.... it would be much appreciated!

BTW, how do I change the title of a posting?

I accidently pressed tab x3 and enter, which just saved it immediately, and I can't change the title or delete it :)

Thank you so much!
Top

Posted by Fiendish   USA  (2,558 posts)  Bio   Global Moderator
Date Reply #1 on Mon 13 Jan 2020 05:56 AM (UTC)
Message
Quote:
BTW, how do I change the title of a posting?

Do you see a link anywhere that says "Amend subject description"?

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

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #2 on Mon 13 Jan 2020 10:04 AM (UTC)
Message
To help understand exactly what you are asking, can you please post a link to the threads describing both plugins?

- Nick Gammon

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

Posted by Ganada   (8 posts)  Bio
Date Reply #3 on Mon 13 Jan 2020 10:52 AM (UTC)
Message
Hi, I'm referring to these 2 plugins.


speedwalk_fixer

http://gammon.com.au/forum/?id=9011


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

Thank you!!
Top

Posted by Ganada   (8 posts)  Bio
Date Reply #4 on Mon 13 Jan 2020 10:56 AM (UTC)
Message
Fiendish said:

Do you see a link anywhere that says "Amend subject description"?


Thanks!!! I didn't see it before XD


Nick Gammon said:

To help understand exactly what you are asking, can you please post a link to the threads describing both plugins?


Yes, I'm referring to these 2 plugins.

1. speedwalk_fixer

http://gammon.com.au/forum/?id=9011


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

Thank you!!
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #5 on Wed 15 Jan 2020 03:09 AM (UTC)
Message
In the slow_speedwalk plugin, after these lines:



-- main function called when you type a speedwalk

function func_handle_speedwalk (name, line, wildcards)
    
  wait.make (function ()  --- coroutine below here
  
  sw = EvaluateSpeedwalk (wildcards [1])
  
  if string.sub (sw, 1, 1) == "*" then
    ColourNote ("white", "red", string.sub (sw, 2))
    return
  end -- if



Insert these new lines:


local conversions = {
  north = "n",
  south = "s",
  east  = "e",
  west  = "w",
  up    = "u",
  down  = "d",
  }

sw =  string.gsub (sw, "%f[%a]%a+%f[%A]", conversions)



That will use string.gsub to replace whole words in the table above, with the replacement letter. The %f stuff is a "frontier" pattern used to make sure we are matching on a whole word.

- Nick Gammon

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

Posted by Ganada   (8 posts)  Bio
Date Reply #6 on Wed 15 Jan 2020 11:48 PM (UTC)

Amended on Thu 16 Jan 2020 04:59 AM (UTC) by Nick Gammon

Message
Thanks Nick! This works like a charm.

I'll surely explore and have fun with this!!!

Have a wonderful day!
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.


24,845 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.