This is basically my own private collection of Macros wich I mostly created or modified. Some of them will only work in this shard.
This macros are for UOSteam only. This Library is divided in 4 parts because is huge.
The library contains:
1) Oint Mixers and Oint appliers (To mix oints and apply oints to pets)
2) Runebook Miners (The only one for UOSteam, i have two versions one wich works with a mule, chest and forge and other that works with a mobile forge and metal workers keys wich is way better since you dont have to go back to unload)
3) Runebook Cloner (This one copies runebooks even from libraries and cast protection on yourself so you dont get caught in dangerous locations)
4) Pet Healer (Automatically heal all the pets added to the list by its serial number, use object inspector on pet, it will select the most damaged one and circle to the others it will also call them if they are far to come close so they can be bandaged)
5) Auto Attacker and Auto Battle with all (There is a variety here)
6) Buff self and buff pets
7) Autohealer

9) Citadel Keys gathering
10) Lumberjacking (Its not automatic you have to clikc on the tree because UOSteam has limitations on targeting trees)
11) etc
Make sure in all cases to adjust pause timers between spells according to your Fast Casting and Cast Recovery stats, 1500ms intervals will work most of the cases but you maxxed everything 200 ms should world for touch of life for instance.
So here they are:
Animal Lore trainer
Code: Select all
//Animal Lore trainer by Radament
//v1.0
if not findalias 'animal'
msg 'Choose animal to begin trainning'
promptalias 'animal'
endif
useskill 'Animal Lore'
waitfortarget 15000
target! 'animal'
Code: Select all
//Oint Applier by Radament
// 1.0 v
@unsetalias 'ointpet'
@unsetalias 'baseoint'
if not @findalias 'ointpet'
headmsg 'Choose pet to oint'
promptalias 'ointpet'
endif
if not @findalias 'baseoint'
headmsg 'Select Ointment'
promptalias 'baseoint'
endif
while not dead
@useobject 'baseoint'
waitfortarget 15000
@target 'ointpet'
pause 1000
endwhile
Code: Select all
//Armor Rating Oint Mixer by Radament
// 1.0 v
@unsetalias 'greenthorns'
@unsetalias 'baseoint'
if not @findalias 'greenthorns'
headmsg 'Select Green Thorns'
promptalias 'greenthorns'
endif
if not @findalias 'baseoint'
headmsg 'Select Base Ointment'
promptalias 'baseoint'
endif
while not dead
@useobject 'baseoint'
waitfortarget 15000
@target 'greenthorns'
pause 1000
endwhile
Code: Select all
if not listexists 'petlist'
createlist 'petlist'
//Add an entry for each pet you hunt with:
@pushlist 'petlist' 0x3a4f4 // Angel
@pushlist 'petlist' 0x460f5 // Venus
@pushlist 'petlist' 0xa2d5b //Thunder
@pushlist 'petlist' 0xa2d62 // Arya
@pushlist 'petlist' 0xa2d4f //Moon
@pushlist 'petlist' 0x3c708 //Twilight
@pushlist 'petlist' 0x3c733 //Darkness
@pushlist 'petlist' 0x139c05 //Shadow
@pushlist 'petlist' 0x3c717 //Moonlight
@pushlist 'petlist' 0x3c6f5 //Twister
@pushlist 'petlist' 0xd7f4e //Hades
@pushlist 'petlist' 0xd33f7 //Apollo
@pushlist 'petlist' 0x9b019 //Cerberus
@pushlist 'petlist' 0xd3875 //Zeus
endif
if not listexists 'instruments'
createlist 'instruments'
@pushlist 'instruments' 0xeb1
@pushlist 'instruments' 0xeb2
@pushlist 'instruments' 0xeb3
@pushlist 'instruments' 0xe9c
@pushlist 'instruments' 0xe9d
@pushlist 'instruments' 0xe9e
@pushlist 'instruments' 0x2805
endif
if not listexists 'bosses'
createlist 'bosses'
@pushlist 'bosses' 0x6c
@pushlist 'bosses' 0x190
endif
while not dead
// Sets weapon if you are carrying it
if @findlayer 'self' 1
@setalias 'rightitem' 'found'
endif
if @findlayer 'self' 2
@setalias 'leftitem' 'found'
endif
// Protection while buffs are applied
if followers > 0
if not mounted 'self' or followers > 1
if @findobject 'pet1'
while not @inrange 'pet1' 6
msg "all guard me"
pause 300
endwhile
elseif @findobject 'pet2'
while not @inrange 'pet2' 6
msg "all guard me"
pause 300
endwhile
elseif @findobject 'pet3'
while not @inrange 'pet3' 6
msg "all guard me"
pause 300
endwhile
elseif @findobject 'pet4'
while not @inrange 'pet4' 6
msg "all guard me"
pause 300
endwhile
endif
endif
endif
if followers > 0
if not mounted 'self' or followers > 1
if not timerexists 'guard'
createtimer 'guard'
settimer 'guard' 8000
endif
if timer 'guard' >= 8000
if @hits < 80
msg 'all guard me'
endif
endif
endif
endif
//Equip Weapons
if not @findlayer 'self' 1
@equipitem 'rightitem' 1
endif
if not @findlayer 'self' 2
@equipitem 'leftitem' 2
endif
//Special Moves before hiting
if not timerexists 'ability'
createtimer 'ability'
settimer 'ability' 3000
endif
if mana > 19
if not setability 'secondary' 'on' and
if mounted 'self'
if timer 'ability' >= 1500
setability 'secondary' 'on'
settimer 'ability' 0
endif
endif
endif
elseif skill 'bushido' > 95
if timer 'ability' >= 3000
cast 'honorable execution'
settimer 'ability' 0
endif
endif
//-------------------------- First Attack ---------------------------
warmode 'on'
if not timerexists 'kill'
createtimer 'kill'
settimer 'kill' 3000
endif
if timer 'kill' >= 3000
@getenemy 'gray''criminal''closest'
@setalias 'ene' 'enemy'
if @graphic 'enemy' != 0xc8
if @findobject 'enemy'
@autotargetobject! 'enemy'
if criminal 'enemy'
@attack! 'enemy'
@target! 'enemy'
@clearusequeue
@cancelautotarget
endif
if gray 'enemy'
@attack! 'enemy'
@target! 'enemy'
@clearusequeue
@cancelautotarget
endif
if followers > 0
if not mounted or followers > 1
if not timerexists 'petkill'
createtimer 'petkill'
settimer 'petkill' 5000
endif
if timer 'petkill' >= 5000 and followers > 0
msg 'all kill'
waitfortarget 5000
target! 'enemy'
settimer 'petkill' 0
endif
endif
endif
endif
endif
settimer 'kill' 0
endif
//Buffs while Attacking
if @findlayer 'self' 2
if skill 'chivalry' > 30 and mana > 10
if not timerexists 'consecrateweapon'
createtimer 'consecrateweapon'
settimer 'consecrateweapon' 11000
endif
if timer 'consecrateweapon' >= 11000
pause 500
cast 'consecrate weapon'
settimer 'consecrateweapon' 0
endif
endif
endif
if skill 'chivalry' > 25 and mana > 15
if not timerexists 'divine'
createtimer 'divine'
settimer 'divine' 20000
endif
if timer 'divine' >= 20000
pause 500
cast 'divine fury'
settimer 'divine' 0
endif
endif
if @findlayer 'self' 2
if skill 'necromancy' > 30 and mana > 7
if not timerexists 'curseweapon'
createtimer 'curseweapon'
settimer 'curseweapon' 38000
endif
if timer 'curseweapon' <= 38000
pause 2000
cast 'curse weapon'
settimer 'curseweapon' 0
endif
endif
endif
if @findlayer 'self' 1 or @findlayer 'self' 2
if skill 'bushido' > 50 and mana > 10
if not timerexists 'confidence'
createtimer 'confidence'
settimer 'confidence' 10000
endif
if timer 'confidence' >= 10000 and not buffexists 'confidence'
pause 1500
cast 'confidence'
settimer 'confidence' 0
endif
endif
endif
if @findlayer 'self' 1 or @findlayer 'self' 2
if skill 'bushido' > 80 and mana > 10
if not timerexists 'evasion'
createtimer 'evasion'
settimer 'evasion' 8000
endif
if timer 'evasion' >= 8000 and not buffexists 'evasion'
pause 1500
cast 'evasion'
settimer 'evasion' 0
endif
endif
endif
// -------------------Attack Boss ------------------
for 0 in 'bosses'
if @findobject 0x190 'any'
@getenemy 'found'
if timer 'kill' >= 3000
@attack 'enemy'
settimer 'kill' 0
endif
if followers > 0
if not mounted or followers > 1
if not timerexists 'petkill'
createtimer 'petkill'
settimer 'petkill' 5000
endif
if timer 'petkill' >= 5000 and followers > 0
msg 'all kill'
waitfortarget 5000
@target! 'enemy'
settimer 'petkill' 0
endif
endif
endif
if skill 'chivalry' > 35 and mana > 20
if not timerexists 'one'
createtimer 'one'
settimer 'one' 230000
endif
if timer 'one' >= 230000
pause 2000
cast 'enemy of one'
settimer 'one' 0
endif
endif
if skill 'chivalry' > 25 and mana > 15
if not timerexists 'fury'
createtimer 'fury'
settimer 'fury' 230000
endif
if timer 'fury' >= 230000
pause 2000
cast 'divine fury'
settimer 'fury' 0
endif
endif
if skill 'necromancy' > 20 and mana > 13
if not timerexists 'blood'
createtimer 'blood'
settimer 'blood' 9000
endif
if timer 'blood' >= 9000
pause 2000
cast 'blood oath'
waitfortarget 5000
target! 'enemy'
settimer 'blood' 0
endif
endif
if skill 'necromancy' > 20 and mana > 9
if not timerexists 'curse'
createtimer 'curse'
settimer 'curse' 125000
endif
if timer 'curse' >= 125000
pause 2000
cast "curse" // Agi, Str and Int Buff
waitfortarget 5000
@target! 'enemy'
settimer 'curse' 0
if not @findlayer 'self' 1
@equipitem 'rightitem' 1
endif
if not @findlayer 'self' 2
@equipitem 'leftitem' 2
endif
endif
endif
endif
endfor
// Uses Discordance if you have an instrument
if @findobject 'enemy' and skill 'discordance' > 20
@unsetalias 'instrument'
if not timerexists 'discordance'
createtimer 'discordance'
settimer 'discordance' 10500
endif
if timer 'discordance' >= 10500
for 0 to 'instruments'
if @findtype instruments[] 'any''backpack'
@setalias 'instrument' 'found'
useskill 'discordance'
waitfortarget 2000
settimer 'discordance' 0
if @injournal 'what instrument'
@target! 'instrument' 0x0 'backpack'
waitfortarget 2000
@target! 'enemy'
clearjournal
else
@target! 'enemy'
endif
endif
endfor
endif
endif
// Pets Guard you while healing
if followers > 0
if not mounted 'self' or followers > 1
if not timerexists 'guard'
createtimer 'guard'
settimer 'guard' 10000
endif
if timer 'guard' >= 10000 and @diffhits > 10
msg 'all guard me'
endif
endif
endif
//Auto heal self routines
while @hits < 99
if not timerexists 'bandie'
createtimer 'bandie'
settimer 'bandie' 3000
endif
if @injournal 'finish applying' 'system' or timer 'bandie' >= 3000
msg '[bandself'
settimer 'bandie' 0
@clearjournal
endif
if not timerexists 'boon'
createtimer 'boon'
settimer 'boon' 30000
endif
if timer 'boon' >= 30000
if mana > 20
pause 1500
msg '[cs sacredboon'
waitfortarget 15000
@target! 'self'
settimer 'boon' 0
endif
endif
if mana > 12
pause 500
msg '[cs touchoflife'
waitfortarget 15000
@target! 'self'
endif
if mana < 12
@usetype! 0x13a8 'any' 0x4095b7ed
waitfortarget 500
@target! 'self'
endif
endwhile
if poisoned 'self' and mana > 6
pause 1500
msg '[cs purge'
waitfortarget 5000
target! 'self'
endif
while @diffhits > 40
if skill 'chivalry' > 35
if @inrange 'enemy' 2 and mana > 10
pause 1500
cast 'Dispel Evil'
pause 500
endif
endif
if @injournal 'finish applying' 'system' or timer 'bandie' >= 3000
msg '[bandself'
settimer 'bandie' 0
@clearjournal
endif
if not timerexists 'boon'
createtimer 'boon'
settimer 'boon' 30000
endif
if timer 'boon' >= 30000
if mana > 20
pause 1500
msg '[cs sacredboon'
waitfortarget 15000
@target! 'self'
settimer 'boon' 0
endif
endif
if mana > 12
pause 500
msg '[cs touchoflife'
waitfortarget 15000
@target! 'self'
endif
if mana < 12
@usetype! 0x13a8 'any' 0x4095b7ed
waitfortarget 500
@target! 'self'
endif
endwhile
//Bring Pets Closer
if followers > 0
if not mounted 'self' or followers > 1
if @findobject 'pet1'
while not @inrange 'pet1' 6
msg "all guard me"
pause 300
endwhile
elseif @findobject 'pet2'
while not @inrange 'pet2' 6
msg "all guard me"
pause 300
endwhile
elseif @findobject 'pet3'
while not @inrange 'pet3' 6
msg "all guard me"
pause 300
endwhile
elseif @findobject 'pet4'
while not @inrange 'pet4' 6
msg "all guard me"
pause 300
endwhile
endif
endif
endif
@unsetalias 'found'
@unsetalias 'ene'
@unsetalias 'pet1'
@unsetalias 'pet2'
@unsetalias 'pet3'
@unsetalias 'pet4'
@unsetalias 'pet5'
//--------------------------AUTO PET HEALER--------------
if followers > 0
if not mounted 'self' or followers > 1
@unsetalias 'boundedtarget'
//Removes pets if mounted, stabled or you get too far away
if @findalias 'Pet1' and not @findobject 'Pet1'
@unsetalias 'Pet1'
endif
if @findalias 'Pet2' and not @findobject 'Pet2'
@unsetalias 'Pet2'
endif
if @findalias 'Pet3' and not @findobject 'Pet3'
@unsetalias 'Pet3'
endif
if @findalias 'Pet4' and not @findobject 'Pet4'
@unsetalias 'Pet4'
endif
if @findalias 'Pet5' and not @findobject 'Pet5'
@unsetalias 'Pet5'
endif
//makes sure the pets never equal each other
if @findalias 'Pet1' and @findalias 'Pet2'
if @serial 'Pet1' == @serial 'Pet2'
@unsetalias 'Pet2'
endif
endif
if @findalias 'Pet2' and @findalias 'Pet3'
if @serial 'Pet2' == @serial 'Pet3'
@unsetalias 'Pet3'
endif
endif
if @findalias 'Pet3' and @findalias 'Pet4'
if @serial 'Pet3' == @serial 'Pet4'
@unsetalias 'Pet4'
endif
endif
if @findalias 'Pet4' and @findalias 'Pet5'
if @serial 'Pet4' == @serial 'Pet5'
@unsetalias 'Pet5'
endif
endif
if @findalias 'Pet5' and @findalias 'Pet1'
if @serial 'Pet5' == @serial 'Pet1'
@unsetalias 'Pet1'
endif
endif
// Assign Aliases to active pets on list
if not @findobject 'Pet1' or not @findobject 'Pet2' or not @findobject 'Pet3' or not @findobject 'Pet4' or not @findobject 'Pet5'
for 0 to 'petlist'
if @findobject petlist[] 'any' 'ground' 0 30
if not @findobject 'Pet1'
@setalias 'Pet1' petlist[]
elseif not @findobject 'Pet2' and @serial 'Pet1' != 'petlist[]'
@setalias 'Pet2' petlist[]
elseif not @findobject 'Pet3' and @serial 'Pet2' != 'petlist[]'
@setalias 'Pet3' petlist[]
elseif not @findobject 'Pet4' and @serial 'Pet3' != 'petlist[]'
@setalias 'Pet4' petlist[]
elseif not @findobject 'Pet5' and @serial 'Pet4' != 'petlist[]'
@setalias 'Pet5' petlist[]
endif
endif
endfor
endif
//Selects target to heal
if @findobject 'pet1' and @hits 'pet1' < 25
@setalias 'boundedtarget' 'pet1'
elseif @findobject 'pet2' and @hits 'pet2' < 25
@setalias 'boundedtarget' 'pet2'
elseif @findobject 'pet3' and @hits 'pet3' < 25
@setalias 'boundedtarget' 'pet3'
elseif @findobject 'pet4' and @hits 'pet4' < 25
@setalias 'boundedtarget' 'pet4'
elseif @findobject 'pet5' and @hits 'pet5' < 25
@setalias 'boundedtarget' 'pet5'
endif
if not @findalias 'boundedtarget'
if @findobject 'pet1' and @hits 'pet1' < 50
@setalias 'boundedtarget' 'pet1'
elseif @findobject 'pet2' and @hits 'pet2' < 50
@setalias 'boundedtarget' 'pet2'
elseif @findobject 'pet3' and @hits 'pet3' < 50
@setalias 'boundedtarget' 'pet3'
elseif @findobject 'pet4' and @hits 'pet4' < 50
@setalias 'boundedtarget' 'pet4'
elseif @findobject 'pet5' and @hits 'pet5' < 50
@setalias 'boundedtarget' 'pet5'
endif
endif
if not @findalias 'boundedtarget'
if @findobject 'pet1' and @hits 'pet1' < 75
@setalias 'boundedtarget' 'pet1'
elseif @findobject 'pet2' and @hits 'pet2' < 75
@setalias 'boundedtarget' 'pet2'
elseif @findobject 'pet3' and @hits 'pet3' < 75
@setalias 'boundedtarget' 'pet3'
elseif @findobject 'pet4' and @hits 'pet4' < 75
@setalias 'boundedtarget' 'pet4'
elseif @findobject 'pet5' and @hits 'pet5' < 75
@setalias 'boundedtarget' 'pet5'
endif
endif
//Cure Bounded Target
@unsetalias 'found'
if @findalias 'boundedtarget'
while @hits 'boundedtarget' < 95
while not @inrange 'boundedtarget' 1
msg 'All follow me'
pause 300
endwhile
if not timerexists 'bandie'
createtimer 'bandie'
settimer 'bandie' 3000
endif
if @injournal 'finish applying' 'system' or timer 'bandie' >= 3000
msg '[band'
waitfortarget 15000
@target! 'boundedtarget'
settimer 'bandie' 0
@clearjournal
endif
if not timerexists 'divine'
createtimer 'divine'
settimer 'divine' 120000
endif
if mana > 70 and timer 'divine' >= 120000
pause 1000
msg '[cs divinefocus'
settimer 'divine'0
endif
if not timerexists 'boon'
createtimer 'boon'
settimer 'boon' 30000
endif
if timer 'boon' >= 30000
if mana > 20
pause 1500
msg '[cs sacredboon'
waitfortarget 15000
@target! 'boundedtarget'
settimer 'boon' 0
endif
endif
if mana > 12
pause 500
msg '[cs touchoflife'
waitfortarget 15000
@target! 'boundedtarget'
endif
if mana < 12
@usetype! 0x13a8 'any' 0x4095b7ed
waitfortarget 500
@target! 'self'
endif
endwhile
@usetype! 0x13a8 'any' 0x4095b7ed
waitfortarget 500
@target! 'self'
endif
endif
endif
// Moves Gold to Mule if you have more than 10k
if followers > 0
if not mounted 'self' or followers > 1
if @findtype '0xeed' 'any' 'backpack' 10000
if @findtype 0xc8 1254 'any'
setalias 'mule' 'found'
while not @inrange 'mule' 2
msg 'All guard me'
pause 300
endwhile
@findtype 0xeed 'any' 'backpack'
@moveitem 'found''mule'
endif
endif
endif
endif
if @findtype '0xeed' 'any' 'backpack' 20000
@usetype '0xe76' 'any' 'backpack'
waitfortarget 10000
@targettype 0xeed 'any' 'backpack'
endif
//Triggers emergency routine to escape in case of low health
if @diffhits > 70
if skill 'chivalry' > 35
if @inrange 'enemy' 2 and mana > 10
pause 1500
cast 'Dispel Evil'
pause 500
endif
endif
@unsetalias 'instrument'
if not timerexists 'discordance'
createtimer 'discordance'
settimer 'discordance' 10500
endif
if timer 'discordance' >= 10500
for 0 to 'instruments'
if @findtype instruments[] 'any''backpack'
@setalias 'instrument' 'found'
useskill 'peacemaking'
waitfortarget 2000
settimer 'discordance' 0
if @injournal 'what instrument'
@target! 'instrument' 0x0 'backpack'
waitfortarget 2000
@target! 'self'
@clearjournal
else
@target! 'self'
endif
endif
endfor
endif
if followers < 5
if skill 'ninjitsu' > 40
if mana >10
pause 1500
cast 'mirror image'
endif
if mana >10
pause 1500
cast 'mirror image'
endif
if mana >10
pause 1500
cast 'mirror image'
endif
if mana >10
pause 1500
cast 'mirror image'
endif
endif
endif
endif
endwhile
Code: Select all
getenemy 'closest' 'murderer'
if @findobject 'enemy'
autotargetobject! 'enemy'
if murderer 'enemy'
attack! 'enemy'
target! 'enemy'
@clearusequeue
@cancelautotarget
stop
endif
endif
Code: Select all
//Get Enemy Grey Only
for 0 to 300
getenemy 'gray''criminal''closest'
pause 500
if @findobject 'enemy'
autotargetobject! 'enemy'
pause 200
if criminal 'enemy'
attack! 'enemy'
waitfortarget 15000
target! 'enemy'
pause 1000
@clearusequeue
@cancelautotarget
stop
endif
if gray 'enemy'
attack! 'enemy'
waitfortarget 15000
target! 'enemy'
pause 1000
@clearusequeue
@cancelautotarget
stop
endif
endif
pause 3000
endfor
Code: Select all
//Attacker by Radament
// 1.0 v
// Make sure to adjust pause intervals on spells accodring to your FCR and FC capabilities otherwise the macro will stop.
if not listexists 'instruments'
createlist 'instruments'
@pushlist 'instruments' 0xeb1
@pushlist 'instruments' 0xeb2
@pushlist 'instruments' 0xeb3
@pushlist 'instruments' 0xe9c
@pushlist 'instruments' 0xe9d
@pushlist 'instruments' 0xe9e
@pushlist 'instruments' 0x2805
endif
if not findalias 'woodworkerskeys'
headmsg 'Select Wood Workers Keys'
promptalias 'woodworkerskeys'
endif
while not dead
// Make sure you have arrows
if not @findtype 0xf3f 'any' 'backpack'
useobject 'woodworkerskeys'
waitforgump 173511501 15000
replygump 0xa57934d 60013
waitforgump 173511501 15000
replygump 0xa57934d 0
endif
// Sets weapon if you are carrying it
if @findlayer 'self' 1
@setalias 'rightitem' 'found'
endif
if @findlayer 'self' 2
@setalias 'leftitem' 'found'
endif
//Bring Pets Closer
if followers > 0
if not mounted 'self' or followers > 1
if @findobject 'pet1'
while not @inrange 'pet1' 5
msg "all guard me"
pause 300
endwhile
elseif @findobject 'pet2'
while not @inrange 'pet2' 5
msg "all guard me"
pause 300
endwhile
elseif @findobject 'pet3'
while not @inrange 'pet3' 5
msg "all guard me"
pause 300
endwhile
elseif @findobject 'pet4'
while not @inrange 'pet4' 5
msg "all guard me"
pause 300
endwhile
endif
endif
endif
if followers > 0
if not mounted 'self' or followers > 1
if not timerexists 'guard'
createtimer 'guard'
settimer 'guard' 8000
endif
if timer 'guard' >= 8000
if @hits < 80
msg 'all guard me'
endif
endif
endif
endif
//Equip Weapons
if not @findlayer 'self' 1
@equipitem 'rightitem' 1
endif
if not @findlayer 'self' 2
@equipitem 'leftitem' 2
endif
//Special Moves before hiting
if not timerexists 'ability'
createtimer 'ability'
settimer 'ability' 1500
endif
if mana > 19
if mounted 'self'
if timer 'ability' >= 1500
setability 'secondary' 'on'
settimer 'ability' 0
endif
elseif timer 'ability' >= 1500
setability 'primary' 'on'
settimer 'ability' 0
endif
elseif skill 'bushido' > 95
if timer 'ability' >= 1500
cast 'honorable execution'
settimer 'ability' 0
endif
endif
//-------------------------- First Attack ---------------------------
warmode 'on'
if not timerexists 'kill'
createtimer 'kill'
settimer 'kill' 1500
endif
if timer 'kill' >= 1500
@getenemy 'gray''criminal''closest'
@setalias 'ene' 'enemy'
if @graphic 'enemy' != 0xc8
if @findobject 'enemy'
@autotargetobject! 'enemy'
if criminal 'enemy'
@attack! 'enemy'
@target! 'enemy'
@clearusequeue
@cancelautotarget
endif
if gray 'enemy'
@attack! 'enemy'
@target! 'enemy'
@clearusequeue
@cancelautotarget
endif
if followers > 0
if not mounted or followers > 1
if not timerexists 'petkill'
createtimer 'petkill'
settimer 'petkill' 2000
endif
if timer 'petkill' >= 2000 and followers > 0
msg 'all kill'
waitfortarget 5000
target! 'enemy'
settimer 'petkill' 0
endif
endif
endif
endif
endif
settimer 'kill' 0
endif
//Bring Pets Closer
if followers > 0
if not mounted 'self' or followers > 1
if @findobject 'pet1'
while not @inrange 'pet1' 5
msg "all guard me"
pause 300
endwhile
elseif @findobject 'pet2'
while not @inrange 'pet2' 5
msg "all guard me"
pause 300
endwhile
elseif @findobject 'pet3'
while not @inrange 'pet3' 5
msg "all guard me"
pause 300
endwhile
elseif @findobject 'pet4'
while not @inrange 'pet4' 5
msg "all guard me"
pause 300
endwhile
endif
endif
endif
//Buffs while Attacking
if @findlayer 'self' 2
if skill 'chivalry' > 30 and mana > 10
if not timerexists 'consecrateweapon'
createtimer 'consecrateweapon'
settimer 'consecrateweapon' 11000
endif
if timer 'consecrateweapon' >= 11000
pause 1500
cast 'consecrate weapon'
settimer 'consecrateweapon' 0
endif
endif
endif
if skill 'chivalry' > 25 and mana > 15
if not timerexists 'divine'
createtimer 'divine'
settimer 'divine' 20000
endif
if timer 'divine' >= 20000
pause 1900
cast 'divine fury'
settimer 'divine' 0
endif
endif
if @findlayer 'self' 1 or @findlayer 'self' 2
if skill 'bushido' > 50 and mana > 10
if not timerexists 'confidence'
createtimer 'confidence'
settimer 'confidence' 10000
endif
if timer 'confidence' >= 10000 and not buffexists 'confidence'
pause 2200
cast 'confidence'
settimer 'confidence' 0
endif
endif
endif
if @findlayer 'self' 1 or @findlayer 'self' 2
if skill 'bushido' > 80 and mana > 10
if not timerexists 'evasion'
createtimer 'evasion'
settimer 'evasion' 8000
endif
if timer 'evasion' >= 8000 and not buffexists 'evasion'
pause 1500
cast 'evasion'
settimer 'evasion' 0
endif
endif
endif
//Bring Pets Closer
if followers > 0
if not mounted 'self' or followers > 1
if @findobject 'pet1'
while not @inrange 'pet1' 5
msg "all guard me"
pause 300
endwhile
elseif @findobject 'pet2'
while not @inrange 'pet2' 5
msg "all guard me"
pause 300
endwhile
elseif @findobject 'pet3'
while not @inrange 'pet3' 5
msg "all guard me"
pause 300
endwhile
elseif @findobject 'pet4'
while not @inrange 'pet4' 5
msg "all guard me"
pause 300
endwhile
endif
endif
endif
// Uses Discordance if you have an instrument
if @findobject 'enemy' and skill 'discordance' > 20
@unsetalias 'instrument'
if not timerexists 'discordance'
createtimer 'discordance'
settimer 'discordance' 10500
endif
if timer 'discordance' >= 10500
for 0 to 'instruments'
if @findtype instruments[] 'any''backpack'
@setalias 'instrument' 'found'
useskill 'discordance'
waitfortarget 2000
settimer 'discordance' 0
if @injournal 'what instrument'
@target! 'instrument' 0x0 'backpack'
waitfortarget 2000
@target! 'enemy'
clearjournal
else
@target! 'enemy'
endif
endif
endfor
endif
endif
// Pets Guard you while healing
if followers > 0
if not mounted 'self' or followers > 1
if not timerexists 'guard'
createtimer 'guard'
settimer 'guard' 10000
endif
if timer 'guard' >= 10000 and @diffhits > 10
msg 'all guard me'
endif
endif
endif
//Auto heal self routines
while @diffhits > 5
if not timerexists 'bandie1'
createtimer 'bandie1'
settimer 'bandie1' 3000
endif
if @injournal 'finish applying' 'system' or timer 'bandie1' >= 3000
msg '[bandself'
settimer 'bandie1' 0
@clearjournal
endif
if not timerexists 'boon'
createtimer 'boon'
settimer 'boon' 30000
endif
if timer 'boon' >= 30000
if mana > 20
pause 1500
msg '[cs sacredboon'
waitfortarget 15000
@target! 'self'
settimer 'boon' 0
endif
endif
if mana > 12
pause 500
msg '[cs touchoflife'
waitfortarget 15000
@target! 'self'
endif
if mana < 12
@usetype! 0x13a8 'any' 0x4095b7ed
waitfortarget 500
@target! 'self'
endif
endwhile
if poisoned 'self' and mana > 6
pause 1500
msg '[cs purge'
waitfortarget 5000
target! 'self'
endif
while @hits < 50
if skill 'chivalry' > 35
if @inrange 'enemy' 2 and mana > 10
pause 1500
cast 'Dispel Evil'
pause 500
endif
endif
if @injournal 'finish applying' 'system' or timer 'bandie' >= 3000
msg '[bandself'
settimer 'bandie' 0
@clearjournal
endif
if not timerexists 'boon'
createtimer 'boon'
settimer 'boon' 30000
endif
if timer 'boon' >= 30000
if mana > 20
pause 1500
msg '[cs sacredboon'
waitfortarget 15000
@target! 'self'
settimer 'boon' 0
endif
endif
if mana > 12
pause 500
msg '[cs touchoflife'
waitfortarget 15000
@target! 'self'
endif
if mana < 12
@usetype! 0x13a8 'any' 0x4095b7ed
waitfortarget 500
@target! 'self'
endif
endwhile
//Bring Pets Closer
if followers > 0
if not mounted 'self' or followers > 1
if @findobject 'pet1'
while not @inrange 'pet1' 6
msg "all guard me"
pause 300
endwhile
elseif @findobject 'pet2'
while not @inrange 'pet2' 6
msg "all guard me"
pause 300
endwhile
elseif @findobject 'pet3'
while not @inrange 'pet3' 6
msg "all guard me"
pause 300
endwhile
elseif @findobject 'pet4'
while not @inrange 'pet4' 6
msg "all guard me"
pause 300
endwhile
endif
endif
endif
@unsetalias 'ene'
// Moves Gold to Mule if you have more than 10k
if followers > 0
if not mounted 'self' or followers > 1
if @findtype '0xeed' 'any' 'backpack' 10000
if @findtype 0xc8 1254 'any'
setalias 'mule' 'found'
while not @inrange 'mule' 2
msg 'All guard me'
pause 300
endwhile
@findtype 0xeed 'any' 'backpack'
@moveitem 'found''mule'
endif
endif
endif
endif
if @findtype '0xeed' 'any' 'backpack' 20000
@usetype '0xe76' 'any' 'backpack'
waitfortarget 10000
@targettype 0xeed 'any' 'backpack'
endif
//Triggers emergency routine to escape in case of low health
if @hits < 30
if skill 'chivalry' > 35
if @inrange 'enemy' 2 and mana > 10
pause 1500
cast 'Dispel Evil'
pause 500
endif
endif
@unsetalias 'instrument'
if not timerexists 'discordance'
createtimer 'discordance'
settimer 'discordance' 10500
endif
if timer 'discordance' >= 10500
for 0 to 'instruments'
if @findtype instruments[] 'any''backpack'
@setalias 'instrument' 'found'
useskill 'peacemaking'
waitfortarget 2000
settimer 'discordance' 0
if @injournal 'what instrument'
@target! 'instrument' 0x0 'backpack'
waitfortarget 2000
@target! 'self'
@clearjournal
else
@target! 'self'
endif
endif
endfor
endif
if followers < 5
if skill 'ninjitsu' > 40
if mana >10
pause 1500
cast 'mirror image'
endif
if mana >10
pause 1500
cast 'mirror image'
endif
if mana >10
pause 1500
cast 'mirror image'
endif
if mana >10
pause 1500
cast 'mirror image'
endif
endif
endif
endif
endwhile
Code: Select all
//Auto Attack by Radament
// Does a lot of things all together, better to have separate macros.
if not listexists 'petlist'
createlist 'petlist'
//Add an entry for each pet you hunt with:
@pushlist 'petlist' 0x3a4f4 // Angel
@pushlist 'petlist' 0x460f5 // Venus
@pushlist 'petlist' 0xa2d5b //Thunder
@pushlist 'petlist' 0xa2d62 // Arya
@pushlist 'petlist' 0xa2d4f //Moon
@pushlist 'petlist' 0x3c708 //Twilight
@pushlist 'petlist' 0x3c733 //Darkness
@pushlist 'petlist' 0x139c05 //Shadow
@pushlist 'petlist' 0x3c717 //Moonlight
@pushlist 'petlist' 0x3c6f5 //Twister
@pushlist 'petlist' 0xd7f4e //Hades
@pushlist 'petlist' 0xd33f7 //Apollo
@pushlist 'petlist' 0x9b019 //Cerberus
@pushlist 'petlist' 0x7c506 //Zeus
@pushlist 'petlist' 0x81f41 //Poseidon
endif
if not listexists 'instruments'
createlist 'instruments'
@pushlist 'instruments' 0xeb1
@pushlist 'instruments' 0xeb2
@pushlist 'instruments' 0xeb3
@pushlist 'instruments' 0xe9c
@pushlist 'instruments' 0xe9d
@pushlist 'instruments' 0xe9e
@pushlist 'instruments' 0x2805
endif
if not listexists 'bosses'
createlist 'bosses'
@pushlist 'bosses' 0x6c
@pushlist 'bosses' 0x190
endif
while not dead
// Sets weapon if you are carrying it
if @findlayer 'self' 1
@setalias 'rightitem' 'found'
endif
if @findlayer 'self' 2
@setalias 'leftitem' 'found'
endif
// Protection while buffs are applied
if followers > 0
if not mounted 'self' or followers > 1
if @findobject 'pet1'
while not @inrange 'pet1' 6
msg "all guard me"
pause 300
endwhile
elseif @findobject 'pet2'
while not @inrange 'pet2' 6
msg "all guard me"
pause 300
endwhile
elseif @findobject 'pet3'
while not @inrange 'pet3' 6
msg "all guard me"
pause 300
endwhile
elseif @findobject 'pet4'
while not @inrange 'pet4' 6
msg "all guard me"
pause 300
endwhile
endif
endif
endif
if followers > 0
if not mounted 'self' or followers > 1
if not timerexists 'guard'
createtimer 'guard'
settimer 'guard' 8000
endif
if timer 'guard' >= 8000
if @hits < 80
msg 'all guard me'
endif
endif
endif
endif
//Equip Weapons
if not @findlayer 'self' 1
@equipitem 'rightitem' 1
endif
if not @findlayer 'self' 2
@equipitem 'leftitem' 2
endif
//Special Moves before hiting
if not timerexists 'ability'
createtimer 'ability'
settimer 'ability' 3000
endif
if skill 'bushido' > 70 and mana > 10
if timer 'ability' >= 3000
cast 'momentum strike'
settimer 'ability' 0
endif
elseif skill 'ninjitsu' > 60 and mana > 20
if timer 'ability' >= 3000
cast 'focus attack'
settimer 'ability' 0
endif
elseif skill 'bushido' > 50 and mana > 5
if timer 'ability' >= 3000
cast 'lightning strike'
settimer 'ability' 0
endif
elseif mana > 19
if not setability 'primary' 'on' and
if timer 'ability' >= 1500
setability 'primary' 'on'
settimer 'ability' 0
endif
endif
elseif mana > 19
if not setability 'secondary' 'on' and
if mounted 'self'
if timer 'ability' >= 1500
setability 'secondary' 'on'
settimer 'ability' 0
endif
endif
endif
elseif skill 'bushido' > 95
if timer 'ability' >= 3000
cast 'honorable execution'
settimer 'ability' 0
endif
endif
//-------------------------- First Attack ---------------------------
warmode 'on'
if not timerexists 'kill'
createtimer 'kill'
settimer 'kill' 3000
endif
if timer 'kill' >= 3000
@getenemy 'gray''criminal''closest'
@setalias 'ene' 'enemy'
if @graphic 'enemy' != 0xc8
if @findobject 'enemy'
@autotargetobject! 'enemy'
if criminal 'enemy'
@attack! 'enemy'
@target! 'enemy'
@clearusequeue
@cancelautotarget
endif
if gray 'enemy'
@attack! 'enemy'
@target! 'enemy'
@clearusequeue
@cancelautotarget
endif
if followers > 0
if not mounted or followers > 1
if not timerexists 'petkill'
createtimer 'petkill'
settimer 'petkill' 5000
endif
if timer 'petkill' >= 5000 and followers > 0
msg 'all kill'
waitfortarget 5000
target! 'enemy'
settimer 'petkill' 0
endif
endif
endif
endif
endif
settimer 'kill' 0
endif
//Buffs while Attacking
if @findlayer 'self' 2
if skill 'chivalry' > 30 and mana > 10
if not timerexists 'consecrateweapon'
createtimer 'consecrateweapon'
settimer 'consecrateweapon' 11000
endif
if timer 'consecrateweapon' >= 11000
pause 1500
cast 'consecrate weapon'
settimer 'consecrateweapon' 0
endif
endif
endif
if skill 'chivalry' > 25 and mana > 15
if not timerexists 'divine'
createtimer 'divine'
settimer 'divine' 20000
endif
if timer 'divine' >= 20000
pause 1500
cast 'divine fury'
settimer 'divine' 0
endif
endif
if @findlayer 'self' 2
if skill 'necromancy' > 30 and mana > 7
if not timerexists 'curseweapon'
createtimer 'curseweapon'
settimer 'curseweapon' 38000
endif
if timer 'curseweapon' <= 38000
pause 2000
cast 'curse weapon'
settimer 'curseweapon' 0
endif
endif
endif
if @findlayer 'self' 1 or @findlayer 'self' 2
if skill 'bushido' > 50 and mana > 10
if not timerexists 'confidence'
createtimer 'confidence'
settimer 'confidence' 10000
endif
if timer 'confidence' >= 10000 and not buffexists 'confidence'
pause 2000
cast 'confidence'
settimer 'confidence' 0
endif
endif
endif
if @findlayer 'self' 1 or @findlayer 'self' 2
if skill 'bushido' > 80 and mana > 10
if not timerexists 'evasion'
createtimer 'evasion'
settimer 'evasion' 8000
endif
if timer 'evasion' >= 8000 and not buffexists 'evasion'
pause 1500
cast 'evasion'
settimer 'evasion' 0
endif
endif
endif
// -------------------Attack Boss ------------------
for 0 in 'bosses'
if @findobject 0x190 'any'
@getenemy 'found'
if timer 'kill' >= 3000
@attack 'enemy'
settimer 'kill' 0
endif
if followers > 0
if not mounted or followers > 1
if not timerexists 'petkill'
createtimer 'petkill'
settimer 'petkill' 5000
endif
if timer 'petkill' >= 5000 and followers > 0
msg 'all kill'
waitfortarget 5000
@target! 'enemy'
settimer 'petkill' 0
endif
endif
endif
if skill 'chivalry' > 35 and mana > 20
if not timerexists 'one'
createtimer 'one'
settimer 'one' 230000
endif
if timer 'one' >= 230000
pause 2000
cast 'enemy of one'
settimer 'one' 0
endif
endif
if skill 'chivalry' > 25 and mana > 15
if not timerexists 'fury'
createtimer 'fury'
settimer 'fury' 230000
endif
if timer 'fury' >= 230000
pause 2000
cast 'divine fury'
settimer 'fury' 0
endif
endif
if skill 'necromancy' > 20 and mana > 13
if not timerexists 'blood'
createtimer 'blood'
settimer 'blood' 9000
endif
if timer 'blood' >= 9000
pause 2000
cast 'blood oath'
waitfortarget 5000
target! 'enemy'
settimer 'blood' 0
endif
endif
if skill 'necromancy' > 20 and mana > 9
if not timerexists 'curse'
createtimer 'curse'
settimer 'curse' 125000
endif
if timer 'curse' >= 125000
pause 2000
cast "curse" // Agi, Str and Int Buff
waitfortarget 5000
@target! 'enemy'
settimer 'curse' 0
if not @findlayer 'self' 1
@equipitem 'rightitem' 1
endif
if not @findlayer 'self' 2
@equipitem 'leftitem' 2
endif
endif
endif
endif
endfor
// Uses Discordance if you have an instrument
if @findobject 'enemy' and skill 'discordance' > 20
@unsetalias 'instrument'
if not timerexists 'discordance'
createtimer 'discordance'
settimer 'discordance' 10500
endif
if timer 'discordance' >= 10500
for 0 to 'instruments'
if @findtype instruments[] 'any''backpack'
@setalias 'instrument' 'found'
useskill 'discordance'
waitfortarget 2000
settimer 'discordance' 0
if @injournal 'what instrument'
@target! 'instrument' 0x0 'backpack'
waitfortarget 2000
@target! 'enemy'
clearjournal
else
@target! 'enemy'
endif
endif
endfor
endif
endif
// Pets Guard you while healing
if followers > 0
if not mounted 'self' or followers > 1
if not timerexists 'guard'
createtimer 'guard'
settimer 'guard' 10000
endif
if timer 'guard' >= 10000 and @diffhits > 10
msg 'all guard me'
endif
endif
endif
//Auto heal self routines
while @hits < 99
if not timerexists 'bandie'
createtimer 'bandie'
settimer 'bandie' 3000
endif
if @injournal 'finish applying' 'system' or timer 'bandie' >= 3000
msg '[bandself'
settimer 'bandie' 0
@clearjournal
endif
if not timerexists 'boon'
createtimer 'boon'
settimer 'boon' 30000
endif
if timer 'boon' >= 30000
if mana > 20
pause 1500
msg '[cs sacredboon'
waitfortarget 15000
@target! 'self'
settimer 'boon' 0
endif
endif
if mana > 12
pause 500
msg '[cs touchoflife'
waitfortarget 15000
@target! 'self'
endif
if mana < 12
@usetype! 0x13a8 'any' 0x4095b7ed
waitfortarget 500
@target! 'self'
endif
endwhile
if poisoned 'self' and mana > 6
pause 1500
msg '[cs purge'
waitfortarget 5000
target! 'self'
endif
while @diffhits > 40
if skill 'chivalry' > 35
if @inrange 'enemy' 2 and mana > 10
pause 1500
cast 'Dispel Evil'
pause 500
endif
endif
if @injournal 'finish applying' 'system' or timer 'bandie' >= 3000
msg '[bandself'
settimer 'bandie' 0
@clearjournal
endif
if not timerexists 'boon'
createtimer 'boon'
settimer 'boon' 30000
endif
if timer 'boon' >= 30000
if mana > 20
pause 1500
msg '[cs sacredboon'
waitfortarget 15000
@target! 'self'
settimer 'boon' 0
endif
endif
if mana > 12
pause 500
msg '[cs touchoflife'
waitfortarget 15000
@target! 'self'
endif
if mana < 12
@usetype! 0x13a8 'any' 0x4095b7ed
waitfortarget 500
@target! 'self'
endif
endwhile
//Bring Pets Closer
if followers > 0
if not mounted 'self' or followers > 1
if @findobject 'pet1'
while not @inrange 'pet1' 6
msg "all guard me"
pause 300
endwhile
elseif @findobject 'pet2'
while not @inrange 'pet2' 6
msg "all guard me"
pause 300
endwhile
elseif @findobject 'pet3'
while not @inrange 'pet3' 6
msg "all guard me"
pause 300
endwhile
elseif @findobject 'pet4'
while not @inrange 'pet4' 6
msg "all guard me"
pause 300
endwhile
endif
endif
endif
@unsetalias 'found'
@unsetalias 'ene'
@unsetalias 'pet1'
@unsetalias 'pet2'
@unsetalias 'pet3'
@unsetalias 'pet4'
@unsetalias 'pet5'
//--------------------------AUTO PET HEALER--------------
if followers > 0
if not mounted 'self' or followers > 1
@unsetalias 'boundedtarget'
//Removes pets if mounted, stabled or you get too far away
if @findalias 'Pet1' and not @findobject 'Pet1'
@unsetalias 'Pet1'
endif
if @findalias 'Pet2' and not @findobject 'Pet2'
@unsetalias 'Pet2'
endif
if @findalias 'Pet3' and not @findobject 'Pet3'
@unsetalias 'Pet3'
endif
if @findalias 'Pet4' and not @findobject 'Pet4'
@unsetalias 'Pet4'
endif
if @findalias 'Pet5' and not @findobject 'Pet5'
@unsetalias 'Pet5'
endif
//makes sure the pets never equal each other
if @findalias 'Pet1' and @findalias 'Pet2'
if @serial 'Pet1' == @serial 'Pet2'
@unsetalias 'Pet2'
endif
endif
if @findalias 'Pet2' and @findalias 'Pet3'
if @serial 'Pet2' == @serial 'Pet3'
@unsetalias 'Pet3'
endif
endif
if @findalias 'Pet3' and @findalias 'Pet4'
if @serial 'Pet3' == @serial 'Pet4'
@unsetalias 'Pet4'
endif
endif
if @findalias 'Pet4' and @findalias 'Pet5'
if @serial 'Pet4' == @serial 'Pet5'
@unsetalias 'Pet5'
endif
endif
if @findalias 'Pet5' and @findalias 'Pet1'
if @serial 'Pet5' == @serial 'Pet1'
@unsetalias 'Pet1'
endif
endif
// Assign Aliases to active pets on list
if not @findobject 'Pet1' or not @findobject 'Pet2' or not @findobject 'Pet3' or not @findobject 'Pet4' or not @findobject 'Pet5'
for 0 to 'petlist'
if @findobject petlist[] 'any' 'ground' 0 30
if not @findobject 'Pet1'
@setalias 'Pet1' petlist[]
elseif not @findobject 'Pet2' and @serial 'Pet1' != 'petlist[]'
@setalias 'Pet2' petlist[]
elseif not @findobject 'Pet3' and @serial 'Pet2' != 'petlist[]'
@setalias 'Pet3' petlist[]
elseif not @findobject 'Pet4' and @serial 'Pet3' != 'petlist[]'
@setalias 'Pet4' petlist[]
elseif not @findobject 'Pet5' and @serial 'Pet4' != 'petlist[]'
@setalias 'Pet5' petlist[]
endif
endif
endfor
endif
//Selects target to heal
if @findobject 'pet1' and @hits 'pet1' < 25
@setalias 'boundedtarget' 'pet1'
elseif @findobject 'pet2' and @hits 'pet2' < 25
@setalias 'boundedtarget' 'pet2'
elseif @findobject 'pet3' and @hits 'pet3' < 25
@setalias 'boundedtarget' 'pet3'
elseif @findobject 'pet4' and @hits 'pet4' < 25
@setalias 'boundedtarget' 'pet4'
elseif @findobject 'pet5' and @hits 'pet5' < 25
@setalias 'boundedtarget' 'pet5'
endif
if not @findalias 'boundedtarget'
if @findobject 'pet1' and @hits 'pet1' < 50
@setalias 'boundedtarget' 'pet1'
elseif @findobject 'pet2' and @hits 'pet2' < 50
@setalias 'boundedtarget' 'pet2'
elseif @findobject 'pet3' and @hits 'pet3' < 50
@setalias 'boundedtarget' 'pet3'
elseif @findobject 'pet4' and @hits 'pet4' < 50
@setalias 'boundedtarget' 'pet4'
elseif @findobject 'pet5' and @hits 'pet5' < 50
@setalias 'boundedtarget' 'pet5'
endif
endif
if not @findalias 'boundedtarget'
if @findobject 'pet1' and @hits 'pet1' < 75
@setalias 'boundedtarget' 'pet1'
elseif @findobject 'pet2' and @hits 'pet2' < 75
@setalias 'boundedtarget' 'pet2'
elseif @findobject 'pet3' and @hits 'pet3' < 75
@setalias 'boundedtarget' 'pet3'
elseif @findobject 'pet4' and @hits 'pet4' < 75
@setalias 'boundedtarget' 'pet4'
elseif @findobject 'pet5' and @hits 'pet5' < 75
@setalias 'boundedtarget' 'pet5'
endif
endif
//Cure Bounded Target
@unsetalias 'found'
if @findalias 'boundedtarget'
while @hits 'boundedtarget' < 95
while not @inrange 'boundedtarget' 1
msg 'All follow me'
pause 300
endwhile
if not timerexists 'bandie'
createtimer 'bandie'
settimer 'bandie' 3000
endif
if @injournal 'finish applying' 'system' or timer 'bandie' >= 3000
msg '[band'
waitfortarget 15000
@target! 'boundedtarget'
settimer 'bandie' 0
@clearjournal
endif
if not timerexists 'divine'
createtimer 'divine'
settimer 'divine' 120000
endif
if mana > 70 and timer 'divine' >= 120000
pause 1000
msg '[cs divinefocus'
settimer 'divine'0
endif
if not timerexists 'boon'
createtimer 'boon'
settimer 'boon' 30000
endif
if timer 'boon' >= 30000
if mana > 20
pause 1500
msg '[cs sacredboon'
waitfortarget 15000
@target! 'boundedtarget'
settimer 'boon' 0
endif
endif
if mana > 12
pause 500
msg '[cs touchoflife'
waitfortarget 15000
@target! 'boundedtarget'
endif
if mana < 12
@usetype! 0x13a8 'any' 0x4095b7ed
waitfortarget 500
@target! 'self'
endif
endwhile
@usetype! 0x13a8 'any' 0x4095b7ed
waitfortarget 500
@target! 'self'
endif
endif
endif
// Moves Gold to Mule if you have more than 10k
if followers > 0
if not mounted 'self' or followers > 1
if @findtype '0xeed' 'any' 'backpack' 10000
if @findtype 0xc8 1254 'any'
setalias 'mule' 'found'
while not @inrange 'mule' 2
msg 'All guard me'
pause 300
endwhile
@findtype 0xeed 'any' 'backpack'
@moveitem 'found''mule'
endif
endif
endif
endif
if @findtype '0xeed' 'any' 'backpack' 20000
@usetype '0xe76' 'any' 'backpack'
waitfortarget 10000
@targettype 0xeed 'any' 'backpack'
endif
//Triggers emergency routine to escape in case of low health
if @diffhits > 70
if skill 'chivalry' > 35
if @inrange 'enemy' 2 and mana > 10
pause 1500
cast 'Dispel Evil'
pause 500
endif
endif
@unsetalias 'instrument'
if not timerexists 'discordance'
createtimer 'discordance'
settimer 'discordance' 10500
endif
if timer 'discordance' >= 10500
for 0 to 'instruments'
if @findtype instruments[] 'any''backpack'
@setalias 'instrument' 'found'
useskill 'peacemaking'
waitfortarget 2000
settimer 'discordance' 0
if @injournal 'what instrument'
@target! 'instrument' 0x0 'backpack'
waitfortarget 2000
@target! 'self'
@clearjournal
else
@target! 'self'
endif
endif
endfor
endif
if followers < 5
if skill 'ninjitsu' > 40
if mana >10
pause 1500
cast 'mirror image'
endif
if mana >10
pause 1500
cast 'mirror image'
endif
if mana >10
pause 1500
cast 'mirror image'
endif
if mana >10
pause 1500
cast 'mirror image'
endif
endif
endif
endif
endwhile