- Joined
- May 14, 2007
- Messages
- 1,886
- Reaction score
- 2
- Points
- 38
I am working on learning macro's and thought I would post this one. I wrote it because i need a better follow.mac. If it helps anyone then its not a wasted post =p
This one is a bit different than others. I would recommend only using it in instances. Basically it would only ever be warping short distances so it should be safe to use elsewhere, if you are more daring.
Basically it uses /stick as the basic follow(better if your boxing on 1 PC).
However, if the distance gets too far. It will warp to the person you are following. Which should resolve issues with things like getting stuck on walls. It will also end the macro if you zone out of the zone you started in for any reason.
Usage is:
/mac macroname followeename
This one is a bit different than others. I would recommend only using it in instances. Basically it would only ever be warping short distances so it should be safe to use elsewhere, if you are more daring.
Basically it uses /stick as the basic follow(better if your boxing on 1 PC).
However, if the distance gets too far. It will warp to the person you are following. Which should resolve issues with things like getting stuck on walls. It will also end the macro if you zone out of the zone you started in for any reason.
Usage is:
/mac macroname followeename
Code:
#turbo 40
Sub Main
/declare Followee string outer ${Param0}
/declare sZone int outer ${Zone.ID}
/call start
Sub Start
/call checks
/if (!${Target.ID}) {
/target ${Followee}
/stick 10
}
:follow
/call checks
/if (${Target.Distance} > 30 && ${Target.ID}) /call warp
/if (${Target.Distance} < 31 && ${Target.ID}) /goto :follow
/return
Sub Checks
/if (${Zone.ID}!=${sZone}) /call Rez
/if (${Target.ID}) /call Start
/return
Sub Rez
/delay 1s
/end
/return
Sub Warp
/if (!${Target.ID}) {
/target ${Followee}
/warp t
}
/if (${Target.ID}) {
/warp t
}
/return
Last edited: