Moderator: MacroQuest Developers


Code: Select all
|
| corpseget.mac
| by theafkxper
|
| Usage: /macro corpseget <name of corpse> <who to bring it to>
|
Sub Main
/call gotoit $p0
/delay 0
/face
/delay 0
/call bringitback $p0 $p1
/return
Sub gotoit
/target corpse $p0
:Loop
/if n $target(distance)>30 /sendkey down up
/if n $target(distance)<=30 {
/sendkey up up
/return
}
/face nopredict
/delay 0
/if "$target()"=="TRUE" /goto :Loop
Sub bringitback
:Loop
/target $p1
/corpse $p0
/if n $target(distance)>30 /sendkey down up
/if n $target(distance)<=30 {
/sendkey up up
/return
}
/face nopredict
/delay 0
/if "$target()"=="TRUE" /goto :Loop
/return