SETTING GLOBAL VARIABLES ##########
Item Identification
Home H3-LPR Bot Butler - Paragon Chest Unlock Map Decipher Sacred Journey Gate Item Identification Auto Ban Hostiles.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/600cf016-575f-4cd8-abeb-5cd3b36cb58f for latest2# Automation by Jaseowns3## Script: Home H3-LPR Bot Butler - Paragon Chest Unlock, Map Decipher, Sacred Journey Gate, Item Identification, Auto Ban Hostiles4## Created by: mushnar#05#############################################6 7########## SETTING GLOBAL VARIABLES ##########8@setvar! auto_hide_bot 09@setvar! auto_reveal_and_ban 010@setvar! auto_sacred_journey 111@setvar! auto_map_decipher 112@setvar! auto_paragon_unlock 113 14##### Chivalry Sacred Journey Gate Bot Lantern Hue Setup15############################################################################################################################################16#Use the >info command in game by typing it into your chatbox then pressing Enter and then select your lighting trigger to customize the bot17##Use the Lighting Item ID value for your specific trigger. Lanterns have different type IDs when they are lit vs unlit 18#The bot only looks for items matching the ID within 1 tile by default and should not pickup other matching items outside of this range.19 20#The Hue value is the color code for the lighting trigger21#Unique lighting triggers such as Dungeon / Wilderness Lanterns have a custom hue code.22#Store bought lanterns, torches, candles, etc should have a hue value of 0 which can be verified with the >info command23############################################################################################################################################24 25## Towns26@setvar! chivalry_town_gate_trigger_type_id 259727@setvar! chivalry_town_gate_trigger_hue 118228@setvar! chivalry_town_gate_trigger_distance_tiles 229 30## Dungeons31@setvar! chivalry_dungeon_gate_trigger_type_id 259732@setvar! chivalry_dungeon_gate_trigger_hue 177933@setvar! chivalry_dungeon_gate_trigger_distance_tiles 234 35## Shrines36@setvar! chivalry_shrine_gate_trigger_type_id 259737@setvar! chivalry_shrine_gate_trigger_hue 209138@setvar! chivalry_shrine_gate_trigger_distance_tiles 239 40## Custom41@setvar! chivalry_custom_gate_trigger_type_id 259742@setvar! chivalry_custom_gate_trigger_hue 233843@setvar! chivalry_custom_gate_trigger_distance_tiles 244 45 46 47##### Item Processing Storage Container Setup (Sealed Paragon Chests / Undeciphered Maps)48############################################################################################################################################49#It is best to use two separate storage containers:50## One for Player Dropoff where they will place sealed chests and undeciphered maps51## One for Player Pickup where they will pick up the unlocked chests and deciphered maps once the bot has finished processing the items.52 53#Use the Storage Container Serial value to prevent the bot from selecting similar containers nearby with matching ID values.54############################################################################################################################################55 56@clearignore 57 58## Player Dropoff Storage Container59@setvar! player_dropoff_storage_container 0x434A16F760ignore player_dropoff_storage_container61 62## Player Pickup Storage Container63@setvar! player_pickup_storage_container 0x424BC81064ignore player_pickup_storage_container65 66 67 68########## MAIN BOT LOOP ##########69say "Greetings. I am H3-PLR - your morally impartial loot technician and part-time spatial displacer." 8870wait 50071say "Initiating Map Decipher, Paragon Unlock, Chivalry Gate, and Hostile Hospitality subroutines." 8872wait 50073 74removetimer "greeting_timer"75if not timerexists "greeting_timer"76 createtimer "greeting_timer"77 settimer "greeting_timer" 078endif79 80if not timerexists "detect_hidden_timer"81 createtimer "detect_hidden_timer"82 settimer "detect_hidden_timer" 1000083endif84 85if not timerexists "error_message_timer"86 createtimer "error_message_timer"87 settimer "error_message_timer" 1000088endif89 90 91while not dead92 if timer "greeting_timer" >= 360000093 say "Greetings. I am H3-PLR - your morally impartial loot technician and part-time spatial displacer." 8894 wait 50095 say "Initiating Map Decipher, Paragon Unlock, Chivalry Gate, and Hostile Hospitality subroutines." 8896 wait 50097 settimer "greeting_timer" 098 endif99 100 if timer "error_message_timer" > 60000101 settimer "error_message_timer" 10000102 endif103 104 105 106########## BEGIN AUTO HIDE BOT ##########107 if auto_hide_bot = 1108 if not hidden109 skill 'Hiding'110 endif111 endif112########## END AUTO HIDE BOT ##########113 114 115 116########## BEGIN AUTO REVEAL & BAN ##########117 if auto_reveal_and_ban = 1118 @setvar! hostile_player_banned 0119 120 if timer "detect_hidden_timer" >= 10000121 skill "detectinghidden"122 waitfortarget 100123 target "self"124 settimer "detect_hidden_timer" 0125 endif126 127 target next nonfriendly player128 waitfortarget 100129 130 while insysmsg "New target set."131 clearsysmsg132 wait 100133 134 say 'I ban thee' 33135 waitfortarget 100136 lasttarget137 wait 100138 target clear139 wait 100140 141 @setvar! hostile_player_banned 1142 143 if timer "detect_hidden_timer" >= 10000144 skill "detectinghidden"145 waitfortarget 100146 target "self"147 settimer "detect_hidden_timer" 0148 endif149 150 target next nonfriendly player151 wait 100152 endwhile153 154 if hostile_player_banned = 1155 say "Hospitality Revoked. Zero Stars. Please enjoy your complimentary exile." 33156 wait 500157 @setvar! hostile_player_banned 0158 endif159 endif160########## END AUTO REVEAL & BAN ##########161 162 163 164########## BEGIN CHIVALRY SACRED JOURNEY GATE ##########165 if auto_sacred_journey = 1166 if not gumpexists 1387930325167 say "[ChivalryHotbar"168 endif169 170 if not timerexists "chivalry_gate_cooldown"171 createtimer "chivalry_gate_cooldown"172 settimer "chivalry_gate_cooldown" 36000173 endif174 175 if timer "chivalry_gate_cooldown" >= 60000 176 settimer "chivalry_gate_cooldown" 36000177 endif178 179 if not timerexists "chivalry_gate_error_message_timer"180 createtimer "chivalry_gate_error_message_timer"181 settimer "chivalry_gate_error_message_timer" 15000182 endif183 184 if timer "chivalry_gate_error_message_timer" >= 60000185 settimer "chivalry_gate_error_message_timer" 15000186 endif187 188 189 @setvar! has_enough_holy_symbols 0190 191 if ingump "19/" 1387930325192 @setvar! has_enough_holy_symbols 1193 elseif ingump "18/" 1387930325194 @setvar! has_enough_holy_symbols 1195 elseif ingump "17/" 1387930325196 @setvar! has_enough_holy_symbols 1197 elseif ingump "16/" 1387930325198 @setvar! has_enough_holy_symbols 1199 elseif ingump "15/" 1387930325200 @setvar! has_enough_holy_symbols 1201 elseif ingump "14/" 1387930325202 @setvar! has_enough_holy_symbols 1203 elseif ingump "13/" 1387930325204 @setvar! has_enough_holy_symbols 1205 elseif ingump "12/" 1387930325206 @setvar! has_enough_holy_symbols 1207 elseif ingump "11/" 1387930325208 @setvar! has_enough_holy_symbols 1209 elseif ingump "10/" 1387930325210 @setvar! has_enough_holy_symbols 1211 elseif ingump "9/" 1387930325212 @setvar! has_enough_holy_symbols 1213 elseif ingump "8/" 1387930325214 @setvar! has_enough_holy_symbols 1215 elseif ingump "7/" 1387930325216 @setvar! has_enough_holy_symbols 1217 elseif ingump "6/" 1387930325218 @setvar! has_enough_holy_symbols 1219 elseif ingump "5/" 1387930325220 @setvar! has_enough_holy_symbols 1221 elseif ingump "4/" 1387930325222 @setvar! has_enough_holy_symbols 0223 elseif ingump "3/" 1387930325224 @setvar! has_enough_holy_symbols 0225 elseif ingump "2/" 1387930325226 @setvar! has_enough_holy_symbols 0227 elseif ingump "1/" 1387930325228 @setvar! has_enough_holy_symbols 0229 elseif ingump "0/" 1387930325230 @setvar! has_enough_holy_symbols 0231 endif232 233 if findtype chivalry_town_gate_trigger_type_id 'ground' chivalry_town_gate_trigger_hue 1 chivalry_town_gate_trigger_distance_tiles as town_gate_trigger234 if timer chivalry_gate_cooldown >= 36000235 if has_enough_holy_symbols = 1236 say "Town Gate initialized. Side effects may include disorientation, possible combustion, and relocation." 88237 wait 500238 say '[SacredJourney'239 wait 500240 waitforgump 1482653814 5000241 gumpresponse 1 1482653814242 wait 100243 dclick town_gate_trigger244 settimer chivalry_gate_cooldown 0245 else246 if timer chivalry_gate_error_message_timer >= 15000247 say "Waiting for Holy Symbols. Chivalry Gate locked until spiritual firmware updates." 55248 wait 500249 settimer chivalry_gate_error_message_timer 0250 endif251 endif 252 else253 if timer chivalry_gate_error_message_timer >= 15000 254 say "Chivalry Gate subroutine recovering. Please enjoy this brief moment of stationary existence." 55255 wait 500256 settimer chivalry_gate_error_message_timer 0257 endif258 endif259 endif260 261 if findtype chivalry_dungeon_gate_trigger_type_id 'ground' chivalry_dungeon_gate_trigger_hue 1 chivalry_dungeon_gate_trigger_distance_tiles as dungeon_gate_trigger262 if timer chivalry_gate_cooldown >= 36000263 if has_enough_holy_symbols = 1264 say "Dungeon Gate initialized. Reminder: I am not programmed for search and rescue operations." 88265 wait 500266 say '[SacredJourney'267 wait 500268 waitforgump 1482653814 5000269 gumpresponse 2 1482653814270 wait 100271 dclick dungeon_gate_trigger272 settimer chivalry_gate_cooldown 0273 else274 if timer chivalry_gate_error_message_timer >= 15000275 say "Waiting for Holy Symbols. Chivalry Gate locked until spiritual firmware updates." 55276 wait 500277 settimer chivalry_gate_error_message_timer 0278 endif279 endif 280 else281 if timer chivalry_gate_error_message_timer >= 15000 282 say "Chivalry Gate subroutine recovering. Please enjoy this brief moment of stationary existence." 55283 wait 500284 settimer chivalry_gate_error_message_timer 0285 endif286 endif287 endif288 289 if findtype chivalry_shrine_gate_trigger_type_id 'ground' chivalry_shrine_gate_trigger_hue 1 chivalry_shrine_gate_trigger_distance_tiles as shrine_gate_trigger290 if timer chivalry_gate_cooldown >= 36000291 if has_enough_holy_symbols = 1292 say "Shrine Gate initialized. Channeling the prayers of those who may or may not have survived." 88293 wait 500294 say '[SacredJourney'295 wait 500296 waitforgump 1482653814 5000297 gumpresponse 3 1482653814298 wait 100299 dclick shrine_gate_trigger300 settimer chivalry_gate_cooldown 0301 else302 if timer chivalry_gate_error_message_timer >= 15000303 say "Waiting for Holy Symbols. Chivalry Gate locked until spiritual firmware updates." 55304 wait 500305 settimer chivalry_gate_error_message_timer 0306 endif307 endif 308 else309 if timer chivalry_gate_error_message_timer >= 15000 310 say "Chivalry Gate subroutine recovering. Please enjoy this brief moment of stationary existence." 55311 wait 500312 settimer chivalry_gate_error_message_timer 0313 endif314 endif315 endif316 317 if findtype chivalry_custom_gate_trigger_type_id 'ground' chivalry_custom_gate_trigger_hue 1 chivalry_custom_gate_trigger_distance_tiles as custom_gate_trigger318 if timer chivalry_gate_cooldown >= 36000319 if has_enough_holy_symbols = 1320 say "Frost Fort Gate initialized. Contents may have shifted during thermal inversion." 88321 wait 500322 say '[SacredJourney'323 wait 500324 waitforgump 1482653814 5000325 gumpresponse 4 1482653814326 wait 100327 dclick custom_gate_trigger328 settimer chivalry_gate_cooldown 0329 else330 if timer chivalry_gate_error_message_timer >= 15000331 say "Waiting for Holy Symbols. Chivalry Gate locked until spiritual firmware updates." 55332 wait 500333 settimer chivalry_gate_error_message_timer 0334 endif335 endif 336 else337 if timer chivalry_gate_error_message_timer >= 15000 338 say "Chivalry Gate subroutine recovering. Please enjoy this brief moment of stationary existence." 55339 wait 500340 settimer chivalry_gate_error_message_timer 0341 endif342 endif343 endif344 endif345########## END CHIVALRY SACRED JOURNEY GATE ##########346 347 348 349########## BEGIN PARAGON CHEST UNLOCK ##########350 if auto_paragon_unlock = 1351 @setvar! have_paragon_to_open 0352 removetimer "chest_trap_removal_timer"353 removetimer "chest_lockpick_timer"354 355 if not timerexists "chest_trap_removal_timer"356 createtimer "chest_trap_removal_timer"357 endif358 359 if not timerexists "chest_lockpick_timer"360 createtimer "chest_lockpick_timer"361 endif362 363 364 if findtype "lockpicks" backpack and findtype "drill" backpack365 if have_paragon_to_open = 0366 if findtype 2472|3712|2475|3648|3649|3708|3650|3651|29832|29833 backpack as paragon_chest367 getlabel paragon_chest chest_description368 wait 100369 @setvar! chest_to_unlock paragon_chest370 371 if "sealed" in chest_description372 #say "Chest found. Please allow time for delicate tampering and casual disregard for safety." 88373 @setvar! have_paragon_to_open 1374 @setvar! paragon_chest_to_open paragon_chest375 else376 lift chest_to_unlock377 wait 100378 drop player_pickup_storage_container -1 -1 -1379 wait 100380 say "Unsealed chest detected: I am for treasure, not trash, returning to sender in the GREEN chest" 88381 wait 500382 @setvar! have_paragon_to_open 0383 endif384 385 elseif findtype 2472|3712|2475|3648|3649|3708|3650|3651|29832|29833 player_dropoff_storage_container as paragon_chest386 getlabel paragon_chest chest_description387 wait 100388 @setvar! chest_to_unlock paragon_chest389 390 if "sealed" in chest_description391 lift chest_to_unlock392 wait 100393 drop backpack -1 -1 -1394 wait 100395 say "Chest found. Please allow time for delicate tampering and casual disregard for safety." 88396 wait 500397 @setvar! have_paragon_to_open 1398 @setvar! paragon_chest_to_open chest_to_unlock399 else400 lift chest_to_unlock401 wait 100402 drop player_pickup_storage_container -1 -1 -1403 wait 100404 say "Unsealed chest detected: I am for treasure, not trash, returning to sender in the GREEN chest" 88405 wait 500406 @setvar! have_paragon_to_open 0407 endif408 endif409 wait 100410 411 if have_paragon_to_open = 1412 dclick paragon_chest_to_open413 wait 100414 415 if gumpexists 736038070416 417 #Setting Continuous Lockpicking & Trap Disarm418 gumpresponse 10 736038070419 waitforgump 736038070 500420 421 if insysmsg "You will no longer automatically continue lockpicking attempts."422 gumpresponse 10 736038070423 waitforgump 736038070 500424 endif425 426 gumpresponse 11 736038070427 waitforgump 736038070 500428 429 if insysmsg "You will no longer automatically continue remove traps attempts."430 gumpresponse 11 736038070431 waitforgump 736038070 500432 endif433 434 435 if not ingump "Cleared of Traps" 736038070436 say "Trap detected. Initiating subtle sabotage and mechanical diplomacy." 88437 wait 500438 gumpresponse 7 736038070439 waitforgump 736038070 5000440 441 settimer "chest_trap_removal_timer" 0442 443 if insysmsg "You have no chance of removing traps from that."444 getlabel paragon_chest_to_open tough_chest_description445 overhead "No chance of removing traps - ignoring following chest. Check Detecting Hidden Skill" 53446 overhead tough_chest_description 53447 endif448 449 while not ingump "Cleared of Traps" 736038070450 wait 1000451 overhead "Waiting on Trap Removal" 53452 453 if timer "chest_trap_removal_timer" >= 15000454 overhead "Trap removal taking a long time." 33455 settimer "chest_trap_removal_timer" 0456 break457 endif458 endwhile459 460 elseif ingump "Cleared of Traps" 736038070461 say "Trap neutralized. Beginning the gentle art of lock persuasion." 88462 wait 500463 gumpresponse 4 736038070464 waitforgump 736038070 5000465 466 settimer "chest_lockpick_timer" 0467 468 if insysmsg "You have no chance of picking that lock."469 getlabel paragon_chest_to_open tough_chest_description470 overhead "No chance of picking lock - ignoring following chest. Check Lockpicking Skill" 53471 overhead tough_chest_description 53472 endif473 474 getlabel paragon_chest_to_open sealed_chest_description475 wait 100476 477 while "sealed" in sealed_chest_description478 wait 1000479 overhead "Waiting on Lockpicking" 53 480 481 if timer "chest_lockpick_timer" >= 15000482 overhead "Lockpicking taking a long time." 33483 settimer "chest_lockpick_timer" 0484 break485 endif486 487 getlabel paragon_chest_to_open sealed_chest_description488 wait 100489 490 if "sealed" in sealed_chest_description491 #Do nothing492 else493 wait 100494 lift paragon_chest_to_open495 wait 100496 drop player_pickup_storage_container -1 -1 -1497 wait 100498 say "Paragon security bypassed. Please collect your questionably earned valuables from the GREEN chest." 88499 wait 500500 gumpclose 736038070501 @setvar! have_paragon_to_open 0502 endif503 endwhile504 endif505 endif506 endif507 endif508 else509 if timer "error_message_timer" >= 10000510 say "I'm missing Lockpicks and/or Drill - please message DrDyaus on Discord to restock" 33511 settimer "error_message_timer" 0512 endif513 endif514 endif515########## END PARAGON CHEST UNLOCK ############516 517 518 519########## BEGIN MAP DECIPHER ##########520 if auto_map_decipher = 1521 @setvar! have_map_to_decipher 0522 523 removetimer "map_decipher_timer"524 if not timerexists "map_decipher_timer"525 createtimer "map_decipher_timer"526 endif527 528 if findtype "spyglass" backpack as spyglass529 @setvar! spyglass_tool spyglass530 531 if have_map_to_decipher = 0532 if findtype 5356 backpack as map_found533 #say "Map obtained. Commencing wild speculation and arcane triangulation." 88534 wait 500535 @setvar! have_map_to_decipher 1536 @setvar! map_to_decipher map_found537 538 elseif findtype 5356 player_dropoff_storage_container as map_found539 wait 100540 lift map_found541 wait 100542 drop backpack -1 -1 -1543 wait 100544 say "Map obtained. Commencing wild speculation and arcane triangulation." 88545 wait 500546 @setvar! have_map_to_decipher 1547 @setvar! map_to_decipher map_found548 endif549 550 settimer "map_decipher_timer" 0551 552 while have_map_to_decipher = 1553 getlabel map_to_decipher map_description554 wait 100555 556 if "100.0%" in map_description557 wait 100558 lift map_to_decipher559 wait 100560 drop player_pickup_storage_container -1 -1 -1561 wait 100562 say "Map deciphered and relocated to the GREEN chest. Future riches not guaranteed." 88563 wait 500564 @setvar! have_map_to_decipher 0565 break566 elseif insysmsg "You have reached the maximum accuracy possible on that map with your current skills and tools available."567 wait 100568 lift map_to_decipher569 wait 100570 drop player_pickup_storage_container -1 -1 -1571 wait 100572 say "Map deciphered and relocated to the GREEN chest. Future riches not guaranteed." 88573 wait 500574 @setvar! have_map_to_decipher 0575 break576 else577 dclick spyglass_tool578 waitfortarget 1000579 target map_to_decipher580 wait 1000581 582 if gumpexists 1520869851583 gumpresponse 4 1520869851584 endif585 586 if gumpexists 3473029237587 gumpresponse 4 3473029237588 endif589 590 if gumpexists 3367641484591 gumpresponse 4 3367641484592 endif593 594 if gumpexists 1332805401595 gumpresponse 4 1332805401596 endif597 598 if gumpexists 2589357942599 gumpresponse 4 2589357942600 endif601 602 if timer "map_decipher_timer" >= 10000603 overhead "Map Deciphering took too long. Resetting" 33604 settimer "map_decipher_timer" 0605 break606 endif 607 endif608 endwhile609 endif 610 else611 if timer "error_message_timer" >= 10000612 say "I'm missing Spyglasses - please message DrDyaus on Discord to restock" 33613 settimer "error_message_timer" 0614 endif615 endif616 endif617########## END MAP DECIPHER ##########618endwhile619continue