Omni-MirrRodSphere by montie1123
Description from the author:
overhead "Auto Omni Activated" 88
#Config
@setvar! jaseowns_UseAbility1 0
@setvar! jaseowns_UseAbility2 0
@setvar! jaseowns_UseAbility3 1
@setvar! jaseowns_UseAbilityTimerCD 3000
@setvar! automaticallyDrinkStrPot 1
@setvar! automaticallyDrinkAgiPot 1
@setvar! automaticallyDrinkMagicPot 1
@setvar! drinkThosePots 1
@setvar! globalTimeout 600
@setvar! automaticallyDrinkRefreshPot 1
@setvar! stamDiffCheckToTriggerRedPotion 15
#Start of Script
if not timerexists jaseowns_UseAbility1Timer
settimer jaseowns_UseAbility1Timer 30000
endif
if not timerexists jaseowns_UseAbility2Timer
settimer jaseowns_UseAbility2Timer 30000
endif
if not timerexists jaseowns_UseAbility3Timer
settimer jaseowns_UseAbility3Timer 30000
endif
if not timerexists 'Chivalry7'
createtimer 'Chivalry7'
settimer 'Chivalry7' 31000
endif
if not timerexists 'Chivalry10'
createtimer 'Chivalry10'
settimer 'Chivalry10' 31000
endif
while not dead
# SE ALIMENTA
if not findbuff "Food Satisfaction"
if findtype 'tray' backpack
overhead '[Se Alimentado]' 77
dclicktype 'tray'
wait 300
endif
endif
# Bandages
if skill 'Healing' >= 80 and hp < maxhp and findtype "clean bandage%s%" backpack and not bandaging
hotkey 'Bandage Self'
elseif skill 'Healing' >= 80 and not findtype "clean bandage%s%" backpack
overhead "No bandages"
endif
# Heal pot
if hp <= 80 and findtype "Yellow Potion" backpack as pot
getlabel pot healPotDesc
if "next usable" in healPotDesc
//do nothing
else
dclick pot
overhead "Heal pot drank"
endif
endif
# Refresh pot
if automaticallyDrinkRefreshPot = 1 and diffstam >= stamDiffCheckToTriggerRedPotion
if findtype "Red Potion" self as jotion
overhead "Refresh Potion"
dclick jotion
wait globalTimeout
else
overhead "No Refresh potion found!" 34
endif
endif
# (CHIVALRY 7) HEAL
if timer 'Chivalry7' > 31000 and hits < 40
say '[chivalry7'
wait 300
if insysmsg 'Whom do you wish'
target self
settimer 'Chivalry7' 0
endif
endif
# (CHIVALRY 10) HEAL
if timer 'Chivalry10' > 31000 and hits < 30
overhead '[TENTANDO HEALL COM CHIVALRY]' 77
say '[chivalry10'
wait 500
settimer 'Chivalry10' 0
endif
# Kill Rods!!
if findtype 51044|31813|37867|63613|63609|37461|47189|37481|28185 ground -1 -1 2 as MirrRodSphere
dclick MirrRodSphere
ignore MirrRodSphere
endif
# Omni Attack
if findtype 'a rift daemon|a lesser rift daemon|an astral projection|a rift cultist|a rift warrior|a rift footman' ground any any 12 as myTarget
attack myTarget
#Weapon Skill
if jaseowns_UseAbility1 = 1 and timer jaseowns_UseAbility1Timer >= jaseowns_UseAbilityTimerCD
say "[WeaponAbility1"
getlabel backpack jaseowns_PingCheck
if insysmsg "You do cannot perform that ability yet."
settimer jaseowns_UseAbility1Timer 0
elseif insysmsg "You have not yet unlocked that weapon ability."
@setvar! jaseowns_UseAbility1 0
else
settimer jaseowns_UseAbility1Timer 0
endif
endif
if jaseowns_UseAbility2 = 1 and timer jaseowns_UseAbility2Timer >= jaseowns_UseAbilityTimerCD
say "[WeaponAbility2"
getlabel backpack jaseowns_PingCheck
if insysmsg "You do cannot perform that ability yet."
settimer jaseowns_UseAbility2Timer 0
elseif insysmsg "You have not yet unlocked that weapon ability."
@setvar! jaseowns_UseAbility2 0
else
settimer jaseowns_UseAbility2Timer 0
endif
endif
if jaseowns_UseAbility3 = 1 and timer jaseowns_UseAbility3Timer >= jaseowns_UseAbilityTimerCD
say "[WeaponAbility3"
getlabel backpack jaseowns_PingCheck
if insysmsg "You do cannot perform that ability yet."
settimer jaseowns_UseAbility3Timer 0
elseif insysmsg "You have not yet unlocked that weapon ability."
@setvar! jaseowns_UseAbility3 0
else
settimer jaseowns_UseAbility3Timer 0
endif
endif
endif
# Buff Potions
@setvar! needStrBuff 0
@setvar! needDexBuff 0
@setvar! needMagicBuff 0
if automaticallyDrinkStrPot = 1 and drinkThosePots = 1 and not findbuff "Strength"
@setvar! needStrBuff 1
endif
if automaticallyDrinkAgiPot = 1 and drinkThosePots = 1 and not findbuff "Agility"
@setvar! needDexBuff 1
endif
if automaticallyDrinkMagicPot = 1 and drinkThosePots = 1 and not findbuff "Magic Resist Potion"
@setvar! needMagicBuff 1
endif
if needStrBuff = 1 and not findtype "White Potion" self
@setvar! needStrBuff 0
endif
if needDexBuff = 1 and not findtype "Blue Potion" self
@setvar! needDexBuff 0
endif
if needMagicBuff = 1 and not findtype "Black Potion" self
@setvar! needMagicBuff 0
endif
if needStrBuff = 1
if findtype "White Potion" self as jotion
overhead "Strength Potion"
dclick jotion
wait globalTimeout
else
overhead "No STR potion found!" 34
endif
endif
if needDexBuff = 1
if findtype "Blue Potion" self as jotion
overhead "Agility Potion"
dclick jotion
wait globalTimeout
else
overhead "No AGI potion found!" 34
endif
endif
if needMagicBuff = 1
if findtype "Black Potion" self as jotion
overhead "Resist Potion"
dclick jotion
wait globalTimeout
else
overhead "No MR potion found!" 34
endif
endif
endwhile
while dead
if gumpexists 2957810225
gumpresponse 1 2957810225
break
endif
overhead 'rip'
wait 1000
endwhileDouble clicks on Mirrors Rds and Sphere when next to. Auto targets adds in Omni








