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
➜ alias problem
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Epic
(1 post) Bio
|
| Date
| Thu 22 Apr 2004 06:19 AM (UTC) |
| Message
| Hi...
What I'm trying to do, is have an alias that will target
whatever mob I'm currently fighting. Such as, I could
type 'kill' and it will automatically send an attack
towards the mob, rather than having to manually target it.
Is this possible? If so, would like to be pushed in the
right direction...
Thanks,
Epic | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Thu 22 Apr 2004 07:20 AM (UTC) |
| Message
| Do you mean it is to automatically work out which mob, or have things sent in its direction once you decide?
One possibility is to have a trigger like:
* attacks you
The "*" is a wildcard matching the mob name (you need to change the trigger a bit to match exactly what you get) and the trigger could send %1 (the first wildcard) to a variable "target".
Then in other aliases you do things like:
kick @target
with "expand variables" set.
If you want to manually decide the target, an alias like this will do it:
<aliases>
<alias
match="target *"
enabled="y"
variable="target"
send_to="9"
sequence="100"
>
<send>%1</send>
</alias>
</aliases>
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | 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.
10,268 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top