dexxerPoisonWeapon.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/e1c82bc7-902f-412c-9c92-39c63e402bcc for latest2# Automation by Jaseowns3## Script: dexxerPoisonWeapon4## Created by: tarouca#05#############################################6 7@setvar lagTimer_ 5008 9@setvar usingShelf_ 010if findtype "storage shelf" ground -1 -1 3 as myShelf__11 @setvar myShelf_ myShelf__12 @setvar usingShelf_ 113endif14@setvar usingStockPile_ 015if findtype "resource container" ground -1 -1 3 as myStockPile__16 @setvar myStockPile_ myStockPile__17 @setvar usingStockPile_ 118endif19@setvar usingAlchemistBag_ 020if findtype "alchemists satchel" self as myAlchemistBag__21 @setvar myAlchemistBag_ myAlchemistBag__22 @setvar usingAlchemistBag_ 123 if not find myAlchemistBag_ backpack24 lift myAlchemistBag_25 drop backpack26 endif27 dclick myAlchemistBag_28 wait lagTimer_29endif30 31@setvar weaponFound_ 032while weaponFound_ = 033 if findlayer self righthand as weaponToApply__34 @setvar weaponToApply_ weaponToApply__35 overhead "FOUND WEAPON"36 @setvar weaponFound_ 137 else 38 overhead "EQUIP WEAPON TO POISON" 4839 overhead "I'LL WAIT 3 SECONDS" 4840 wait lagTimer_41 wait lagTimer_42 endif43endwhile44 45if not timerexists "cureTimer_"46 createtimer "cureTimer_"47 settimer "cureTimer_" 9999948endif49if not timerexists "healTimer_"50 createtimer "healTimer_"51 settimer "healTimer_" 9999952endif53if not timerexists "poisonTimer_"54 createtimer "poisonTimer_"55 settimer "poisonTimer_" 9999956endif57 58 59overhead "WAIT FOR: WEAPON POISONED" 4860 61@setvar keepGoing_ 162while keepGoing_ = 163 if not poisoned64 getlabel weaponToApply_ myWeaponLabel_65 if "10 lethal" in myWeaponLabel_66 if ".10 lethal" in myWeaponLabel_67 else68 @setvar keepGoing_ 069 endif70 if keepGoing_ = 071 overhead "WEAPON POISONED"72 if usingShelf_ = 1 and find myShelf_ ground -1 -1 373 menu myShelf_ 174 wait lagTimer_75 if usingStockPile_ = 1 and findtype 3854 backpack 0 as emptyBottle_76 menu myStockPile_ 077 waitfortarget78 target emptyBottle_79 wait lagTimer_80 endif81 elseif usingShelf_ = 082 overhead "NOT USING SHELF" 4883 else84 overhead "NOT NEAR SHEFL" 4885 endif86 stop87 endif88 endif89 endif90 if not poisoned and timer "poisonTimer_" > 510091 @setvar needToRestock_ 092 @setvar foundTargetPot_ 093 if usingAlchemistBag_ = 1 and findtype "Green Potion" myAlchemistBag_94 @setvar foundTargetPot_ 195 elseif findtype "Green Potion" backpack96 @setvar foundTargetPot_ 197 endif98 if foundTargetPot_ = 199 menu weaponToApply_ 0100 settimer "poisonTimer_" 0101 else 102 @setvar needToRestock_ 1103 endif104 if needToRestock_ = 1 105 if usingShelf_ = 1 and find myShelf_ ground -1 -1 3106 menu myShelf_ 1107 wait lagTimer_108 else 109 overhead "NO POISON" 38110 overhead "NOT NEAR/USING SHELF" 38111 endif112 endif113 endif114 115 if poisoned and timer "cureTimer_" > 3000116 @setvar needToRestock_ 0117 @setvar foundTargetPot_ 0118 if usingAlchemistBag_ = 1 and findtype "Orange Potion" myAlchemistBag_ as pot_119 @setvar foundTargetPot_ 1120 elseif findtype "Orange Potion" backpack as pot_121 @setvar foundTargetPot_ 1122 endif123 if foundTargetPot_ = 1124 dclick pot_125 settimer "cureTimer_" 0126 else 127 @setvar needToRestock_ 1128 endif129 if needToRestock_ = 1130 if usingShelf_ = 1 and find myShelf_ ground -1 -1 3131 menu myShelf_ 1132 wait lagTimer_133 else134 overhead "NO CURE" 38135 overhead "NOT NEAR/USING SHELF" 38136 endif137 endif138 endif139 140 if hp < maxhp141 @setvar needToRestock_ 0142 @setvar foundTargetPot_ 0143 if not bandaging144 if findtype "clean bandage%s%" backpack 145 hotkey "Bandage Self"146 else147 @setvar needToRestock_ 1148 endif149 endif150 if hp < 60151 if timer "healTimer_" > 11000152 if usingAlchemistBag_ = 1 and findtype "Yellow Potion" myAlchemistBag_ as pot_153 @setvar foundTargetPot_ 1154 elseif findtype "Yellow Potion" backpack as pot_155 @setvar foundTargetPot_ 1156 endif157 if foundTargetPot_ = 1158 dclick pot_159 settimer "healTimer_" 0160 else 161 @setvar needToRestock_ 1162 endif163 endif164 endif165 if needToRestock_ = 1166 if usingShelf_ = 1 and find myShelf_ ground -1 -1 3167 menu myShelf_ 1168 wait lagTimer_169 else170 overhead "NO HEAL" 38171 overhead "NOT NEAR/USING SHELF" 38172 endif173 endif 174 endif175endwhile