reach=3
maxreach=30
# === for close combat, t is needed. slot:key means press a single key.
defact= act:shoot slot:1 key:4 cooldown:1.0
defact= act:fight slot:1 key:6 cooldown:1.0
defact= act:strike slot:1 key:2 cooldown:1.0
defact= act:execute slot:1 key:3 cooldown:1.0
defact= act:approach predefined:approach distge:5 dist:4
defact= act:hide slot:1 key:5
#for warrior, pull with gun or bow etc.
#defact= act

ull slot:1 key:5 cooldown:1.0
#precombat= act

ull
# wait, used for loot
defact= act:wait1s cooldown:1 distle:5
# used to approach corpse. the max distance is 20. Set to smaller values will be safer. It will go till dist between
# your toon and enemy is 3
defact= act:lootapproach predefined:lootapproach distle:25 distge:5 dist:5 js:canLoot()
defact= act:loot predefined:loot distle:5 js:canLoot()
defact= act:food slot:1 key:1 cooldown:1.0
defact= act:mount slot:2 key:1
#key to sale to npc, set to same as mount to disable it.
defact= act:saleToNpc slot:5 key:=
#uses ReachCombatDistance() in script.js to close to spell or combat distance if mob moves far.
defact= act:reachCombat js:ReachCombatDistance()
#approach is predefined action, it will approach the enemy till in range (till distance=reach)
precombat= act:approach
precombat= act:fight
combatseq= act:strike
combatseq= act:strike
combatseq= act:strike
combatseq= act:reachCombat
combatseq= act:strike
combatseq= act:strike
combatseq= act:execute
combatseq= act:reachCombat
lootseq= act:lootapproach
lootseq= act:wait1s
lootseq= act:loot
<script>
function canLoot() {
return getInventoryFreeSpace() > 0;
}
</script>
FOODPERCENT=0.50
HEALTHRESTPERCENT=0.80
HEALTHRESTTOPERCENT=0.20