Code: Select all
#turbo 50
#define ENEMY "#######"
#define PullX "###.##"
#define PullY "###.##"
#define AnchorX "###.##"
#define AnchorY "###.##"
#define SearchSphere "Radius ### ZRadius ###"
Sub Main
/declare PullX Global
/declare PullY Global
/declare AnchorX Global
/declare AnchorY Global
/declare LootSlot Global
:MainLoop
/call GMCheck
/call BuffCheck
/call CheckHP
/call MoveToPull
/call GetTarget
/call TagMob
/call MoveToAnchor
/call Wait
/call LootMob
/goto :MainLoop
Sub GMCheck
:GMChecker
/if $GM=="TRUE" {
/if n $char(ability,"Feign Death")>0 /doability "Feign Death"
/quit
}
/return
Sub BuffCheck
/if n $char(buff,"Shield of the Arcane")==0 {
/cast item "Chestwraps of Enlightenment" }
/delay 12s
/return
Sub CheckHP
/if n $char(hp,pct)<75
/call Mend
/return
Sub MoveToPull
:PullMoveLoop
/if "$char(state)"=="SIT" /stand
/face nolook loc PullY,PullX
/if n $distance(PullY,PullX)>2 /sendkey down up
/if n $distance(PullY,PullX)<=2 {
/sendkey up up
/return }
/goto :PullMoveLoop
/return
Sub GetTarget
:TargetLoop
/cleanup
/echo Searching for a ENEMY
/target npc ENEMY SearchSphere
/delay 2s
/if ("$target()"=="FALSE" || n $target(hp,pct)<=95) {
/echo Unable to locate any targets nearby... Will try again in 10 seconds.
/delay 10s
/goto :TargetLoop
}
/return
Sub TagMob
/face
/delay 1s
/press 8
/delay 1s
/return
Sub MoveToAnchor
:AnchorMoveLoop
/if "$char(state)"=="SIT" /stand
/face nolook loc AnchorY,AnchorX
/if n $distance(AnchorY,AnchorX)>1 /sendkey down up
/if n $distance(AnchorY,AnchorX)<=1 {
/sendkey up up
/return }
/goto :AnchorMoveLoop
/return
Sub Mend
/if n $char(ability,"Mend")>=0 {
/if n $char(hp,pct)<75 /doability "Mend" }
/delay 1s
/call HealDisc
/return
Sub HealDisc
/if n $char(hp,pct)<80 {
/disc heal
}
/call Robe
/return
Sub Robe
/if n $char(hp,pct)==100 /return
/if "$invpanel"!="true" /press i
/finditem "Silver Moon Chest Wraps"
/delay 1
/finditem "Silver Moon Chest Wraps"
/delay 1
/click left chest
:HPCheck
/cast item "Silver Moon Chest Wraps"
/delay 60
/if n $char(hp,pct)==100 /goto :bp
/goto :HPCheck
:bp
/click left chest
/delay 1s
/if "$cursor(name)"!="Silver Moon Chest Wraps" /goto :Bp
/click left auto
/cleanup
/call MoveToPull
/return
Sub Wait
/if n $target(distance)>20 /delay 1s {
/if n $target(distance)<20 /call KillMob }
/return
Sub KillMob
:EpicCheck
/cast item "Celestial Fists" {
/delay 15
/goto :EpicCheck }
:KillStart
/if @atk==1 {
/face fast
/attack $target(name,clean)
:kickinass
/if "$combat"=="TRUE" {
/if n $target(distance)>=15 /sendkey down up
/face fast
/if n $target(distance)>=13 /sendkey down up
/face fast
/if n $target(distance)<=10 /sendkey up up
/face fast
/if n $target(distance)<=8 /sendkey up up
/face fast
/if $char(ability,"Flying Kick")>0 /doability "Flying Kick"
/if $char(ability,"Disarm")>0 /doability "Disarm" }
/if n $char(ability,"Mend")>=0 {
/if n $char(hp,pct)<75 /doability "Mend"
}
/if n $char(hp,pct)<=20 {
/attack off
/echo << $char(hp,pct)% LOW HP - SS >>
/call MoveToAnchor
/goto :EpicCheck
}
}
/doevents
/if "$target()"=="TRUE" /goto :kickinass
/if $target(id)==0 {
/target npc ENEMY radius 50
/if $target()==FALSE /return
/delay 1s
/goto :KillStart
}
/return
Sub LootMob
:LootMob
/target npc corpse
/loot
/delay 1s
:LootLoop
/if n LootSlot>=10 /goto :DoneLooting {
/click left corpse @LootSlot 0
/autoinventory
/click left corpse @LootSlot 1
/autoinventory
/click left corpse @LootSlot 3
/autoinventory
/click left corpse @LootSlot 4
/autoinventory
/goto :LootLoop
}
/return
Sub DoneLooting
:DoneLooting
/cleanup
/goto :MainLoop
/return
[/code]


