This script will:
auto-heal/cure with bandages
play an organizer if you reach your weight limit (Player must set which organizer they want to use)
Cast Divine Fury if stamina drops below player configured limit
Get enemies within 10 tiles
Attack closest
Cast Consecrate Weapon every 10 seconds
Use primary/secondary ability if mana is over 34
Claim any corpse on the ground
Play an Organizer after claim to move to Bag of Holding (Player must specify the organizer to use)
Be sure to set your weight limit, stamina limit and organizers.
Happy Hunting.
Code: Select all
//Heals self with bandages
//-----------------------------------------------
if hits < maxhits or poisoned
msg '[bandself'
endif
if weight > 380
@organizer 'Organizer-1'
endif
//Casts Divine Fury if stam drops under 125
//-----------------------------------------------
if stam < 125
cast 'Divine Fury'
endif
//Finds and Attacks enemies
//-----------------------------------------------
clearjournal
@getenemy 'murderer' 'criminal' 'enemy' 'gray' 'closest'!
if @inrange 'enemy' 10
@attack 'enemy'
//Creates, sets timer for and casts Consecrate Weapon
//-----------------------------------------------
if not timerexists 'consecrateweapon'
settimer 'consecrateweapon' 0
endif
if timer 'consecrateweapon' >= 9000
cast "Consecrate Weapon"
settimer 'consecrateweapon' 0
endif
if mana > 34
setability 'primary' 'on'
endif
endif
pause 250
@cleartargetqueue
if @findtype 0x2006 'any' 'ground' 1 10
msg '[claim'
waitfortarget 1500
@target 'found'
pause 200
@canceltarget
pause 250
@organizer 'Organizer-1'
@cleartargetqueue
endif
replay