Monk Fighting

Macro requests from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

hardarac
a lesser mummy
a lesser mummy
Posts: 37
Joined: Sat Nov 30, 2002 2:25 pm

Monk Fighting

Post by hardarac » Sat Nov 30, 2002 6:01 pm

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 )

User avatar
L124RD
Site Admin
Site Admin
Posts: 1343
Joined: Fri Jun 14, 2002 12:15 am
Location: Cyberspace
Contact:

Post by L124RD » Sun Dec 01, 2002 4:42 am

Salutations,
It's... Darn it i dunno... i think its 1:30am... so this will (yeah right) not have any errors
this should be usable for any melee class instead of just monk as you requested...

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
edit: OMG L124rd forgot to close his code tag.. rizwank is ubar
edit: OMG rizwank forgot to say at the top like he's supposed to... l124rd is a much better editor :p
Last edited by L124RD on Sat Dec 14, 2002 9:18 pm, edited 3 times in total.

]\[E()
a lesser mummy
a lesser mummy
Posts: 48
Joined: Mon Sep 30, 2002 10:13 pm
Location: Flint Michigan
Contact:

Post by ]\[E() » Mon Dec 02, 2002 3:37 am

Ok it spazes out alot when teh mob is dead so i turned the corpse radius to 0 and deleted this line

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???
Last edited by ]\[E() on Tue Dec 03, 2002 12:24 pm, edited 1 time in total.

User avatar
L124RD
Site Admin
Site Admin
Posts: 1343
Joined: Fri Jun 14, 2002 12:15 am
Location: Cyberspace
Contact:

Post by L124RD » Wed Dec 11, 2002 11:44 pm

Salutations,
I tried to update it... think it works again now...

]\[E()
a lesser mummy
a lesser mummy
Posts: 48
Joined: Mon Sep 30, 2002 10:13 pm
Location: Flint Michigan
Contact:

New idea

Post by ]\[E() » Sat Dec 14, 2002 4:48 pm

think you can incorprate a goto loc functiona fter a mob is killed???
like you would do /mac sit then the loc you go back to
??


thanks for fixing it the first time



-Josh

User avatar
L124RD
Site Admin
Site Admin
Posts: 1343
Joined: Fri Jun 14, 2002 12:15 am
Location: Cyberspace
Contact:

Post by L124RD » Sat Dec 14, 2002 9:19 pm

Salutations,
now it goes back to where it started...