OK after the success of the Sense head request i will try again )
I am looking for a nacro that will respond to being hit and attack back then sit again.
attack using Melee and Monk special Flying Kick
NAy work would be good )
Moderator: MacroQuest Developers
Code: Select all
#event attackingme "YOU for "
#event attackingme "YOU but "
sub main
/varset v4 $char(y),$char(x)
/varset v5 $char(heading)
:loop
/doevents
/goto :loop
/return
sub event_attackingme
/stand
/stand
/varset a(8,0) "$target(name,clean)"
/varset a(8,1) $target(level)
/varset a(8,2) $target(name)
/varset a(8,3) $target(id)
/echo Fighting a level $a(8,1) $a(8,0)
/face
/sendkey down up
:CloserAF
/if "$target(id)"!="$a(8,3)" /goto :EndAF
/if n $target(distance)>15 /sendkey down up
/if n $target(distance)<6 /sendkey down down
/if n $target(distance)<16 /sendkey up up
/if n $target(distance)>5 /sendkey up down
/if n $target(distance)<15 /attack on
/if n $target(distance)>19 /attack off
/face fast nopredict
/if "$char(class)"=="Warrior" {
/if n $char(ability,"Disarm")>0 /doability "Disarm"
/if n $char(ability,"Bash")>0 /doability "Bash"
/if n $char(ability,"Slam")>0 /doability "Slam"
/if n $char(ability,"Kick")>0 /doability "Kick"
} else /if "$char(class)"=="Monk" {
/if n $char(ability,"Flying Kick")>0 /doability "Flying Kick"
/if n $char(ability,"Dragon Punch")>0 /doability "Dragon Punch"
/if n $char(ability,"Eagle Strike")>0 /doability "Eagle Strike"
/if n $char(ability,"Instill Doubt")>0 /doability "Instill Doubt"
/if n $char(ability,"Tiger Claw")>0 /doability "Tiger Claw"
/if n $char(ability,"Round Kick")>0 /doability "Round Kick"
/if n $char(ability,"Kick")>0 /doability "Kick"
/if n $char(ability,"Mend")>0 /doability "Mend"
} else /if "$char(class)"=="Shadow Knight" {
/if n $char(ability,"Bash")>0 /doability "Bash"
/if n $char(ability,"Harm Touch")>0 /doability "Harm Touch"
} else /if "$char(class)"=="Ranger" {
/if n $char(ability,"Kick")>0 /doability "Kick"
} else /if "$char(class)"=="Beast Lord" {
/if n $char(ability,"Bash")>0 /doability "Bash"
}
/goto :CloserAF
:EndAF
/echo The level $a(8,1) $a(8,0) is dead...
/sendkey up up
/sendkey up down
/attack off
/sendkey down up
:returnloop
/face loc $v4
/delay 0
/goto :returnloop
/sendkey up up
/face heading $v5
/sit
/doevents flush
/return
Code: Select all
/varset a(8,3) 0
it ended up working now im making it go back to a certan loc then its gonna sit back down
-update turns out it still starts going insne not crashing at atll but it starts moving backwards and forwards trying to attack a level 0 mull monster
- any ideas???