Skip to content
Outlands Hub

Razor script

Boss Loot Organizer Bot

by oakman8490 · 517 lines
Download

"Oaks [KoU] Boss Loot Organizer Bot" This Script has been set up to be used by a bot (preferably with 120 Item ID) to organize and recycle on a loop during Guild Boss Runs

CombatOrganizingItem Identification
Boss Loot Organizer Bot.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/3c0e26e4-9207-4b14-990c-0015761badd7 for latest2# Automation by Jaseowns3## Script: Boss Loot Organizer Bot4## Created by: oakman8490#05#############################################6 7// "Oaks [KoU] Boss Loot Organizer Bot"8// This Script has been set up to be used by a bot (preferably with 120 Item ID) to organize and recycle on a loop during Guild Boss Runs9 10// Has been set up to use 4 different chests, but more could be added with a little effort.11/// 1: High Value Loot - Cores, Skill Scrolls, Explorer Packs, MCD, Redline Bottle, Skill Orbs12/// 2: Medium Value Loot - Distillations, Phylacteries, Carpet, Dyes, Cloth, Harvest Maps13/// 3: Low Value Loot (mostly stackables) - Arcane Scrolls, Plant Chemicals, Gold14/// 4: Officer Loot - Boss Tokens, Treasure Maps, Research Materials15// Bot will need access to all the chests, so if some are officer only, the bot will need those privileges.    16 17// Set variables for the Distribution Chests18@setvar! 'DistroChest1' "0x5FFBCB5B"19@setvar! 'DistroChest2' "0x5FFBB94C"20@setvar! 'DistroChest3' "0x5FFBBF48"21@setvar! 'DistroChest4' "0x42884825"22 23// Set variables for the Magic Item Recyclers24@setvar! 'MagicRecycler1' "0x5FFBDD03"25@setvar! 'MagicRecycler2' "0x41C3AE90"26@setvar! 'MagicRecycler3' "0x5FFBD815"27@setvar! 'MagicRecycler4' "0x4288510F"28 29// Create item lists if they dont exist30if not listexists 'items'31    createlist 'items'32endif33if not listexists 'aspects'34    createlist 'aspects'35endif36if not listexists 'skillscrolls'37    createlist 'skillscrolls'38endif39// Clear any existing item lists40clearlist 'items'41clearlist 'aspects'42clearlist 'skillscrolls'43 44@setvar! CurrentChest DistroChest145@setvar! CurrentRecycler MagicRecycler146@setvar minwait 20047 48 49@dclick DistroChest150waitforgump 286566742351gumpclose 2865667423 52@dclick DistroChest253waitforgump 286566742354gumpclose 2865667423 55@dclick DistroChest356waitforgump 286566742357gumpclose 2865667423 58@dclick DistroChest459waitforgump 286566742360gumpclose 2865667423 61 62 63while not dead64  65// Loot Items not to stack 66pushlist 'items' 'aspect core'67pushlist 'items' 'flask'68pushlist 'items' 'Book of Truth'69pushlist 'items' 'scroll of calling'70pushlist 'items' 'map'71pushlist 'items' 'void orb'72pushlist 'items' 'spell hue deed'73pushlist 'items' 'carpet'74pushlist 'items' 'redline bottle'75pushlist 'items' 'folded cloth'76pushlist 'items' 'phylactery'77pushlist 'items' 'chroma core'78pushlist 'items' 'chroma distil'79pushlist 'items' 'research materials'80pushlist 'items' 'blank scroll%s%'81pushlist 'items' 'bottle'82pushlist 'items' 'gold coin'83pushlist 'items' 'cut up leather'84pushlist 'items' 'boss token'85pushlist 'items' 'statue'86pushlist 'items' 'dig tools'87pushlist 'items' 'dungeon seed'88pushlist 'items' 'strong box'89pushlist 'items' 'metal chest'90pushlist 'items' 'chest'91pushlist 'items' 'parchment'92pushlist 'items' 'sandals'93pushlist 'items' 'boots'94pushlist 'items' 'shoes'95pushlist 'items' 'dye bottle'96pushlist 'items' 'seed of renewal'97pushlist 'aspects' 'chroma core'98pushlist 'aspects' 'chroma distil'99pushlist 'aspects' 'aspect core'100pushlist 'aspects' 'flask'101pushlist 'aspects' 'phylactery'102pushlist 'skillscrolls' 'scroll of calling'103 104    foreach item in 'items'105        while findtype item CurrentChest106            if findtype item CurrentChest as found107                getlabel found iname108                overhead iname109                if inlist 'aspects' 'item'110                    if hue 'found' = 2263111                    @setvar! xAxis 21112                    elseif hue 'found' = 1560113                        @setvar! xAxis 24114                    elseif hue 'found' = 2096115                        @setvar! xAxis 27116                    elseif hue 'found' = 2087117                        @setvar! xAxis 30118                    elseif hue 'found' = 1428119                        @setvar! xAxis 33120                    elseif hue 'found' = 1782121                        @setvar! xAxis 33                       122                    elseif hue 'found' = 2155123                        @setvar! xAxis 36124                    elseif hue 'found' = 2490125                        @setvar! xAxis 39126                    elseif hue 'found' = 2767127                        @setvar! xAxis 42128                    elseif hue 'found' = 2615129                        @setvar! xAxis 45130                    elseif hue 'found' = 2618131                        @setvar! xAxis 45                    132                    elseif hue 'found' = 2635133                        @setvar! xAxis 48134                    elseif hue 'found' = 2843135                        @setvar! xAxis 51136                    elseif hue 'found' = 2669137                        @setvar! xAxis 54138                    elseif hue 'found' = 2208139                        @setvar! xAxis 57  140                    elseif hue 'found' = 2086141                        @setvar! xAxis 57                     142                    elseif hue 'found' = 2153143                        @setvar! xAxis 60 144                    elseif hue 'found' = 2650145                        @setvar! xAxis 63 146                    elseif hue 'found' = 2241147                        @setvar! xAxis 66 148                    elseif hue 'found' = 1060149                        @setvar! xAxis 69 150                    elseif hue 'found' = 2897151                        @setvar! xAxis 72 152                    elseif hue 'found' = 1790153                        @setvar! xAxis 75 154                    elseif hue 'found' = 1757155                        @setvar! xAxis 75                     156                    elseif hue 'found' = 2582157                        @setvar! xAxis 78 158                    elseif hue 'found' = 2599159                        @setvar! xAxis 78                     160                    elseif hue 'found' = 2592161                        @setvar! xAxis 81162                    elseif hue 'found' = 1788163                        @setvar! xAxis 81                     164                    elseif hue 'found' = 2503165                        @setvar! xAxis 84   166                    elseif hue 'found' = 2234167                        @setvar! xAxis 87  168                    elseif hue 'found' = 0169                        @setvar! xAxis 100                 170                    else 171                        @setvar! xAxis 110172                    endif173                elseif inlist 'skillscrolls' 'item'174                    if "alchemy" in iname175                        @setvar! xAxis 20176                    elseif "animal lore" in iname177                        @setvar! xAxis 22178                    elseif "animal taming" in iname179                        @setvar! xAxis 24180                    elseif "arms" in iname181                        @setvar! xAxis 26182                    elseif "begging" in iname183                        @setvar! xAxis 28184                    elseif "blacksmith" in iname185                        @setvar! xAxis 30186                    elseif "camping" in iname187                        @setvar! xAxis 32188                    elseif "carpentry" in iname189                        @setvar! xAxis 34190                    elseif "cartography" in iname191                        @setvar! xAxis 36192                    elseif "chivalry" in iname193                        @setvar! xAxis 38194                    elseif "cooking" in iname195                        @setvar! xAxis 40196                    elseif "detect" in iname197                        @setvar! xAxis 42198                    elseif "discordance" in iname199                        @setvar! xAxis 44200                    elseif "fishing" in iname201                        @setvar! xAxis 46202                    elseif "forensic" in iname203                        @setvar! xAxis 48204                    elseif "herding" in iname205                        @setvar! xAxis 50206                    elseif "inscription" in iname207                        @setvar! xAxis 52208                    elseif "item id" in iname209                        @setvar! xAxis 54210                    elseif "lockpicking" in iname211                        @setvar! xAxis 56212                    elseif "lumberjacking" in iname213                        @setvar! xAxis 58214                    elseif "mining" in iname215                        @setvar! xAxis 60216                    elseif "musicianship" in iname217                        @setvar! xAxis 62218                    elseif "necro" in iname219                        @setvar! xAxis 64220                    elseif "peacemaking" in iname221                        @setvar! xAxis 66222                    elseif "poisoning" in iname223                        @setvar! xAxis 68224                    elseif "provocation" in iname225                        @setvar! xAxis 70226                    elseif "spirit" in iname227                        @setvar! xAxis 72228                    elseif "stealth" in iname229                        @setvar! xAxis 74230                    elseif "tailoring" in iname231                        @setvar! xAxis 76   232                    elseif "taste" in iname233                        @setvar! xAxis 78  234                    elseif "tinkering" in iname235                        @setvar! xAxis 80 236                    elseif "tracking" in iname237                        @setvar! xAxis 82 238                    elseif "veterinary" in iname239                        @setvar! xAxis 84 240                    else 241                        @setvar! xAxis 110242                    endif243                endif244 245                246                if "research" in iname247                    lift found 60000248                    drop 'DistroChest4'  -1 -1 -1249                    wait minwait250                    lift found 60000251                    drop 'DistroChest4' 60 1 1252                    @ignore found253 254                elseif "oil" in iname255                    @ignore found256 257                elseif "plant chemicals" in iname258                    lift found 60000259                    drop 'DistroChest3' -1 -1 -1260                    wait minwait261                    lift found 60000262                    drop 'DistroChest3' 100 142 1263                    @ignore found264 265                elseif "arcane scroll" in iname266                    lift found 60000267                    drop 'DistroChest3' -1 -1 -1268                    wait minwait269                    lift found 60000270                    drop 'DistroChest3' 118 146 1271                    @ignore found                    272 273                elseif "coin" in iname274                    lift found 60000275                    drop 'DistroChest3' -1 -1 -1276                    wait minwait277                    lift found 60000278                    drop 'DistroChest3' 1 1 1279                    @ignore found280                    281                elseif "treasure map" in iname282                    lift found283                    drop 'DistroChest4' 150 175 1  284                    @ignore found285 286                elseif "skinning map" in iname287                    lift found288                    drop 'DistroChest2' 120 110 1289                    @ignore found290                    291                elseif "ore map" in iname292                    lift found293                    drop 'DistroChest2' 120 120 1294                    @ignore found295 296                elseif "lumber map" in iname297                    lift found298                    drop 'DistroChest2' 120 130 1299                    @ignore found300 301                elseif "fishing map" in iname302                    lift found303                    drop 'DistroChest2' 120 140 1304                    @ignore found      305                    306                elseif "hide" in iname307                    lift found 60000308                    drop 'DistroChest3' -1 -1 -1309                    wait minwait310                    lift found 60000311                    drop 'DistroChest3' 40 1 1312                    @ignore found313                    314                elseif "leather" in iname315                    lift found 60000316                    drop 'MagicRecycler3' -1 -1 -1317                    @ignore found318 319                elseif "token" in iname320                    lift found 60000321                    drop 'DistroChest4' -1 -1 -1322                    wait minwait323                    lift found 60000324                    drop 'DistroChest4' 150 175 1325                    @ignore found326 327                elseif "survival gear" in iname328                    lift found 60000329                    drop 'DistroChest1' -1 -1 -1330                    wait minwait331                    lift found 60000332                    drop 'DistroChest1' 150 115 1333                    @ignore found334                    335                elseif "redlightning bottle" in iname336                    lift found 60000337                    drop 'DistroChest1' -1 -1 -1338                    wait minwait339                    lift found 60000340                    drop 'DistroChest1' 82 125 1341                    @ignore found                    342                    343                elseif "carpet tile" in iname344                    lift found345                    drop 'DistroChest2' 45 140 1346                    @ignore found347 348                elseif "rug tile" in iname349                    lift found350                    drop 'DistroChest2' 15 140 1351                    @ignore found                       352 353                elseif "dye" in iname354                    lift found 60000355                    drop 'DistroChest2' -1 -1 -1356                    wait minwait357                    lift found 60000358                    drop 'DistroChest2' 70 140 1359                    @ignore found360                361                elseif "Aspect Core" in iname362                    lift found 60000363                    drop 'DistroChest1' -1 -1 -1364                    wait minwait365                    lift found 60000366                    drop 'DistroChest1' xAxis 100 1367                    @ignore found368 369                elseif "chromatic core" in iname370                    lift found 60000371                    drop 'DistroChest1' -1 -1 -1372                    wait minwait373                    lift found 60000374                    drop 'DistroChest1' xAxis 100 1375                    @ignore found376 377                elseif "Aspect Distillation" in iname378                    lift found 60000379                    drop 'DistroChest2' -1 -1 -1380                    wait minwait381                    lift found 60000382                    drop 'DistroChest2' xAxis 105 1383                    @ignore found384                    385                elseif "chromatic distillation" in iname386                    lift found 60000387                    drop 'DistroChest2' -1 -1 -1388                    wait minwait389                    lift found 60000390                    drop 'DistroChest2' xAxis 105 1391                    @ignore found                    392 393                elseif "mastercrafting" in iname394                    lift found 60000395                    drop 'DistroChest1' -1 -1 -1396                    wait minwait397                    lift found 60000398                    drop 'DistroChest1' 15 125 1399                    @ignore found400 401                elseif "mastery orb" in iname402                    lift found 60000403                    drop 'DistroChest1' -1 -1 -1404                    wait minwait405                    lift found 60000406                    drop 'DistroChest1' 90 125 1407                    @ignore found408 409                elseif "mastery" in iname410                    lift found 60000411                    drop 'DistroChest1' -1 -1 -1412                    wait minwait413                    lift found 60000414                    drop 'DistroChest1' xAxis 250 1415                    @ignore found416 417                elseif "deed" in iname418                    lift found419                    drop 'DistroChest2' 50 1 1420                    @ignore found421                    422                elseif "shoe" in iname423                    lift found 60000424                    drop 'DistroChest2' 150 150 1425                    @ignore found426                    427                elseif "boot" in iname428                    lift found 60000429                    drop 'DistroChest2' 150 150 1430                    @ignore found  431                    432                elseif "sandal" in iname433                    lift found 60000434                    drop 'DistroChest2' 150 150 1435                    @ignore found                    436                    437                elseif "cloth" in iname438                    lift found 60000439                    drop 'DistroChest2' 100 140 1440                    @ignore found441 442                elseif "phylactery" in iname443                    lift found 60000444                    drop 'DistroChest2' -1 -1 -1445                    wait minwait446                    lift found 60000447                    drop 'DistroChest2' xAxis 125 1448                    @ignore found449 450                elseif "lesser paragon" in iname451                    lift found452                    drop 'DistroChest4' 200 50 1453                    @ignore found454                    455                elseif "greater paragon" in iname456                    lift found457                    drop 'DistroChest4' 200 50 1458                    @ignore found                    459                    460                elseif "paragon" in iname461                    lift found462                    drop 'DistroChest4' 200 50 1463                    @ignore found464                    465                elseif "rare seed" in iname466                    lift found 1467                    drop 'DistroChest3' 20 140 1468                    @ignore found                469                else470                    lift found 60000471                    drop 'DistroChest3' -1 -1 -1472                    @ignore found473                endif474            endif                475 476            // Wait for any queued actions to complete477            while queued478                // Do nothing while actions are queued479            endwhile480 481        endwhile482        483    endfor484    485    dclick 'CurrentRecycler'486    if skill "Item Identification" = 120487        useskill "Item Identification"488        waitfortarget 1000489        target 'CurrentRecycler'490    else 491        waitforgump 4045111101492        gumpresponse 7 4045111101493    endif494        waitforgump 4045111101    495        gumpresponse 6 4045111101496        wait 200497        gumpresponse 6 4045111101498        wait 200499        gumpclose500    endif501    502 503    if CurrentChest = DistroChest1504        @setvar! CurrentChest DistroChest2505        @setvar! CurrentRecycler MagicRecycler2506    elseif CurrentChest = DistroChest2507        @setvar! CurrentChest DistroChest3508        @setvar! CurrentRecycler MagicRecycler3  509    elseif CurrentChest = DistroChest3510        @setvar! CurrentChest DistroChest4511        @setvar! CurrentRecycler MagicRecycler4512    elseif CurrentChest = DistroChest4513        @setvar! CurrentChest DistroChest1514        @setvar! CurrentRecycler MagicRecycler1       515    endif  516 517endwhile