WIP: Dexxer/Mage/Necro Hybrid by KikRox268
Related: Swords
Description from the author:
#This script is a copy and paste of 2 different Jaseowns scripts. This is not a script made by Jaseowns! I just want to clarify that.
# Dexxer Bot by Jaseowns
# UO Outlands
#######
# Working on this during the live streams: Monday / Wednesday / Friday
# https://youtube.com/jaseowns/live
#######
# Basic Heal and Chivalry abilties to heal by Jaseowns
# UO Outlands
@setvar! cdPreventOverheadSpam 2000
# Check potion buffs controllers
@setvar! checkStr 1
@setvar! checkDex 1
@setvar! checkMagic 1
@setvar! checkHealPot 1
@setvar! checkCurePot 1
@setvar! checkRefreshPot 1
# These control when the potion will be drank
# Edit to your liking
@setvar! hpCheckToTriggerHealPotion 35
@setvar! hpCheckToTriggerCurePotion 40
@setvar! stamCheckToTriggerRedPotion 20
# Automatically Select Next Target
@setvar! autoTargetNextMob 1
@setvar! minimumWaitForPing 200
# make sure you add a friends list called: IgnoreMobs
@setvar! didYouSetupIgnoreMobs 1
###############
### Choose your summons
######
@setvar! castSummonFireElementalCount 1
@setvar! castSummonCreatureCount 1
@setvar! castSummonEarthElementalCount 1
@setvar! castSummonEarthElementalAsMummy 1
###############
### Choose your necro spells (ignored if less then required necro skill)
######
@setvar! castEvilOmen 0
@setvar! castCorpseSkin 0
@setvar! castVampiricEmbrace 1
@setvar! castMindRot 0
@setvar! castPoisonStrike 0
@setvar! castBloodOath 1
@setvar! castPainSpike 0
@setvar! requireWitherBeforeSummons 1
###############
### Necro Cooldowns
######
@setvar! cdEvilOmen 30500
@setvar! cdVampiricEmbrace 30500
@setvar! cdCorpseSkin 30500
@setvar! cdMindRot 30500
@setvar! cdWither 30500
@setvar! cdVengefulSpirit 30500
@setvar! cdBloodOath 30500
@setvar! cdPainSpike 30500
@setvar! cdPoisonStrike 30500
@setvar! patrolPetEvenIfLastTargetIsBeyondEightTiles 1
@setvar! cdKillTarget 60000
@setvar! cdMeditation 10000
if counttype "gold coin" backpack as total
if 10000 < total
overhead "Warning: {{total}} gold!" 34
endif
endif
#### Pet Names, unique to you
if not listexists petNameList
createlist petNameList
endif
if list petNameList = 0
pushlist petNameList "NecroMummy"
pushlist petNameList "NecroLich"
pushlist petNameList "NecroCreature"
endif
##############################################
########### DO NOT EDIT BELOW THIS
#######
if not varexist jaseowns
overhead "v2.3.0" 34
overhead "uorazorscripts.com/mage-bot" 34
say "This script was brought to you by youtube.com/Jaseowns" 88
wait 500
@setvar! jaseowns 1
endif
if didYouSetupIgnoreMobs = 0
overhead "For this script to work, make sure you add a friends list called: IgnoreMobs" 34
sysmsg "For this script to work, make sure you add a friends list called: IgnoreMobs" 34
wait 1500
overhead "Click Friends Tab -> [checkmark] enabled -> [checkmark] Next/Prev Target ignores 'IgnoreMobs'" 88
sysmsg "Click Friends Tab -> [checkmark] enabled -> [checkmark] Next/Prev Target ignores 'IgnoreMobs'" 88
wait 5000
overhead "If everything is setup, update didYouSetupIgnoreMobs to 1"
sysmsg "If everything is setup, update didYouSetupIgnoreMobs to 1"
wait 5000
replay
endif
if dead
overhead "Rip" 34
wait 5000
replay
endif
if not findtype "White Potion" backpack
@setvar! checkStr 0
endif
if not findtype "Blue Potion" backpack
@setvar! checkDex 0
endif
if not findtype "Black Potion" backpack
@setvar! checkMagic 0
endif
if not timerexists preventOverheadSpamTimer
createtimer preventOverheadSpamTimer
settimer preventOverheadSpamTimer cdPreventOverheadSpam
endif
@setvar! myKillTarget 0
@setvar! targetInRange 0
if not varexist myPreviousKillTarget
@setvar myPreviousKillTarget 0
endif
if autoTargetNextMob = 1
@hotkey 'Target Closest Non-Friendly Monster'
wait minimumWaitForPing
if insysmsg "No one matching that was found"
if timer preventOverheadSpamTimer >= cdPreventOverheadSpam
overhead "found no one" 34
settimer preventOverheadSpamTimer 0
endif
else
@setvar! myKillTarget lasttarget
endif
if myKillTarget = 0
// do nothing
elseif not find lasttarget ground -1 -1 1
if timer preventOverheadSpamTimer >= cdPreventOverheadSpam
overhead "● ▼ OUT OF RANGE ▼ ●" 88 lasttarget
settimer preventOverheadSpamTimer 0
endif
if find lasttarget ground -1 -1 8
attack lasttarget
endif
else
@setvar! targetInRange 1
if timer preventOverheadSpamTimer >= cdPreventOverheadSpam
overhead "● ▼▼ HERE ▼▼ ●" 88 lasttarget
settimer preventOverheadSpamTimer 0
endif
attack lasttarget
endif
elseif dead myKillTarget
@hotkey 'Target Closest Non-Friendly Monster'
wait minimumWaitForPing
if insysmsg "No one matching that was found"
// do nothing
else
@setvar! myKillTarget lasttarget
if myKillTarget = 0
// do nothing
elseif not find lasttarget ground -1 -1 1
// do nothing
else
@setvar! targetInRange 1
endif
endif
elseif find myKillTarget ground -1 -1 1
@setvar! targetInRange 1
endif
if targetInRange = 1
# Eat food if we got it
if not findbuff "food" and findtype "tray" backpack as jood
dclick jood
wait minimumWaitForPing
endif
# Use Taste ID if possible
if skill "Taste Identification" >= 50 and not findbuff "herb" and timer meditiationTimer >= 11000
useskill 'tasteidentification'
wft 500
target backpack
settimer meditiationTimer 0
endif
@setvar! needStrBuff 0
@setvar! needDexBuff 0
@setvar! needMagicBuff 0
@setvar! needHealPot 0
@setvar! needCurePot 0
@setvar! needRefreshPot 0
if checkStr = 1 and not findbuff "Strength"
@setvar! needStrBuff 1
endif
if checkDex = 1 and not findbuff "Agility"
@setvar! needDexBuff 1
endif
if checkMagic = 1 and not findbuff "Magic Resist Potion"
@setvar! needMagicBuff 1
endif
if checkHealPot = 1 and hp <= hpCheckToTriggerHealPotion
@setvar! needHealPot 1
endif
if checkCurePot = 1 and poisoned and hp <= hpCheckToTriggerCurePotion
@setvar! needCurePot 1
endif
if checkRefreshPot = 1 and stam <= stamCheckToTriggerRedPotion
@setvar! needRefreshPot 1
endif
if needStrBuff = 1 and not findtype "White Potion" backpack
@setvar! needStrBuff 0
endif
if needDexBuff = 1 and not findtype "Blue Potion" backpack
@setvar! needDexBuff 0
endif
if needMagicBuff = 1 and not findtype "Black Potion" backpack
@setvar! needMagicBuff 0
endif
if needHealPot = 1 and not findtype "Yellow Potion" backpack
@setvar! needHealPot 0
endif
if needCurePot = 1 and not findtype "Orange Potion" backpack
@setvar! needCurePot 0
endif
if needRefreshPot = 1 and not findtype "Red Potion" backpack
@setvar! needRefreshPot 0
endif
@setvar! jaseCanDrinkPotion 0
if needStrBuff = 1 or needDexBuff = 1 or needMagicBuff = 1 or needHealPot = 1 or needCurePot = 1 or needRefreshPot = 1
@setvar! jaseRightHand 0
@setvar! jaseLeftHand 0
@setvar! needTwoHandSwap 0
@setvar! needShieldSwap 0
if jaseCanDrinkPotion = 1
// do nothing
else
if needTwoHandSwap = 1
if skill "Swordsmanship" > 0 and findtype "cutlass|broadsword|scimitar|viking sword|longsword|katana" backpack as item
dclick item
wait minimumWaitForPing
elseif skill "Mace Fighting" > 0 and findtype "maul|war axe|war mace|mace|hammer pick|club" backpack as item
dclick item
wait minimumWaitForPing
elseif skill "Fencing" > 0 and findtype "kryss|war fork|dagger" backpack as item
dclick item
wait minimumWaitForPing
elseif skill "Archery" > 0 and findtype "crossbow" backpack as item
dclick item
wait minimumWaitForPing
else
hotkey 'Arm/Disarm Left Hand'
wait minimumWaitForPing
endif
@setvar! jaseCanDrinkPotion 1
elseif needShieldSwap = 1
hotkey 'Arm/Disarm Left Hand'
@setvar! jaseCanDrinkPotion 1
wait minimumWaitForPing
endif
endif
if jaseCanDrinkPotion = 1
if needHealPot = 1
if findtype "Yellow Potion" backpack as jotion
overhead "chug heal"
dclick jotion
wait minimumWaitForPing
else
overhead "No Heal potion found!" 34
endif
endif
if needCurePot = 1
if findtype "Orange Potion" backpack as jotion
overhead "chug cure"
dclick jotion
wait minimumWaitForPing
else
overhead "No Cure potion found!" 34
endif
endif
if needRefreshPot = 1
if findtype "Red Potion" backpack as jotion
overhead "chug refresh"
dclick jotion
wait minimumWaitForPing
else
overhead "No Refresh potion found!" 34
endif
endif
if needStrBuff = 1
if findtype "White Potion" backpack as jotion
overhead "chug"
dclick jotion
wait minimumWaitForPing
else
overhead "No STR potion found!" 34
endif
endif
if needDexBuff = 1
if findtype "Blue Potion" backpack as jotion
overhead "chug"
dclick jotion
wait minimumWaitForPing
else
overhead "No AGI potion found!" 34
endif
endif
if needMagicBuff = 1
if findtype "Black Potion" backpack as jotion
overhead "chug"
dclick jotion
wait minimumWaitForPing
else
overhead "No MR potion found!" 34
endif
endif
if needTwoHandSwap = 1
dclick jaseLeftHand
wait minimumWaitForPing
elseif needShieldSwap = 1
hotkey 'Arm/Disarm Left Hand'
endif
endif
endif
endif
if skill "Camping" > 0
if not findbuff "campfire"
overhead "Camping Buff" 88
if not findtype "campfire" ground -1 -1 2 and findtype "kindling" as jindling
dclick jindling
wait minimumWaitForPing
endif
if not findtype "campfire" ground -1 -1 2
overhead "We have camping, but can not make a campfire!" 34
else
overhead "Make sure you stand by your camp fire!" 88
endif
endif
endif
wait 200
if not gumpexists 622436516 and skill "Necromancy" >= 50
say '[NecromancyHotbar'
wait 500
endif
// Setting current necro symbols - checks again it the attack loop
@setvar! necroSymbols 12
if gumpexists 622436516 and skill "Necromancy" >= 50
if ingump "12/" 622436516
@setvar! necroSymbols 12
elseif ingump "13/" 622436516
@setvar! necroSymbols 13
elseif ingump "14/" 622436516
@setvar! necroSymbols 14
elseif ingump "15/" 622436516
@setvar! necroSymbols 15
elseif ingump "16/" 622436516
@setvar! necroSymbols 16
elseif ingump "17/" 622436516
@setvar! necroSymbols 17
elseif ingump "18/" 622436516
@setvar! necroSymbols 18
elseif ingump "19/" 622436516
@setvar! necroSymbols 19
elseif ingump "20/" 622436516
@setvar! necroSymbols 20
elseif ingump "21/" 622436516
@setvar! necroSymbols 21
elseif ingump "11/" 622436516
@setvar! necroSymbols 11
elseif ingump "10/" 622436516
@setvar! necroSymbols 10
elseif ingump "9/" 622436516
@setvar! necroSymbols 9
elseif ingump "8/" 622436516
@setvar! necroSymbols 8
elseif ingump "7/" 622436516
@setvar! necroSymbols 7
elseif ingump "6/" 622436516
@setvar! necroSymbols 6
elseif ingump "5/" 622436516
@setvar! necroSymbols 5
elseif ingump "4/" 622436516
@setvar! necroSymbols 4
elseif ingump "3/" 622436516
@setvar! necroSymbols 3
elseif ingump "2/" 622436516
@setvar! necroSymbols 2
elseif ingump "1/" 622436516
@setvar! necroSymbols 1
elseif ingump "0/" 622436516
@setvar! necroSymbols 0
endif
endif
if not timerexists evilOmenTimer
createtimer evilOmenTimer
settimer evilOmenTimer cdEvilOmen
endif
if not timerexists vampiricEmbraceTimer
createtimer vampiricEmbraceTimer
settimer vampiricEmbraceTimer cdVampiricEmbrace
endif
if not timerexists corpseSkinTimer
createtimer corpseSkinTimer
settimer corpseSkinTimer cdCorpseSkin
endif
if not timerexists mindRotTimer
createtimer mindRotTimer
settimer mindRotTimer cdMindRot
endif
if not timerexists killTargetTimer
createtimer killTargetTimer
settimer killTargetTimer cdKillTarget
endif
if not timerexists witherTimer
createtimer witherTimer
settimer witherTimer cdWither
endif
if not timerexists vengefulSpiritTimer
createtimer vengefulSpiritTimer
settimer vengefulSpiritTimer cdVengefulSpirit
endif
if not timerexists bloodOathTimer
createtimer bloodOathTimer
settimer bloodOathTimer cdBloodOath
endif
if not timerexists meditiationTimer
createtimer meditiationTimer
settimer meditiationTimer cdMeditation
endif
if not timerexists preventOverheadSpamTimer
createtimer preventOverheadSpamTimer
settimer preventOverheadSpamTimer cdPreventOverheadSpam
endif
@setvar! cdPreventSpamNecroAbilities 750
if not timerexists preventSpamNecroAbilitiesTimer
createtimer preventSpamNecroAbilitiesTimer
settimer preventSpamNecroAbilitiesTimer cdPreventSpamNecroAbilities
endif
if not varexist myEarthPet
@setvar! myEarthPet 0
endif
// make sure we have enough symbols to summon (6 for wither + vengful spirit)
if skill "Necromancy" >= 90 and requireWitherBeforeSummons = 1
while followers < 4 and 6 > necroSymbols
// we already have vengeful spirit active, skip the check
if timer vengefulSpiritTimer < cdVengefulSpirit
break
endif
if diffhits >= 30
if targetexists
hotkey 'Cancel Current Target'
endif
while not targetexists 'beneficial'
if diffhits >= 60
cast 'Heal'
else
cast 'Greater Heal'
endif
wait 50
if hp = maxhp
hotkey '> Interrupt'
break
endif
endwhile
if targetexists 'beneficial'
hotkey 'Target Self'
endif
endif
if timer preventOverheadSpamTimer >= cdPreventOverheadSpam
overhead "waiting for symbols" 88
settimer preventOverheadSpamTimer 0
endif
if gumpexists 622436516 and skill "Necromancy" >= 50
if ingump "12/" 622436516
@setvar! necroSymbols 12
elseif ingump "13/" 622436516
@setvar! necroSymbols 13
elseif ingump "14/" 622436516
@setvar! necroSymbols 14
elseif ingump "15/" 622436516
@setvar! necroSymbols 15
elseif ingump "16/" 622436516
@setvar! necroSymbols 16
elseif ingump "17/" 622436516
@setvar! necroSymbols 17
elseif ingump "18/" 622436516
@setvar! necroSymbols 18
elseif ingump "19/" 622436516
@setvar! necroSymbols 19
elseif ingump "20/" 622436516
@setvar! necroSymbols 20
elseif ingump "21/" 622436516
@setvar! necroSymbols 21
elseif ingump "11/" 622436516
@setvar! necroSymbols 11
elseif ingump "10/" 622436516
@setvar! necroSymbols 10
elseif ingump "9/" 622436516
@setvar! necroSymbols 9
elseif ingump "8/" 622436516
@setvar! necroSymbols 8
elseif ingump "7/" 622436516
@setvar! necroSymbols 7
elseif ingump "6/" 622436516
@setvar! necroSymbols 6
elseif ingump "5/" 622436516
@setvar! necroSymbols 5
elseif ingump "4/" 622436516
@setvar! necroSymbols 4
elseif ingump "3/" 622436516
@setvar! necroSymbols 3
elseif ingump "2/" 622436516
@setvar! necroSymbols 2
elseif ingump "1/" 622436516
@setvar! necroSymbols 1
elseif ingump "0/" 622436516
@setvar! necroSymbols 0
endif
endif
endwhile
endif
if not varexist lichOne
@setvar! lichOne 0
endif
if not varexist lichTwo
@setvar! lichTwo 0
endif
if not varexist earthOne
@setvar! earthOne 0
endif
if not varexist earthTwo
@setvar! earthTwo 0
endif
if lichOne = creatureOne or lichTwo = creatureOne or earthOne = creatureOne or earthTwo = creatureOne
overhead "Duplicated"
unsetvar creatureOne
endif
if diffhits >= 30
if targetexists
hotkey 'Cancel Current Target'
endif
while not targetexists 'beneficial'
if diffhits >= 60
cast 'Heal'
else
cast 'Greater Heal'
endif
if skill "Swordsmanship" > 0 and findtype "cutlass|broadsword|scimitar|viking sword|longsword|katana" backpack as item
dclick item
wait minimumWaitForPing
endif
wait 50
if hp = maxhp
hotkey '> Interrupt'
break
endif
endwhile
if targetexists 'beneficial'
target self
endif
replay
endif
if castSummonEarthElementalCount > 0
if diffhits < 30
if followers = 0
@setvar! followCount 0
elseif followers = 1
@setvar! followCount 1
elseif followers = 2
@setvar! followCount 2
elseif followers = 3
@setvar! followCount 3
elseif followers = 4
@setvar! followCount 4
elseif followers = 5
@setvar! followCount 5
endif
if dead earthOne or not find earthOne ground -1 -1 12
if followers < 4
while mana < 50
if diffhits >= 30
replay
endif
if timer preventOverheadSpamTimer >= cdPreventOverheadSpam
overhead "waiting for mana" 88
settimer preventOverheadSpamTimer 0
endif
wait 200
endwhile
if castSummonEarthElementalAsMummy = 1
if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 50
yell "[VengefulSpirit"
settimer vengefulSpiritTimer 0
wait 500
endif
elseif timer vengefulSpiritTimer <= cdVengefulSpirit and skill "Necromancy" >= 50
overhead "Waiting for spirit to go away"
replay
endif
while followers = followCount
cast "Earth elemental"
wait 500
if timer witherTimer >= cdWither and skill "Necromancy" >= 95
yell "[Wither"
settimer witherTimer 0
endif
if diffhits >= 30
hotkey '> Interrupt'
break
endif
endwhile
if skill "Swordsmanship" > 0 and findtype "cutlass|broadsword|scimitar|viking sword|longsword|katana" backpack as item
dclick item
wait minimumWaitForPing
// 158 - an ancient mummy
// 14 - an earth elemental
if findtype 158|14 ground -1 -1 6 as myPet
if noto myPet = "friend" and list petNameList > 0
overhead "Renaming..."
foreach petName in petNameList
rename myPet petName
break
endfor
poplist petNameList "front"
endif
@setvar! earthOne myPet
say "all guard me"
replay
endif
endif
endif
endif
if diffhits < 30 and castSummonEarthElementalCount > 1
if followers = 0
@setvar! followCount 0
elseif followers = 1
@setvar! followCount 1
elseif followers = 2
@setvar! followCount 2
elseif followers = 3
@setvar! followCount 3
elseif followers = 4
@setvar! followCount 4
elseif followers = 5
@setvar! followCount 5
endif
if dead earthTwo or not find earthTwo ground -1 -1 12
if followers < 4
while mana < 50
if diffhits >= 30
replay
endif
if timer preventOverheadSpamTimer >= cdPreventOverheadSpam
overhead "waiting for mana" 88
settimer preventOverheadSpamTimer 0
endif
wait 200
endwhile
if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 50
yell "[VengefulSpirit"
settimer vengefulSpiritTimer 0
wait 500
endif
while followers = followCount
cast "Earth elemental"
wait 500
if timer witherTimer >= cdWither and skill "Necromancy" >= 95
yell "[Wither"
settimer witherTimer 0
endif
if diffhits >= 30
hotkey '> Interrupt'
break
endif
endwhile
if skill "Swordsmanship" > 0 and findtype "cutlass|broadsword|scimitar|viking sword|longsword|katana" backpack as item
dclick item
wait minimumWaitForPing
// 158 - an ancient mummy
// 14 - an earth elemental
if findtype 158|14 ground -1 -1 6 as myPet
if noto myPet = "friend" and list petNameList > 0
overhead "Renaming..."
foreach petName in petNameList
rename myPet petName
break
endfor
poplist petNameList "front"
endif
@setvar! earthTwo myPet
say "all guard me"
replay
endif
endif
endif
endif
endif
if castSummonFireElementalCount > 0
if diffhits < 30
if lichOne = 0
// do nothing
elseif lichOne = lichTwo
overhead "Duplicated"
unsetvar lichOne
endif
if followers = 0
@setvar! followCount 0
elseif followers = 1
@setvar! followCount 1
elseif followers = 2
@setvar! followCount 2
elseif followers = 3
@setvar! followCount 3
elseif followers = 4
@setvar! followCount 4
elseif followers = 5
@setvar! followCount 5
endif
if dead lichOne or not find lichOne ground -1 -1 12
if followers < 4
while mana < 50
if diffhits >= 30
replay
endif
if timer preventOverheadSpamTimer >= cdPreventOverheadSpam
overhead "waiting for mana" 88
settimer preventOverheadSpamTimer 0
endif
wait 200
endwhile
if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 50
yell "[VengefulSpirit"
settimer vengefulSpiritTimer 0
wait 500
endif
@ignore lichTwo
while followers = followCount
cast "fire elemental"
wait 500
if timer witherTimer >= cdWither and skill "Necromancy" >= 95
yell "[Wither"
settimer witherTimer 0
endif
if diffhits >= 30
hotkey '> Interrupt'
break
endif
endwhile
if skill "Swordsmanship" > 0 and findtype "cutlass|broadsword|scimitar|viking sword|longsword|katana" backpack as item
dclick item
wait minimumWaitForPing
// 24 - a lich
// 15 - a fire elemental
if findtype 24|15 ground -1 -1 6 as myPet
if noto myPet = "friend" and list petNameList > 0
overhead "Renaming..."
foreach petName in petNameList
rename myPet petName
break
endfor
poplist petNameList "front"
endif
@setvar! lichOne myPet
overhead "Lich One Set" 88 lichOne
say "all guard me"
@clearignore
replay
endif
endif
endif
endif
if diffhits < 30 and castSummonFireElementalCount > 1
if followers = 0
@setvar! followCount 0
elseif followers = 1
@setvar! followCount 1
elseif followers = 2
@setvar! followCount 2
elseif followers = 3
@setvar! followCount 3
elseif followers = 4
@setvar! followCount 4
elseif followers = 5
@setvar! followCount 5
endif
if dead lichTwo or not find lichTwo ground -1 -1 12
if followers < 4
while mana < 50
if diffhits >= 30
replay
endif
if timer preventOverheadSpamTimer >= cdPreventOverheadSpam
overhead "waiting for mana" 88
settimer preventOverheadSpamTimer 0
endif
wait 200
endwhile
if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 50
yell "[VengefulSpirit"
settimer vengefulSpiritTimer 0
wait 500
endif
@ignore lichOne
while followers = followCount
cast "fire elemental"
wait 500
if timer witherTimer >= cdWither and skill "Necromancy" >= 95
yell "[Wither"
settimer witherTimer 0
endif
if diffhits >= 30
hotkey '> Interrupt'
break
endif
endwhile
if skill "Swordsmanship" > 0 and findtype "cutlass|broadsword|scimitar|viking sword|longsword|katana" backpack as item
dclick item
wait minimumWaitForPing
// 24 - a lich
// 15 - a fire elemental
if findtype 24|15 ground -1 -1 6 as myPet
if noto myPet = "friend" and list petNameList > 0
overhead "Renaming..."
foreach petName in petNameList
rename myPet petName
break
endfor
poplist petNameList "front"
endif
@clearignore
@setvar! lichTwo myPet
overhead "Lich Two Set" 88 lichTwo
say "all guard me"
replay
endif
endif
endif
endif
endif
if castSummonCreatureCount = 0
// do nothing
elseif castSummonCreatureCount = 1 and not dead creatureOne
// do nothing
elseif castSummonCreatureCount = 1
if followers = 4 and diffhits < 30
if followers = 0
@setvar! followCount 0
elseif followers = 1
@setvar! followCount 1
elseif followers = 2
@setvar! followCount 2
elseif followers = 3
@setvar! followCount 3
elseif followers = 4
@setvar! followCount 4
elseif followers = 5
@setvar! followCount 5
endif
while mana < 14
if timer preventOverheadSpamTimer >= cdPreventOverheadSpam
overhead "waiting for mana" 88
settimer preventOverheadSpamTimer 0
endif
if diffhits >= 30
replay
endif
wait 200
endwhile
if timer vengefulSpiritTimer >= cdVengefulSpirit
yell "[VengefulSpirit"
settimer vengefulSpiritTimer 0
wait 200
endif
while followers = followCount
cast 'Summ. Creature'
wait 500
if diffhits >= 30
hotkey '> Interrupt'
replay
endif
endwhile
if skill "Swordsmanship" > 0 and findtype "cutlass|broadsword|scimitar|viking sword|longsword|katana" backpack as item
dclick item
wait minimumWaitForPing
say "all guard me"
endif
endif
else
for 6
if index = 0
// do nothing
else
if diffhits < 30
@setvar! needToSummon 0
if index = 1
if dead creatureOne or not find creatureOne ground -1 -1 12
@setvar! needToSummon 1
endif
elseif index = 2
if dead creatureTwo or not find creatureTwo ground -1 -1 12
@setvar! needToSummon 1
endif
elseif index = 3
if dead creatureThree or not find creatureThree ground -1 -1 12
@setvar! needToSummon 1
endif
elseif index = 4
if dead creatureFour or not find creatureFour ground -1 -1 12
@setvar! needToSummon 1
endif
elseif index = 5
if dead creatureFive or not find creatureFive ground -1 -1 12
@setvar! needToSummon 1
endif
endif
if needToSummon = 1
if followers = 0
@setvar! followCount 0
elseif followers = 1
@setvar! followCount 1
elseif followers = 2
@setvar! followCount 2
elseif followers = 3
@setvar! followCount 3
elseif followers = 4
@setvar! followCount 4
elseif followers = 5
@setvar! followCount 5
endif
while mana < 50
if diffhits >= 30
replay
endif
if timer preventOverheadSpamTimer >= cdPreventOverheadSpam
overhead "waiting for mana" 88
settimer preventOverheadSpamTimer 0
endif
wait 200
endwhile
if timer vengefulSpiritTimer >= cdVengefulSpirit and skill "Necromancy" >= 50
yell "[VengefulSpirit"
settimer vengefulSpiritTimer 0
wait 500
endif
hotkey 'Next Friendly Monster Target'
@setvar! checkLastTarget lasttarget
if checkLastTarget = earthOne
hotkey 'Next Friendly Monster Target'
@setvar! checkLastTarget lasttarget
endif
if checkLastTarget = earthTwo
hotkey 'Next Friendly Monster Target'
@setvar! checkLastTarget lasttarget
endif
if checkLastTarget = lichOne
hotkey 'Next Friendly Monster Target'
@setvar! checkLastTarget lasttarget
endif
if checkLastTarget = lichTwo
hotkey 'Next Friendly Monster Target'
@setvar! checkLastTarget lasttarget
endif
@setvar! creatureOne checkLastTarget
if find checkLastTarget ground -1 -1 6 as myPet
if noto myPet = "friend" and list petNameList > 0
overhead "Renaming..."
foreach petName in petNameList
rename myPet petName
break
endfor
poplist petNameList "front"
endif
if index = 1
if dead creatureOne or not find creatureOne ground -1 -1 12
@setvar! creatureOne myPet
endif
elseif index = 2
if dead creatureTwo or not find creatureTwo ground -1 -1 12
@setvar! creatureTwo myPet
endif
elseif index = 3
if dead creatureThree or not find creatureThree ground -1 -1 12
@setvar! creatureThree myPet
endif
elseif index = 4
if dead creatureFour or not find creatureFour ground -1 -1 12
@setvar! creatureFour myPet
endif
elseif index = 5
if dead creatureFive or not find creatureFive ground -1 -1 12
@setvar! creatureFive myPet
endif
endif
endif
endif
endif
endif
if index = castSummonCreatureCount
break
endif
endfor
endif
if castVampiricEmbrace = 1 and timer vampiricEmbraceTimer >= cdVampiricEmbrace and skill "Necromancy" >= 70 and findtype 8198 ground -1 -1 4 as jorpse
say "[VampiricEmbrace"
wft 500
target jorpse
settimer vampiricEmbraceTimer 0
cooldown VampiricEmbrace cdVampiricEmbrace
endif
loopThis is an edit to Jaseowns "Dexxer Bot" and "Mage" script. I copied and pasted from both, the lines that I felt I needed to make it work for my build. Known issues, re-equipping left hand weapon after casting "greater heal" doesn't work 100% of the time and it doesn't seem like it will use "cure" pots in order to cure poison.
What it does: Summons elementals automatically, even once they die/ Auto targeting/ Auto attack when within range/ Cast "Greater Heal" when life is low/ Cast necro abilities based on variables set.