Anyway, this is my first macro from scratch. Figured someone else might want something like this.
Code: Select all
| Basic fighting macro by ddh
| Syntax: /macro basicfighting.mac <1/0>
| The parameter determines if you give an inc message when you first attack the mob.
| 1 = Give a message
| 0 = No message
| ---------------------
| Designed with a monk, change what you need.
| mend, feigndeath, etc contain the numbers required for /doability
| Skills is the timer for pressing the skill buttons.
#define mend 3
#define feigndeath 7
#define disarm 9
#define flyingkick 10
#define skills 6s
Sub Main
/varset t0 skills
/varset v0 0
/varset v1 $p0
/if $v1==1 {
/echo Starting basicfighting as a puller.
} else /if $v1==0 {
/echo Starting basicfighting as a group mate.
} else {
/goto :param
}
/goto :loop
:param
/echo Invalid parameter. Use 1 for inc messages, 0 for group mate.
/echo Assuming you are a group mate.
/varset v1 0
/goto :loop
:loop
/doevents
/if n $v1==1 /if $target()==false /varset v0 0
/if "$target(type)"!="NPC" /goto :loop
/if $combat==false /goto :loop
/if n $char(hp,pct)<=20 /doability mend
/if n $char(hp,pct)<=10 /goto :feignit
/if n $v1==0 /goto :loop
/if n $v0==1 /goto :loop
/g Incoming %t
/varset v0 1
/goto :loop
:feignit
/attack off
/doability feigndeath
/goto :loop
Sub Event_Timer
/varset t0 skills
/if $combat==false /goto :loop
/doability disarm
/doability flyingkick
/goto :loop

