alias problem

Posted by Epic on Thu 22 Apr 2004 06:19 AM — 2 posts, 10,764 views.

#0
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
Australia Forum Administrator #1
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>