MUSHClient Alias: Command Stacker

These forums are for carrying on general discussion about Dead of Night.

Moderator: Public Moderators

Post Reply
fanrax
Moderator
Posts: 24
Joined: Sun Nov 06, 2016 9:56 pm
Location: Pennsylvania, USA
Contact:

MUSHClient Alias: Command Stacker

Post by fanrax » Mon Nov 14, 2016 4:33 pm

The below was written by request from a player. If you copy the entire contents of the code block, Goto the Mushclient Alias screen and hit the Paste button in the lower right, it will add it for you.

What this does, is that it makes it so you can type loot 5 corpse, and it will loot all 5 corpses. loot 5 dust, will loot 5 dusts. etc,etc,

Also, as an example of what else, it will also work as the stun command. stun 5 guard will stun 5 guards. etc.,etc. It is built to be customizable. So you take the MATCH line and change it to say:

Code: Select all

^(loot|stun|blast) (.*) (.*)
it will then add the functionality of blast 5 guard which will then blast all 5 guards.

This can be used w/ in game aliases. So if you alias fireball to cas 'fireball' then make the match line

Code: Select all

^(loot|stun|fireball) (.*) (.*)
It will then fireball the 5 guards if you type fireball 5 guards.

If you have any questions, or if an Immortal thinks this is to close to botting, just let me know and i will remove it.

Code: Select all

<aliases>
  <alias
   match="^(loot|stun) (.*) (.*)"
   enabled="y"
   regexp="y"
   send_to="12"
   sequence="100"
  >
  <send>if "%1" == "loot" then
  for i = 1, tonumber(%2) do
    if i == 1 then
      Send("get all %3")
    else
      Send("get all " .. i .. ".%3")
    end
  end
else
  for i = 1, tonumber(%2) do
    if i == 1 then
      Send("%1 %3")
    else
      Send("%1 " .. i .. ".%3")
    end
  end
end</send>
  </alias>
</aliases>
Advisor Fanrax Marx
Vampiric Psionic BattleMage
Archon of Magi, Seeker Division
Follower of Strife
Biter of Tiny Borkn

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest