|killer.mac
| Made by Typenamehere
|insert the name of mobs you want killed in line 10-12, can add more/less mobs if needed
Sub Main
/declare LootTotal int outer
/declare LootSlot int outer
:main
/doevents
/if (${Spawn[gm].ID}) /q
/if (${Me.PctHPs}<=80) /goto :heal
/delay 1s
/if (!${Target.ID}) /keypress f8
/if (!${Target.ID}) /target crystalline sen
/if (!${Target.ID}) /target velium
/if (!${Target.ID}) /target icepaw
/if (${Target.Type.Equal[Corpse]}) {
/warp target
/goto :loot
}
/if (${Target.ID}) /goto :move
/goto :main
:move
/warp target
/keypress back hold
/delay .5s
/keypress up
/stick 7
/goto :kill
:kill
/delay 1s
/attack on
/stick 7
/goto :wait
:wait
/if (${Me.PctHPs}<12) {
/warp succor
/delay 1s
/warp succor
/fade
/delay 40s
/goto :heal
}
/doevents
/if (!${Target.ID}) /goto :main
/if (${Target.ID}) /goto :kill
:heal
/if (${Me.PctHPs}>80) /goto :main
/if (${Me.PctHPs}<=80) {
/delay 10s
/goto :heal
}
:loot
/target corpse
/if (${Target.ID}) {
/moveto ID
/delay 2s
/loot
/delay 1s
/goto :start
:start
/if (!${Corpse.Items}) {
/notify LootWnd DoneButton leftmouseup
/return
}
/varset LootTotal ${Corpse.Items}
/for LootSlot 1 to ${LootTotal}
/nomodkey /shiftkey /itemnotify loot${LootSlot} leftmouseup
/delay 1s
/echo Destroying ${Cursor.Name}...
/destroy
/delay 1s
/next LootSlot
/notify LootWnd DoneButton leftmouseup
/delay 2
/goto :main