Modified Ultimate Dungeon Chest Crawler by DaKlue Added some features to Jaseowns script. Now uses band-aids while not hidden, Will use pots when not hidden, Will cast Invisibility If skill magery is greater than or equal to 80 when not…
MagicMageryHidingStealth
Modified Ultimate Dungeon Chest Crawler V07.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/1448424b-3307-4fd2-a19e-598979354fb3 for latest2# Automation by Jaseowns3## Script: Modified Ultimate Dungeon Chest Crawler V0.74## Created by: DaKlue#82015#############################################6 7#Modified Ultimate Dungeon Chest Crawler by DaKlue8#Added some features to Jaseowns script. 9#Now uses band-aids while not hidden, Will use pots when not hidden, Will cast Invisibility If skill magery is greater than or equal to 80 when not hidden and hiding is still on cool down. 10#Original script by 11# Ultimate Dungeon Chest Crawler by Jaseowns12# UO Outlands13# WIP - livestream https://youtu.be/hrIUbaB0SDk14// Go to dungeon and find a chest15// see if it loot16// see if it needs be opened17// move next18// handle hiding and healing19 20///ADJUSTABLE VARIABLES///21@setvar! automaticallyCastIvis 022@setvar! automaticallyHealSelf 123@setvar! globalTimeout 65024///ADJUSTABLE VARIABLES///25 26if not varexist isStealthing27 @setvar! isStealthing 028endif29 30if not varexist chestWeWannaWork31 @setvar! chestWeWannaWork 032endif33 34if not timerexists chestOpenTimer35 createtimer chestOpenTimer36 settimer chestOpenTimer 350037endif38 39if not timerexists secondsTimer40 createtimer secondsTimer41 settimer secondsTimer 350042endif43 44 45if not timerexists useSkillTimer46 createtimer useSkillTimer47 settimer useSkillTimer 1100048endif49 50if not timerexists messageHelperTimer51 createtimer messageHelperTimer52 settimer messageHelperTimer 1100053endif54 55if insysmsg 'world is saving'56 for 6057 overhead 'Waiting for world save...'58 wait 10059 if insysmsg 'save complete'60 overhead 'Save complete - continue on!' 8861 break62 endif63 endfor64endif65 66if dead 67 overhead "RIP" 3468 wait 500069 loop70endif71 72if automaticallyHealSelf = 1 and hp < 50 and not hidden or findbuff "Invisibility"73 //Healing with aids74 if hp < maxhp and not bandaging75 hotkey 'Bandage Self'76 endif77 78 // Trapped79 if paralyzed 80 if findtype "pouch" backpack 38 81 yell "[pouch"82 wait globalTimeout83 else84 overhead "Out of Pouches!" 3485 endif86 endif87 88 // Drink Cure pot89 if poisoned 90 if findtype "Orange Potion" backpack as jPot91 dclick jPot92 wait globalTimeout93 else94 overhead "Out of cure pots" 3495 endif96 endif97 98 // Drink Red pot99 if diffstam >= 5100 overhead "drink a red pot"101 if findtype "Red Potion" backpack as jPot102 dclick jPot103 wait globalTimeout104 else105 overhead "Out of refresh pots" 34106 endif107 endif108 109 // Drink Str pot110 if str < 100111 if not findbuff "Strength"112 if findtype "White Potion" backpack as jPot113 dclick jPot114 wait globalTimeout115 else116 overhead "Out of str pots" 34117 endif118 endif119 endif120 121 // Max Weight122 if weight > maxweight or findbuff "Strength"123 if findtype "gold coin" backpack as item124 lift item 2000125 droprelloc 0 0126 wait 200127 if insysmsg "cannot drop anything"128 drop backpack -1 -1 -1129 endif130 wait globalTimeout131 replay132 else133 overhead "We are overweight and cannot drop anything" 34134 endif135 endif136 137 // Heal Pot138 if hp < 50139 if findtype "Yellow Potion" backpack as jPot140 dclick jPot141 wait globalTimeout142 else143 overhead "Out of heals pots" 34144 endif145 endif146 147 if diffhits >= 60 and mana >= 12148 while not targetexists149 if diffhits >= 60150 cast 'Heal' 151 endif152 wait 50153 if hp = maxhp154 hotkey '> Interrupt'155 break156 endif157 endwhile158 if targetexists159 target self160 endif161 elseif diffhits >= 15 and mana >= 12162 while not targetexists163 cast 'Heal'164 wait 50165 if hp = maxhp166 hotkey '> Interrupt'167 break168 endif169 endwhile170 if targetexists171 target self172 endif173 endif174 175 if poisoned176 while not targetexists177 cast 'Cure'178 wait 50179 180 if not poisoned181 hotkey '> Interrupt'182 break183 endif184 endwhile185 if targetexists186 target self187 endif188 endif189endif190 191if not hidden or findbuff "Invisibility"192 if hp < maxhp and not bandaging193 hotkey 'Bandage Self'194 endif195 @setvar! isStealthing 0196 useskill 'hiding'197 wait 200198 if hidden199 overhead "Successfully hidden" 88200 settimer useSkillTimer 0201 endif202endif 203 204if automaticallyCastIvis = 1205 if not hidden or findbuff "Invisibility"206 @setvar! isStealthing 0207 useskill 'hiding'208 wait 200209 if hidden210 overhead "Successfully hidden" 88211 settimer useSkillTimer 0212 elseif not hidden or findbuff "Invisibility"213 if skill "Magery" >= 80214 overhead "Casting Invisability" 34215 cast 'Invisibility'216 wait 500217 if targetexists218 target self219 @setvar! isStealthing 0220 wait 200221 if findbuff "Invisibility" or hidden222 overhead "Successfully used Invisability" 34223 settimer useSkillTimer 0224 endif225 endif226 endif227 endif228 endif229endif230 231if timer messageHelperTimer >= 5000232 if findtype 3651|3649|3648|3650|3708|2475 ground -1 -1 16 as chest233 //gumpclose 736038070234 getlabel chest desc235 if "lock" in desc236 overhead "desc" 88237 settimer messageHelperTimer 0238 endif239 endif240endif241 242if timer useSkillTimer >= 11000 and isStealthing = 0243 @setvar! chestWeWannaWork 0244 overhead "Using Stealth"245 useskill 'Stealth'246 wait 200247 if insysmsg "You begin to move quietly"248 @setvar! isStealthing 1249 settimer useSkillTimer 0250 elseif insysmsg "You must wait a few moments to use another skill"251 overhead "Please wait.." 34252 elseif not hidden or insysmsg "You must hide first"253 if timer useSkillTimer >= 11000254 overhead "Need to hide first..."255 useskill 'hiding'256 wait 200257 if hidden258 settimer useSkillTimer 0259 endif260 endif261 endif262 elseif findtype 3651|3649|3648|3650|3708|2475 ground -1 -1 2 as chest263 264 if chestWeWannaWork = chest265 // do nothing266 else267 dclick chest268 wait 200269 @setvar! chestWeWannaWork chest270 endif271 272 if gumpexists 736038070273 sysmsg "Working chest..." 88274 if timer chestOpenTimer >= 3500275 if ingump "Cleared of Traps" 736038070276 if findtype "lockpicks" backpack as picky277 gumpresponse 4 736038070278 //dclick picky 279 //wft 500280 //target chest281 else 282 overhead "No lockpicks left!" 34283 endif284 else285 if findtype "drill" backpack as drilly286 gumpresponse 7 736038070287 wait 200288 if insysmsg "You do not have any trap tools of that material on hand."289 gumpresponse 5 736038070290 endif291 else 292 overhead "No trap tools left!" 34293 endif294 endif295 settimer chestOpenTimer 0296 endif297 wait 200298 else299 300 // Gold301 while find chest ground -1 -1 2 and findtype 24434|43206|29363|43166|22336|29348|17087|3985|8826|3827|29030|3836|5981|4248|5359|3839|3838|3843|2597|29036|48407|3834|3865|3859|3885|3856|3878|3877|3873|3861|3862|576|5123|7177|7027|3920|5131|5179|5075|3980|5060|5076|5042|10245|3938|3913|7169|3909|5063|5089|3981|7170|7033|3976|3762|5040|5103|5117|7181|7029|3568|6264|3742|5139|6263|7026|5125|3740|5121|3973|3974|5204|5105|5185|5078|5115|7175|5059|7034|3713|3915|5112|5070|5049|5119|5205|5046|3962|3934|7035|3911|7179|5106|5143|3573|3719|5177|7610|5181|3917|5132|3963|7031|5207|5056|5085|3763|5129|5187|3721|3972|5138|3570|5101|5061|5074|5142|5182|5146|6265|5090|5203|5044|5144|3932|5201|5127|3572|7173|5135|3937|3571|22326|27611|9917|3821|5356|8455|5362|45315|8454|22187|5901|7163|3617|3903|12686 chest as item302 getlabel item lootDesc303 overhead lootDesc304 wait 50305 hotkey 'Grab Item'306 target item307 while queued308 wait 50309 endwhile310 endwhile311 312 // Scrolls313 //while find chest ground -1 -1 2 and findtype 7981|7982|7983|7984|7985|7986|7987|7988|7989|7990|7991|7992|7993|7994|7995|7996|7997|7998|7999|8000|8001|8002|8003|8004|8005|8006|8007|8008|8009|8010|8011|8012|8013|8014|8015|8016|8017|8018|8019|8020|8021|8022|8023|8024|8025|8026|8027|8028|8029|8030|8031|8032|8033|8034|8035|8036|8037|8038|8039|8040|8041|8042|8033|8044 chest as item314 //getlabel item lootDesc315 //overhead lootDesc316 //wait 50317 //hotkey 'Grab Item'318 //target item319 //while queued320 //wait 50321 //endwhile322 //endwhile323 324 // Satchel325 if findtype "reagent satchel" self as satchel326 menu satchel 0327 wait 200328 endif329 330 // quiver331 if findtype 12215 self as satchel332 menu satchel 0333 wait 200334 endif335 endif336elseif timer useSkillTimer < 11500337 if not hidden338 @setvar! isStealthing 0339 endif340 341 // overhead "{{useSkillTimer}}"342 343 // we need to wait344 if timer useSkillTimer >= 10000 and timer secondsTimer >= 1000345 overhead "1 second remaining" 0346 settimer secondsTimer 0347 elseif timer useSkillTimer >= 9000 and timer secondsTimer >= 1000348 overhead "2 seconds remaining" 0349 settimer secondsTimer 0350 elseif timer useSkillTimer >= 8000 and timer secondsTimer >= 1000351 overhead "3 seconds remaining" 0352 settimer secondsTimer 0353 elseif timer useSkillTimer >= 7000 and timer secondsTimer >= 1000354 overhead "4 seconds remaining" 0355 settimer secondsTimer 0356 elseif timer useSkillTimer >= 6000 and timer secondsTimer >= 1000357 overhead "5 seconds remaining" 0358 settimer secondsTimer 0359 elseif timer useSkillTimer >= 5000 and timer secondsTimer >= 1000360 overhead "6 seconds remaining" 0 361 settimer secondsTimer 0362 elseif timer useSkillTimer >= 4000 and timer secondsTimer >= 1000363 overhead "7 seconds remaining" 0364 settimer secondsTimer 0365 elseif timer useSkillTimer >= 3000 and timer secondsTimer >= 1000366 overhead "8 seconds remaining" 0367 settimer secondsTimer 0368 elseif timer useSkillTimer >= 2000 and timer secondsTimer >= 1000369 overhead "9 seconds remaining" 0370 settimer secondsTimer 0371 elseif timer useSkillTimer >= 1000 and timer secondsTimer >= 1000372 overhead "10 seconds remaining" 0373 settimer secondsTimer 0374 endif375else376 if insysmsg! "You have 1 stealth steps remaining"377 overhead "JBot: Using Stealth" 1378 useskill 'Stealth'379 if insysmsg "You begin to move quietly"380 @setvar! isStealthing 1381 settimer useSkillTimer 0382 clearsysmsg 383 elseif insysmsg "You must wait a few moments to use another skill"384 overhead "Please wait.." 34385 // replay386 elseif not hidden or insysmsg "You must hide first"387 @setvar! isStealthing 0388 if timer useSkillTimer >= 11000389 useskill 'hiding'390 wait 200391 if hidden392 clearsysmsg 393 settimer useSkillTimer 0394 endif395 endif396 endif397 endif398 399endif400 401 402wait 200403loop