# This is an automated backup - check out https://outlands.uorazorscripts.com/script/d7b317e9-8dc4-4ca0-a551-73bf27248b27 for latest # Automation by Jaseowns ## Script: PK Panic Button ## Created by: younggoudaboi#0 ############################################# #SUPPLIES: # Heal, cure, strength pots # Food # Chainmail chest # Poisoned katana # Trapped pouches #CHECK IF HIDDEN - WILL NOT EXECUTE SCRIPT IF HIDDEN if hidden overhead "Hidden!" stop endif #HEAL TIMERS clearsysmsg if not timerexists "healpot" createtimer "healpot" settimer "healpot" 11000 endif if not timerexists "warning" createtimer "warning" settimer "warning" 31000 endif if not timerexists "curepot" createtimer "curepot" settimer "curepot" 11000 endif #BATTLE MODE warmode 'on' if findtype "katana" backpack as item dclick item wait 150 endif target closest red if findtype "chainmail tunic" backpack as item dclick item wait 150 endif if findtype "white potion" backpack as pot dclick pot wait 150 endif if findtype "tray" backpack as food dclick food wait 150 endif #HEALING SCRIPT while not dead if insysmsg 'you cannot move' or insysmsg 'You must wait before using this command again' say '[pouch' endif if poisoned and timer 'curepot' > 11000 potion 'cure' wait 200 settimer 'curepot' 0 endif if not findtype 'Yellow Potion' backpack and timer 'warning' > 30000 overhead 'No heal pots!' 34 wait 200 settimer 'warning' 0 endif if hp < 100 if findtype "Yellow Potion" backpack if timer "healpot" > 11000 overhead 'Drinking heal!' wait 200 potion "heal" wait 200 settimer "healpot" 0 endif endif endif endif wait 100 endwhile