Moderator: MacroQuest Developers
Code: Select all
/target radius 300 <mob>Code: Select all
| WKskin.mac
| farm quality pelts and in NK
| for making into leather padding
#include routines.mac
sub Main
/lootn never
/alert clear 1
/alert add 1 npc lion
/press esc
:Start
/if n $char(ability,"Sense Heading")&0 /doability "Sense Heading"
/call findTarget
/varset v11 $target(id)
/delay 10
/call killTarget
/if n $target(id)==$char(id) /goto :Stop
/target corpse
/if n $target(id)==$v11 /call lootTarget
/call gohome
/goto :Start
:Stop
/attack off
/call autorun 0
/lootn always
/return
Sub findTarget
/target alert 1 nopcnear 60
/delay 2
/return
Sub killTarget
/varset v60 $target(id)
/if $v60==0 /return
/varset t0 2m
/varset v12 1
/varset v80 0
/face nopredict
:Follow
/if n $target(id)==$char(id) /return
/if "$target(id)"!="$v60" /goto :KillDone
/if "$target(name)"~~"corpse" /goto :KillDone
/face nopredict
/if n $target(distance)&=12 /call autorun 1
/if n $target(distance)&13 {
/call autorun 0
/if $v12==1 {
/if n $target(id)==$char(id) /return
/call findTarget |anti-ks code
/if "$target(id)"!="$v60" /goto :KillDone
/attack on
/varset v12 0
}
}
/if n $t0==0 /press esc
/varset v51 $char(x)
/varset v52 $char(y)
|/delay 1
/if n $v51==$char(x) /if $v52==$char(y) /call tree $v12
/goto :Follow
:KillDone
/sendkey up up
/attack off
/delay 3
/return
Sub Tree
/delay 3
/if $p0==0 /return
/sendkey up up
/sendkey down down
/delay 2
/sendkey up down
/sendkey down ctrl
/if n $rand(99)&50 {
/sendkey down right
} else {
/sendkey down left
}
/delay 3
/sendkey up right
/sendkey up left
/sendkey up ctrl
/varset v80 0
/return
Sub lootTarget
/delay 2
:gotocorpse
/if n $target(distance)&10 {
/face
/sendkey down up
/goto :gotocorpse
}
/sendkey up up
/face
/loot
/delay 10
/varset v10 0
:LootLoop
/click left corpse $v10
/delay 5
/if "$cursor(name)"=="NULL" /goto :LootDone
/if "$cursor(name)"~~"quality" {
/click left auto
} else {
/click left destroy
/delay 1
| /click left 458 420
| /delay 1
}
/varadd v10 1
/goto :LootLoop
:LootDone
/delay 3
/press esc
/delay 2
/return
sub gohome
/sendkey down up
:gohomeloop
/face loc -2816,-2233
/if n $distance(-2816,-2233)&12 /goto :gohomeloop
/sendkey up up
/return Code: Select all
sub Main
/lootn never
/alert clear 1
/alert add 1 npc lion
/press esc
:Start Code: Select all
sub Main
/lootn never
/alert clear 1
/alert add 1 npc radius 200 lion
/press esc
:Start Code: Select all
Sub findTarget
/target alert 1 nopcnear 60
/delay 2
/return Code: Select all
Sub findTarget
:findtargetloop
/target alert 1 nopcnear 60
/delay 0
/if $target()!=TRUE /goto :findtargetloop
/delay 2
/return Code: Select all
Sub findTarget
:findtargetloop
/target alert 1 nopcnear 60
/delay 0
/if $target()!=TRUE /call wait
/delay 2
/returnCode: Select all
sub wait
/delay 10s
/call findTarget
/returnCode: Select all
Sub killTarget
/varset v60 $target(id)
/if $v60==0 /return
/varset t0 1m
/varset v12 1
/varset v80 0
/face nopredict
:Follow
/if n $target(id)==$char(id) /return
/if "$target(id)"!="$v60" /goto :KillDone
/if "$target(name)"~~"corpse" /goto :KillDone
/face fast nopredict
/delay 4
/if n $target(distance)>=12.00 /call autorun 1
/if n $target(distance)<12.01 {
/call autorun 0
/if $v12==1 {
/if n $target(id)==$char(id) /return
/call findTarget |anti-ks code
/if "$target(id)"!="$v60" /goto :KillDone
/attack on
[color=red][b]/if n $char(ability,"kick")>0 /doability kick [/b][/color]
/varset v12 0
}
}
/if n $t0==0 /press esc
/varset v51 $char(x)
/varset v52 $char(y)
|/delay 1
/if n $v51==$char(x) /if $v52==$char(y) /call tree $v12
/goto :Follow
:KillDone
/sendkey up up
/attack off
/delay 3
/return