A few questions (speed walk and multiple commands)

Post Reply
chewyfhtts
Posts: 1
Joined: Mon Oct 22, 2012 7:38 am

A few questions (speed walk and multiple commands)

Post by chewyfhtts »

Migrating from zmud / tintin++

How do I do:

#3 eat bread

and

With the build in speedwalk, how do I get rid of directions such as ne nw se sw?

My mud only has n e s w u d.

Any help would be much appreciated.

Thanks :)

Lezard
Posts: 36
Joined: Wed Aug 29, 2012 6:47 pm

Re: A few questions (speed walk and multiple commands)

Post by Lezard »

If I'm understanding your first question clearly, all you have to do to eat bread is type it in the command line...
As for getting rid of directions, I don't understand what you're asking. You can't get rid of directions, you can make a table to convert them though.

User avatar
kevutian
Posts: 217
Joined: Fri Aug 20, 2010 8:18 pm
Location: United Kingdom
Contact:

Re: A few questions (speed walk and multiple commands)

Post by kevutian »

Alias pattern match:

Code: Select all

^\#(\d+) (.+)$
Script:
Code: [show] | [select all] lua
local loop = 0
while loop < tonumber(matches[2]) do
  send(matches[3])
  loop = loop + 1
end

Lezard
Posts: 36
Joined: Wed Aug 29, 2012 6:47 pm

Re: A few questions (speed walk and multiple commands)

Post by Lezard »

ahh I see... You could also make the script:
Code: [show] | [select all] lua
for i = 1, tonumber(matches[2]) do
  send(matches[3]
end
Not sure which is faster, but this way seems easier.

Post Reply