Code: Select all
| Lazy Pally by Nazgul
| 1.0
| Usage, /macro LazyPally [1/0]
| 1 = use autotaunt
| 0 = do not use autotaunt
Sub Main
/echo Lazy Pally Started...
/declare Taunt Global
/declare Bash Global
/declare Fastrange Global
/declare Combatrangefar Global
/declare Combatrangeclose Global
/declare Outofrange Global
/declare Targettemp Global
/varset Taunt @Param0
/varset Bash 1
/varset Fastrange 15
/varset Combatrangefar 12
/varset Combatrangeclose 10
/varset Outofrange 150
/varset Targettemp 0
/if @Taunt==1 {
/echo Autotaunt enabled
/goto :Macrostart
}
/if @Taunt==0 {
/echo Autotaunt disabled
/goto :Macrostart
}
/echo Illegal argument. Autotaunt disabled
/varset Taunt 0
:Macrostart
/if $target()=="TRUE" {
/if $combat=="TRUE" {
/if n $target(distance)>@Outofrange {
/Goto :Endif1
}
/if n $target(distance)>@Fastrange {
/Call MoveToTarget
/Goto :Endif1
}
/Call CombatLoop
:Endif1
}
}
/Goto :Macrostart
/return
Sub MoveToTarget
:Startmovetoloop
/sendkey down up
/face fast
/if $target()=="FALSE" {
/sendkey up up
/return
}
/if $combat=="FALSE" {
/sendkey up up
/return
}
/if n $target(distance)<@Fastrange-5 {
/sendkey up up
/return
}
/call Everycycle
/Goto :Startmovetoloop
/return
Sub Combatloop
:Startcombatloop
/call Everycycle
/if $target()=="TRUE" {
/if $combat=="TRUE" {
/face fast
/if n $target(distance)>@Combatrangefar /press up
/if n $target(distance)<@Combatrangeclose /press down
/if n $target(distance)>@Fastrange /return
/if n @Bash==1 /if n $char(ability,bash)>0 /doability bash
/if n @Taunt==1 /if n$char(ability,taunt)>0 /doability taunt
/if n @Taunt==1 /if n$char(ability,disarm)>0 /doability disarm
}
}
/call Everycycle
/goto :Startcombatloop
/return
Sub Everycycle
/if n $char(hp,pct)<50 {
/if n $char(gem,"Light of Nife")>0 {
/if n $char(mana,pct)>=50 {
/varset Targettemp $target(id)
/sendkey up up
/press f1
/cast "Light of Nife"
/target id @Targettemp
/delay 1.5s
}
}
}
/if n @Taunt==1 {
/if $target()=="TRUE" {
/if $combat=="TRUE" {
/if n $char(gem,"Cease")>0 {
/if n $char(mana,pct)>=30 {
/sendkey up up
/cast "Cease"
/delay 1.7s
}
}
}
}
}
/if n @Taunt==1 {
/if $target()=="TRUE" {
/if $combat=="TRUE" {
/if n $char(gem,"Desist")>0 {
/if n $char(mana,pct)>=30 {
/sendkey up up
/cast "Desist"
/delay 2.2s
}
}
}
}
}
/if n @Taunt==1 {
/if $target()=="TRUE" {
/if $combat=="TRUE" {
/if n $char(gem,"Force of Akera")>0 {
/if n $char(mana,pct)>=30 {
/sendkey up up
/cast "Force of Akera"
/delay 1.2s
}
}
}
}
}
/if n @Taunt==1 {
/if $target()=="TRUE" {
/if $combat=="TRUE" {
/if n $char(gem,"Force of Akilae")>0 {
/if n $char(mana,pct)>=30 {
/sendkey up up
/cast "Force of Akilae"
/delay 1.2s
}
}
}
}
}
/if $gm=="TRUE" {
/echo GM in zone, ending macro
/endmacro
}
/return

