wondering how to...

Help section from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

gerth
orc pawn
orc pawn
Posts: 11
Joined: Wed Aug 14, 2002 4:21 pm

wondering how to...

Post by gerth » Thu Aug 22, 2002 9:16 pm

i want to use this macro(below) but i want to have it taunt/kick/disarm how would i do that?

[[ L124RD loves code brackets, but not enough to marry them]]

Code: Select all

Sub main 
/echo Fighting $target(name). It is level $target(level). 
/varset v0 $target(name) 
/varset v1 $target(id) 
/face 
/sendkey down up 
/attack on 
:CloserAF 
  /if "$target(id)"!="$v1" /goto :EndAF 
  /if n $target(distance)>20 /sendkey down up 
  /if n $target(distance)<11 /sendkey down down 
  /if n $target(distance)<21 /sendkey up up 
  /if n $target(distance)>10 /sendkey up down 
  /face 
  /goto :CloserAF 

:EndAF 
  /echo $v0 is dead 
  /sendkey up up 
  /sendkey up down 
  /attack off 
  /varset v0 0 

/return

powerspike
a ghoul
a ghoul
Posts: 80
Joined: Sun Aug 11, 2002 11:40 pm
Location: Australia
Contact:

Post by powerspike » Thu Aug 22, 2002 11:27 pm

ummm if you had kick setup as hotkey 1, you'd use /doability 1

likewise if it was in hotkey 10 your'd do /doability 10

etc etc

User avatar
RPZip
a lesser mummy
a lesser mummy
Posts: 63
Joined: Sun Aug 11, 2002 11:31 pm

Post by RPZip » Fri Aug 23, 2002 12:55 am

Erm... no, powerspike. =/

Combat hotkeys start at 7, so the 1st combat hotkey is /doability 7. So if you have kick/taunt/disarm in slots combat slots 1/2/3, then you would add;

Code: Select all

/doability 7
/doability 8
/doability 9
into your script, somewhere in your CloserAF loop.

powerspike
a ghoul
a ghoul
Posts: 80
Joined: Sun Aug 11, 2002 11:40 pm
Location: Australia
Contact:

Post by powerspike » Fri Aug 23, 2002 8:13 am

i stand corrected
/target RPZip
/bow

gerth
orc pawn
orc pawn
Posts: 11
Joined: Wed Aug 14, 2002 4:21 pm

Post by gerth » Fri Aug 23, 2002 4:23 pm

thanks :D

now.... whare do i add them in the macro? any place or at a special spot?
also how do i get them on a loop and have the loop end when target dies?

User avatar
RPZip
a lesser mummy
a lesser mummy
Posts: 63
Joined: Sun Aug 11, 2002 11:31 pm

Post by RPZip » Sat Aug 24, 2002 12:05 am

Put them in your loop. I'd say put it...

Code: Select all

Sub main 
/echo Fighting $target(name). It is level $target(level). 
/varset v0 $target(name) 
/varset v1 $target(id) 
/face 
/sendkey down up 
/attack on 
:CloserAF 
/if "$target(id)"!="$v1" /goto :EndAF 
/if n $target(distance)>20 /sendkey down up 
/if n $target(distance)<11 /sendkey down down 
/if n $target(distance)<21 /sendkey up up 
/if n $target(distance)>10 /sendkey up down 
/face 
/doability 7 
/doability 8 
/doability 9
/goto :CloserAF 

:EndAF 
/echo $v0 is dead 
/sendkey up up 
/sendkey up down 
/attack off 
/varset v0 0 

/return
there. =P You want it to keep hitting it. And in the futue, code tags around your text are helpful, makes reading it easier.