Skip to content
Outlands Hub

Razor script

Lord Glacier's Chill INVENTORY RESET/ANTI-THIEF - UO OUTLANDS RAZOR SCRIPT - v1.0.3

by danstock._98439 · 1328 lines
Download

Compatibility unverified

This community Razor script has not been tested in game by the Hub. Read its setup and client requirements before use.

Lord Glaciers Chill INVENTORY RESET/ANTI-THIEF - UO OUTLANDS RAZOR SCRIPT - version 1.0.3 UO Outlands Razor script - Released January 4, 2026 - Last updated September 10, 2026 Compiled by DanStock. (aka. Lord Glacier)

Thieving
Lord Glaciers Chill INVENTORY RESETANTI-THIEF - UO OUTLANDS RAZOR SCRIPT - v103.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/321008b4-7c50-4158-a74c-62bd0cf2bc45 for latest2# Automation by Jaseowns3## Script: Lord Glacier's Chill INVENTORY RESET/ANTI-THIEF - UO OUTLANDS RAZOR SCRIPT - v1.0.34## Created by: danstock._98439#05#############################################6 7/////////8////////                                          Lord Glaciers Chill INVENTORY RESET/ANTI-THIEF - UO OUTLANDS RAZOR SCRIPT - version 1.0.39///////10//////                                                 UO Outlands Razor script - Released January 4, 2026 - Last updated September 10, 202611/////                                                     Compiled by DanStock. (aka. Lord Glacier)12////13///14 15 16 17 18 19    ///////////////////////20    //    CHANGE LOG:    //21    ///////////////////////22 23    #         Sep 10 2026 - version 1.0.3:  Improved reliability and fixed some minor bugs - should work better now overall!24    #         Apr 22 2026 - version 1.0.2:  Fixed bug with loot bag and added organizer-02 option (Agent-01 for main pouch and Agent-02 for loot bag)25    #         Jan 11 2026 - version 1.0.1:  Fixed bug in Reagent Splitter section26    #         Jan 04 2026 - version 1.0.0:  Public script release!27 28 29 30 31    /////////////////32    //    TIPS:    //33    /////////////////34      35#     I have taken a relatively basic process and over-complicated it once again... but this one is really handy! Trust me36#     If you use my other scripts to their full abilities, you might be familiar with this process already. If not, you really should try them out.37#     This script will help you setup your inventory (after death, usually) to really hinder thieves and improve your own QOL38#     I like my bags and stuff setup in a really specific way and it used to be really tedious to configure after death - not anymore!39#     With one button press this script will stack and hide your pouches and get your potions and gear ready to get back to playing quick. Best of all, it truly prevents thieves..40#     I cannot think of a single item of value that has ever been stolen from me in a dungeon (please do not take this as a challenge lol) while running this setup41#     By stacking pouches, burying your grab bag inside and using my Lockbox feature (in my Auto Pilot scripts) to further bury and lock any valuables it really makes a difference!42#     It is not as complicated as it sounds - it just requires specific shelf loadout items (trapped pouches, regular pouches and a bag) and scissors in your backpack.  Easy!43#     Please follow the instructions below and reach out if there are any questions or issues (dan@danstockman.com)44#     Thank you and I hope you enjoy these QOL scripts as much as I do!  This is one of my favourites45        46 47 48    /////////////////////49    //  INSTRUCTIONS:  //50    /////////////////////51 52        //  IMPT!!:  Requires an EQUAL AMOUNT of both TRAPPED POUCHES (in shelf loadout) and SCISSORS [blessed] (in backpack) for optimal setup (suggest ~5-10 each)53        //      Loadout also requires 1 UNTRAPPED POUCH (for main inventory - optionally set as Organizer Agent-01 below) and 1 BAG (for loot, etc.)54        //      For example, my shelf loadouts always consist of:  1 UNTRAPPED POUCH, 8 TRAPPED POUCHES and 1 BAG. I always carry 8 pairs of SCISSORS [blessed] in my pack55        56            #  If enabled, script will start by resupplying from nearby storage shelf (2 tiles) 57            #  Script will put SCISSORS into each TRAPPED POUCH (to keep them from being grabbed during future shelf loading)58            #  Script then STACKS any TRAPPED POUCHES on top of your MAIN INVENTORY POUCH59            #  If enabled, MAIN INVENTORY POUCH will be set as RAZOR ORGANIZER AGENT-0160            #  If enabled, your LOOT BAG will then be moved into MAIN INVENTORY POUCH and set as your GRAB ITEM HOTBAG (and hidden under rope, if found)61            #  Script will then HIDE the STACK underneath an ATLAS and put a DECOY TRAPPED POUCH out in the open (thieves often trip this and blow their cover)62            #  If enabled, ASPECT WEAPON and ARMOUR will be re-activated automatically 63            #  HP will be restored to MAX (using bandages or magery)64            #  If enabled, POTIONS will be filled from kegs (based on settings below).  Loadout requires empty kegs and empty bottles!65            #  If enabled, REAGENTS will be separated into smaller stacks inside your WIZARD SATCHEL to further hinder thieves66            #  Inventory reset finishes by opening backpack, main inventory pouch, loot bag and any satchels67 68                      69        70 71     ###############################72    ###      USER VARIABLES:      ###73     ###############################74 75@setvar! EnableOverheadMessages 176    # Will display overhead messages that match my other scripts (or not)77 78    79@setvar! EnableResupplyFromStorageShelf 080    # Will first resupply from storage shelf (if found within 2 tiles) before running script 81    82@setvar! EnableReactivateAspects 083    # Will reactivate your equipped aspect weapon, book and/or armour84    85@setvar! EnableSetMainPouchOrganizer01 086    # Requires 1 untrapped pouch in inventory87    # Will set your main storage pouch as Razor Organizer Hotbag 0188   89@setvar! EnableLootBag 090    # Requires 1 regular bag in inventory91    # Will set your bag as the Grab Item Hotbag (for Grid Loot, etc.)92    # Will move bag to main inventory pouch and hide it under rope stack (if found)93    @setvar! EnableSetLootBagOrganizer02 194        # Requires Loot Bag enabled above and 1 regular bag in inventory95        # Will set your Loot Bag as Razor Organizer Hotbag 0296    97@setvar! EnableLockBox 098    # Requires wooden box and matching copper key in inventory99    # Will move lockbox to main inventory pouch and hide it under food trays (if found)100    # Will move key to Loot Bag (if enabled) or main inventory pouch101 102@setvar! EnableUsePotionKegs 0103    # Requires kegs and empty bottles in inventory104    # Shelf loadout requires potions, empty kegs and empty bottles (pack extra bottles for explosion pots)105    # Will automatically fill your potions from kegs to set amounts106    # Set your required potion amounts below:107 108    if EnableUsePotionKegs = 1109        @setvar! HealingPotionAmount 5110        @setvar! CurePotionAmount 5111        @setvar! RefreshPotionAmount 5112        @setvar! StrengthPotionAmount 1113        @setvar! AgilityPotionAmount 1114        @setvar! ResistPotionAmount 1115        @setvar! ExplosionPotionAmount 1116        @setvar! PoisonPotionAmount 0117    endif118   119@setvar! EnableReagentSplitter 0120    # Requires Wizard Satchel in inventory or equipped (will ignore decorative) and magery skill > 0121    # Will split reagents into smaller stacks inside your satchel122 123 124/////////////////////////125//  END OF VARIABLES!  //126/////////////////////////127 128 129 130 131 132################  EDIT BELOW THIS LINE AT YOUR OWN RISK!  #####  EDIT BELOW THIS LINE AT YOUR OWN RISK!  #####  EDIT BELOW THIS LINE AT YOUR OWN RISK!  #####  EDIT BELOW THIS LINE AT YOUR OWN RISK!  ################133 134 135 136 137 138////////////////////////139//   SCRIPT START:    //140////////////////////////141            142clearignore143 144if targetexists 145    hotkey "Cancel Current Target"146endif147 148dclick backpack 149wait 500 150 151if EnableResupplyFromStorageShelf = 1152    if findtype "storage shelf" ground -1 -1 2 as shelf153        menu shelf 1154        if EnableOverheadMessages = 1155            overhead "[ RESUPPLYING... ]" 93156            wait 500157        endif158        wait 1000159    elseif EnableOverheadMessages = 1160        overhead "[ NO STORAGE SHELF FOUND! ]" 337161        wait 1500162    endif163endif164 165if skill 'healing' > 0 and hp < maxhp and not bandaging166    if findtype 'clean bandage%s%' self167        hotkey 'Bandage Self'168        if EnableOverheadMessages = 1169            overhead "[ BANDAGING... ]" 88170        endif171    else172        if EnableOverheadMessages = 1173            overhead "[ NO BANDAGES! ]" 337174        endif175    endif176endif177 178if EnableReactivateAspects = 1179    if EnableOverheadMessages = 1180        overhead "[ ACTIVATING ASPECT... ]" 2234181    endif182    say "[aspect"183    waitforgump 2424293173184    gumpresponse 8185    wait 250186    gumpresponse 8187    wait 500188    gumpresponse 13189    wait 250190    gumpresponse 13191    wait 500192    gumpresponse 17193    wait 250194    gumpresponse 17195    wait 500196    gumpclose 2424293173197endif198    199if not varexist maininventorybag or not find maininventorybag self200    if EnableOverheadMessages = 1201        overhead "[ SELECT MAIN POUCH... ]" 253202    endif 203    @setvar! maininventorybag204    wft 500205    while targetexists206        sysmsg 'Script: Waiting for main pouch selection...' 153207        wait 2500208    endwhile209    if EnableOverheadMessages = 1210        overhead "[ MAIN POUCH SET! ]" 93211    endif212    sysmsg 'Script: Main pouch set!' 93213    wait 500214endif215 216lift maininventorybag 217wait 500218drop backpack 69 69 0219wait 500220 221if EnableSetMainPouchOrganizer01 = 1222    hotkey 'Set Organizer Hotbag-01'223    wft 1500224    target maininventorybag225    if EnableOverheadMessages = 1226        overhead "[ MAIN POUCH SET TO AGENT-01! ]" 84227    endif228    wait 500229endif230 231dclick maininventorybag232wait 500233clearignore 234 235if EnableLootBag = 1236    hotkey 'Set Grab Item Hotbag'237    wft 1500238    while targetexists239        if findtype 'bag' self as grabbag240            target grabbag241            wait 500242            @setvar! LootBag grabbag243            break244        else245            wait 1000246            sysmsg "Script: Auto-select failed!  Please manually target your loot/grab bag..." 253247            wait 1000248            if EnableOverheadMessages = 1249                overhead "[ SELECT LOOT BAG... ]" 253250            endif 251            wait 500252        endif253        wait 500254    endwhile255    256    if not varexist LootBag or not find LootBag self257        if findtype 'bag' self as grabbag258            @setvar! LootBag grabbag259            wait 500260        endif261    endif 262    263    if find Lootbag self264        if EnableOverheadMessages = 1265            overhead "[ LOOT BAG SET! ]" 93266        endif267        sysmsg 'Script: Loot bag set successfully!' 93268        wait 500269    else 270        if EnableOverheadMessages = 1271            overhead '[ NO LOOT BAG FOUND! ]' 337272        endif 273        sysmsg 'Script: No loot bag found!' 337274    endif 275    276    if EnableSetLootBagOrganizer02 = 1 and find LootBag self277        hotkey 'Set Organizer Hotbag-02'278        wft 1500279        target LootBag280        if EnableOverheadMessages = 1281            overhead "[ LOOT BAG SET TO AGENT-02! ]" 88282        endif283        wait 500284    endif285    286    if find LootBag self287        lift LootBag288        wait 500289        drop maininventorybag 164 144 0290        wait 500291        if findtype 'rope' self as myrope292            lift myrope 60000293            wait 500294            drop maininventorybag 164 144 0295            wait 500296        endif297    endif298endif299 300@ignore maininventorybag301 302while findtype 'scissors' self    303    if skill 'healing' > 0 and hp < maxhp and not bandaging304        if findtype 'clean bandage%s%' self305            hotkey 'Bandage Self'306            if EnableOverheadMessages = 1307                overhead "[ BANDAGING... ]" 88308            endif309        else310            if EnableOverheadMessages = 1311                overhead "[ NO BANDAGES! ]" 337312            endif313        endif314    endif315 316    if EnableOverheadMessages = 1317        if not timerexists StackingTimer318            createtimer StackingTimer319            settimer StackingTimer 2500320        endif321        if timer StackingTimer > 2500322            if EnableOverheadMessages = 1323                overhead "[ STACKING POUCHES... ]" 37324            endif  325            settimer StackingTimer 0326        endif327    endif328    329    if findtype 'scissors' self as myscissors330        if findtype 'pouch' self as trappedpouch331            lift myscissors332            wait 250333            drop trappedpouch334            wait 750335            lift trappedpouch336            wait 250337            drop backpack 69 69 0338            @ignore trappedpouch339            @ignore myscissors340        endif341    endif342 343    wait 500344    345    while queued346        wait 100347    endwhile348endwhile349 350clearignore351 352while findtype 'pouch' backpack as decoypouch353    getlabel decoypouch decoypouchlabel354    wait 250355    if '(1 items' in decoypouchlabel356        lift decoypouch357        drop backpack 97 97 0358        break359    else360        @ignore decoypouch361    endif362endwhile363 364clearignore 365 366if findtype 'atlas' backpack as hidemypouchstack367    lift hidemypouchstack368    drop backpack 72 66 0369    wait 500370else371    say "[atlas"372    wait 500373    if findtype 'atlas' backpack as hidemypouchstack374        lift hidemypouchstack375        drop backpack 72 66 0376        wait 500377    endif378endif379 380if skill 'magery' >= 60 and hp < maxhp and mana >= 11 and not casting381    while hp < maxhp382        cast 'greater heal'383        while not casting384            if targetexists385                hotkey 'cancel current target'386            endif387            cast 'greater heal'388            wait 500389        endwhile390        while not targetexists391            wait 100392        endwhile393        target 'self'394        wait 500395    endwhile396endif397 398if skill 'healing' > 0 and hp < maxhp and not bandaging399    if findtype 'clean bandage%s%' self400        hotkey 'Bandage Self'401        if EnableOverheadMessages = 1402            overhead "[ BANDAGING... ]" 88403        endif404    else405        if EnableOverheadMessages = 1406            overhead "[ NO BANDAGES! ]" 337407        endif408    endif409endif410 411if findtype "storage shelf" ground -1 -1 2 as shelf412    menu shelf 1413    wait 1000414endif415 416clearignore 417 418  419if EnableUsePotionKegs = 1 and findtype 'empty bottle%s%' self and findtype 'keg' self420    if not timerexists PotionKegTimer421        createtimer PotionKegTimer422        settimer PotionKegTimer 5000423    endif424 425    @setvar! PotionStockCheck 0426 427    while PotionStockCheck < 8 and findtype 'empty bottle%s%' self428        @setvar! PotionAmounttoFill 0429        if PotionStockCheck = 0430            if ExplosionPotionAmount != 0431                @setvar! PotionType 3853432                @setvar! KegColour 419433                @setvar! PotionAmounttoFill ExplosionPotionAmount434            endif435            @setvar! PotionStockCheck 1436        elseif PotionStockCheck = 1437            if HealingPotionAmount != 0438                @setvar! PotionType 3852439                @setvar! KegColour 253440                @setvar! PotionAmounttoFill HealingPotionAmount441            endif442            @setvar! PotionStockCheck 2443        elseif PotionStockCheck = 2444            if CurePotionAmount != 0445                @setvar! PotionType 3847446                @setvar! KegColour 44447                @setvar! PotionAmounttoFill CurePotionAmount448            endif449            @setvar! PotionStockCheck 3450        elseif PotionStockCheck = 3451            if RefreshPotionAmount != 0452                @setvar! PotionType 3851453                @setvar! KegColour 37454                @setvar! PotionAmounttoFill RefreshPotionAmount455            endif456            @setvar! PotionStockCheck 4457        elseif PotionStockCheck = 4458            if StrengthPotionAmount != 0459                @setvar! PotionType 3849460                @setvar! KegColour 956461                @setvar! PotionAmounttoFill StrengthPotionAmount462            endif463            @setvar! PotionStockCheck 5464        elseif PotionStockCheck = 5465            if AgilityPotionAmount != 0466                @setvar! PotionType 3848467                @setvar! KegColour 93468                @setvar! PotionAmounttoFill AgilityPotionAmount469            endif470            @setvar! PotionStockCheck 6471        elseif PotionStockCheck = 6472            if ResistPotionAmount != 0473                @setvar! PotionType 3846474                @setvar! KegColour 1109475                @setvar! PotionAmounttoFill ResistPotionAmount476            endif477            @setvar! PotionStockCheck 7478        elseif PotionStockCheck = 7479            if PoisonPotionAmount != 0480                @setvar! PotionType 3850481                @setvar! KegColour 363482                @setvar! PotionAmounttoFill PoisonPotionAmount483            endif484            @setvar! PotionStockCheck 8485        endif486 487        if PotionAmounttoFill != 0488            while counttype PotionType self < PotionAmounttoFill489                if not findtype 'empty bottle%s%' self490                    if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 5000491                        overhead "[ NO EMPTY BOTTLES! ]" 337492                        settimer 'PotionKegTimer' 0493                    endif494                    break495                endif496 497                if diffhits > 10498                    break499                endif500 501                if findtype 'keg' self KegColour as myKeg502                    dclick myKeg503                    wait 250504                    if EnableOverheadMessages = 1505                        if timer 'PotionKegTimer' > 2000506                            overhead '[ FILLING POTS... ]' KegColour507                            settimer 'PotionKegTimer' 0508                        endif509                    endif510                else511                    if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 5000512                        overhead "[ NO KEG TO USE! ]" KegColour513                        settimer 'PotionKegTimer' 0514                    endif515                    break516                endif517            endwhile518 519            if counttype PotionType self < PotionAmounttoFill and not findtype 'empty bottle%s%' self520                if EnableOverheadMessages = 1 and timer 'PotionKegTimer' > 5000521                    overhead "[ NO EMPTY BOTTLES! ]" 337522                    settimer 'PotionKegTimer' 0523                endif524                break525            endif526        endif527    endwhile528endif529 530clearignore 531 532if EnableReagentSplitter = 1 and skill 'magery' > 0 533    if not varexist MyWizardBag or not find MyWizardBag self534        if findtype "reagent satchel" self535            while findtype "reagent satchel" self as MyWizardBag536                getlabel MyWizardBag MyWizardBaglabel537                wait 500538                if "decorative" in MyWizardBaglabel539                        @ignore MyWizardBag540                        wait 500541                else 542                    break543                endif544            endwhile545        else 546            if EnableOverheadMessages = 1547                overhead "[ NO WIZARD BAG! ]" 337548            endif  549        endif550    endif551        552    if findtype 'reagent satchel' self as MyWizardBag553        dclick MyWizardBag554        wait 500555 556        if EnableOverheadMessages = 1557            overhead "[ SPLITTING REGS... ]" 2338558        endif559            560        # Spiders Silk561        @setvar! ReagentStack 0562        @setvar! ReagentSerial 3981563        @setvar! ReagentCount 0564        565        while findtype ReagentSerial self as regs 566            @setvar! ReagentCount index567            @ignore regs568        endwhile569        570        @clearignore571        572        if counttype ReagentSerial self <= 10573            @setvar! ReagentStack 2574        elseif counttype ReagentSerial self <= 20575            @setvar! ReagentStack 4       576        elseif counttype ReagentSerial self <= 50577            @setvar! ReagentStack 10    578        elseif counttype ReagentSerial self <= 100579            @setvar! ReagentStack 20    580        elseif counttype ReagentSerial self <= 150581            @setvar! ReagentStack 30582        elseif counttype ReagentSerial self <= 200583            @setvar! ReagentStack 40584        else 585            @setvar! ReagentStack 50586        endif587        588        while findtype ReagentSerial self as regs589            @setvar! moveRegs 0 590            591            if ReagentCount = 0592                @setvar! moveRegs 1593            elseif ReagentCount != 0 and not find regs MyWizardBag594                @setvar! moveRegs 1595            endif596            597            if moveRegs = 1598                if index = 0599                    lift regs ReagentStack600                    drop MyWizardBag 44 65 0601                    wait 150602                elseif index = 1603                    lift regs ReagentStack604                    drop MyWizardBag 68 65 0605                    wait 150606                elseif index = 2607                    lift regs ReagentStack608                    drop MyWizardBag 96 65 0609                    wait 150610                elseif index = 3611                    lift regs ReagentStack612                    drop MyWizardBag 121 65 0613                    wait 150614                else615                    lift regs ReagentStack616                    drop MyWizardBag 142 65 0617                    wait 150618                endif619            endif620            621            @ignore regs 622            623            if moveRegs = 1624                wait 500625            endif626        endwhile627 628        if EnableOverheadMessages = 1629            overhead "[ SPLITTING REGS... ]" 3630        endif631        632        # Black Pearl633        @setvar! ReagentSerial 3962634        @setvar! ReagentCount 0635 636        while findtype ReagentSerial self as regs 637            @setvar! ReagentCount index638            @ignore regs639        endwhile640 641        @clearignore642 643        if counttype ReagentSerial self <= 10644            @setvar! ReagentStack 2645        elseif counttype ReagentSerial self <= 20646            @setvar! ReagentStack 4       647        elseif counttype ReagentSerial self <= 50648            @setvar! ReagentStack 10    649        elseif counttype ReagentSerial self <= 100650            @setvar! ReagentStack 20    651        elseif counttype ReagentSerial self <= 150652            @setvar! ReagentStack 30653        elseif counttype ReagentSerial self <= 200654            @setvar! ReagentStack 40655        else 656            @setvar! ReagentStack 50657        endif658 659        while findtype ReagentSerial self as regs660            @setvar! moveRegs 0 661            662            if ReagentCount = 0663                @setvar! moveRegs 1664            elseif ReagentCount != 0 and not find regs MyWizardBag665                @setvar! moveRegs 1666            endif667        668            if moveRegs = 1669                if index = 0670                    lift regs ReagentStack671                    drop MyWizardBag 44 76 0672                    wait 150673                elseif index = 1674                    lift regs ReagentStack675                    drop MyWizardBag 68 76 0676                    wait 150677                elseif index = 2678                    lift regs ReagentStack679                    drop MyWizardBag 96 76 0680                    wait 150681                elseif index = 3682                    lift regs ReagentStack683                    drop MyWizardBag 121 76 0684                    wait 150685                else686                    lift regs ReagentStack687                    drop MyWizardBag 142 76 0688                    wait 150689                endif690            endif691            692            @ignore regs 693            694            if moveRegs = 1695                wait 500696            endif697        endwhile698 699        if EnableOverheadMessages = 1700            overhead "[ SPLITTING REGS... ]" 363701        endif702        703        # Nightshade704        @setvar! ReagentSerial 3976705        @setvar! ReagentCount 0706 707        while findtype ReagentSerial self as regs 708            @setvar! ReagentCount index709            @ignore regs710        endwhile711        712        @clearignore713 714        if counttype ReagentSerial self <= 10715            @setvar! ReagentStack 2716        elseif counttype ReagentSerial self <= 20717            @setvar! ReagentStack 4       718        elseif counttype ReagentSerial self <= 50719            @setvar! ReagentStack 10    720        elseif counttype ReagentSerial self <= 100721            @setvar! ReagentStack 20    722        elseif counttype ReagentSerial self <= 150723            @setvar! ReagentStack 30724        elseif counttype ReagentSerial self <= 200725            @setvar! ReagentStack 40726        else 727            @setvar! ReagentStack 50728        endif729 730        while findtype ReagentSerial self as regs731            @setvar! moveRegs 0 732            733            if ReagentCount = 0734                @setvar! moveRegs 1735            elseif ReagentCount != 0 and not find regs MyWizardBag736                @setvar! moveRegs 1737            endif738 739            if moveRegs = 1740                if index = 0741                    lift regs ReagentStack742                    drop MyWizardBag 44 88 0743                    wait 150744                elseif index = 1745                    lift regs ReagentStack746                    drop MyWizardBag 68 88 0747                    wait 150748                elseif index = 2749                    lift regs ReagentStack750                    drop MyWizardBag 96 88 0751                    wait 150752                elseif index = 3753                    lift regs ReagentStack754                    drop MyWizardBag 121 88 0755                    wait 150756                else757                    lift regs ReagentStack758                    drop MyWizardBag 142 88 0759                    wait 150760                endif761            endif762 763            @ignore regs 764            765            if moveRegs = 1766                wait 500767            endif768        endwhile769 770        if EnableOverheadMessages = 1771            overhead "[ SPLITTING REGS... ]" 442772        endif773        774        # Mandrake Root775        @setvar! ReagentSerial 3974776        @setvar! ReagentCount 0777 778        while findtype ReagentSerial self as regs 779            @setvar! ReagentCount index780            @ignore regs781        endwhile782        @clearignore783 784        if counttype ReagentSerial self <= 10785            @setvar! ReagentStack 2786        elseif counttype ReagentSerial self <= 20787            @setvar! ReagentStack 4       788        elseif counttype ReagentSerial self <= 50789            @setvar! ReagentStack 10    790        elseif counttype ReagentSerial self <= 100791            @setvar! ReagentStack 20    792        elseif counttype ReagentSerial self <= 150793            @setvar! ReagentStack 30794        elseif counttype ReagentSerial self <= 200795            @setvar! ReagentStack 40796        else 797            @setvar! ReagentStack 50798        endif799 800        while findtype ReagentSerial self as regs801            @setvar! moveRegs 0 802            803            if ReagentCount = 0804                @setvar! moveRegs 1805            elseif ReagentCount != 0 and not find regs MyWizardBag806                @setvar! moveRegs 1807            endif808            809            if moveRegs = 1810                if index = 0811                    lift regs ReagentStack812                    drop MyWizardBag 44 100 0813                    wait 150814                elseif index = 1815                    lift regs ReagentStack816                    drop MyWizardBag 68 100 0817                    wait 150818                elseif index = 2819                    lift regs ReagentStack820                    drop MyWizardBag 96 100 0821                    wait 150822                elseif index = 3823                    lift regs ReagentStack824                    drop MyWizardBag 121 100 0825                    wait 150826                else827                    lift regs ReagentStack828                    drop MyWizardBag 142 100 0829                    wait 150830                endif831            endif832            833            @ignore regs 834            835            if moveRegs = 1836                wait 500837            endif838        endwhile839 840        if EnableOverheadMessages = 1841            overhead "[ SPLITTING REGS... ]" 153842        endif843        844        # Sulfurous Ash845        @setvar! ReagentSerial 3980846        @setvar! ReagentCount 0847 848        while findtype ReagentSerial self as regs 849            @setvar! ReagentCount index850            @ignore regs851        endwhile852 853        @clearignore854 855        if counttype ReagentSerial self <= 10856            @setvar! ReagentStack 2857        elseif counttype ReagentSerial self <= 20858            @setvar! ReagentStack 4       859        elseif counttype ReagentSerial self <= 50860            @setvar! ReagentStack 10    861        elseif counttype ReagentSerial self <= 100862            @setvar! ReagentStack 20    863        elseif counttype ReagentSerial self <= 150864            @setvar! ReagentStack 30865        elseif counttype ReagentSerial self <= 200866            @setvar! ReagentStack 40867        else 868            @setvar! ReagentStack 50869        endif870 871        while findtype ReagentSerial self as regs872            @setvar! moveRegs 0 873            874            if ReagentCount = 0875                @setvar! moveRegs 1876            elseif ReagentCount != 0 and not find regs MyWizardBag877                @setvar! moveRegs 1  878            endif879            880            if moveRegs = 1881                if index = 0882                    lift regs ReagentStack883                    drop MyWizardBag 44 112 0884                    wait 150885                elseif index = 1886                    lift regs ReagentStack887                    drop MyWizardBag 68 112 0888                    wait 150889                elseif index = 2890                    lift regs ReagentStack891                    drop MyWizardBag 96 112 0892                    wait 150893                elseif index = 3894                    lift regs ReagentStack895                    drop MyWizardBag 121 112 0896                    wait 150897                else898                    lift regs ReagentStack899                    drop MyWizardBag 142 112 0900                    wait 150901                endif902            endif903                    904            @ignore regs 905            906            if moveRegs = 1907                wait 500908            endif909        endwhile910 911        if EnableOverheadMessages = 1912            overhead "[ SPLITTING REGS... ]" 247913        endif914        915        # Ginseng916        @setvar! ReagentSerial 3973917        @setvar! ReagentCount 0918 919        while findtype ReagentSerial self as regs 920            @setvar! ReagentCount index921            @ignore regs922        endwhile923 924        @clearignore925 926        if counttype ReagentSerial self <= 10927            @setvar! ReagentStack 2928        elseif counttype ReagentSerial self <= 20929            @setvar! ReagentStack 4       930        elseif counttype ReagentSerial self <= 50931            @setvar! ReagentStack 10    932        elseif counttype ReagentSerial self <= 100933            @setvar! ReagentStack 20    934        elseif counttype ReagentSerial self <= 150935            @setvar! ReagentStack 30936        elseif counttype ReagentSerial self <= 200937            @setvar! ReagentStack 40938        else 939            @setvar! ReagentStack 50940        endif941 942        while findtype ReagentSerial self as regs943            @setvar! moveRegs 0 944            945            if ReagentCount = 0946                @setvar! moveRegs 1947            elseif ReagentCount != 0 and not find regs MyWizardBag948                @setvar! moveRegs 1949            endif950 951            if moveRegs = 1952                if index = 0953                    lift regs ReagentStack954                    drop MyWizardBag 44 124 0955                    wait 150956                elseif index = 1957                    lift regs ReagentStack958                    drop MyWizardBag 68 124 0959                    wait 150960                elseif index = 2961                    lift regs ReagentStack962                    drop MyWizardBag 96 124 0963                    wait 150964                elseif index = 3965                    lift regs ReagentStack966                    drop MyWizardBag 121 124 0967                    wait 150968                else969                    lift regs ReagentStack970                    drop MyWizardBag 142 124 0971                    wait 150972                endif973            endif974                    975            @ignore regs 976            977            if moveRegs = 1978                wait 500979            endif980        endwhile981 982        if EnableOverheadMessages = 1983            overhead "[ SPLITTING REGS... ]" 33984        endif985        986        # Bloodmoss987        @setvar! ReagentSerial 3963988        @setvar! ReagentCount 0989 990        while findtype ReagentSerial self as regs 991            @setvar! ReagentCount index992            @ignore regs993        endwhile994        995        @clearignore996 997        if counttype ReagentSerial self <= 10998            @setvar! ReagentStack 2999        elseif counttype ReagentSerial self <= 201000            @setvar! ReagentStack 4       1001        elseif counttype ReagentSerial self <= 501002            @setvar! ReagentStack 10    1003        elseif counttype ReagentSerial self <= 1001004            @setvar! ReagentStack 20    1005        elseif counttype ReagentSerial self <= 1501006            @setvar! ReagentStack 301007        elseif counttype ReagentSerial self <= 2001008            @setvar! ReagentStack 401009        else 1010            @setvar! ReagentStack 501011        endif1012 1013        while findtype ReagentSerial self as regs1014            @setvar! moveRegs 0 1015            1016            if ReagentCount = 01017                @setvar! moveRegs 11018            elseif ReagentCount != 0 and not find regs MyWizardBag1019                @setvar! moveRegs 11020            endif1021            1022            if moveRegs = 11023                if index = 01024                    lift regs ReagentStack1025                    drop MyWizardBag 44 136 01026                    wait 1501027                elseif index = 11028                    lift regs ReagentStack1029                    drop MyWizardBag 68 136 01030                    wait 1501031                elseif index = 21032                    lift regs ReagentStack1033                    drop MyWizardBag 96 136 01034                    wait 1501035                elseif index = 31036                    lift regs ReagentStack1037                    drop MyWizardBag 121 136 01038                    wait 1501039                else1040                    lift regs ReagentStack1041                    drop MyWizardBag 142 136 01042                    wait 1501043                endif1044            endif1045                    1046            @ignore regs 1047            1048            if moveRegs = 11049                wait 5001050            endif1051        endwhile1052 1053        if EnableOverheadMessages = 11054            overhead "[ SPLITTING REGS... ]" 6461055        endif1056        1057        # Garlic1058        @setvar! ReagentSerial 39721059        @setvar! ReagentCount 01060 1061        while findtype ReagentSerial self as regs 1062            @setvar! ReagentCount index1063            @ignore regs1064        endwhile1065        1066        @clearignore1067 1068        if counttype ReagentSerial self <= 101069            @setvar! ReagentStack 21070        elseif counttype ReagentSerial self <= 201071            @setvar! ReagentStack 4       1072        elseif counttype ReagentSerial self <= 501073            @setvar! ReagentStack 10    1074        elseif counttype ReagentSerial self <= 1001075            @setvar! ReagentStack 20    1076        elseif counttype ReagentSerial self <= 1501077            @setvar! ReagentStack 301078        elseif counttype ReagentSerial self <= 2001079            @setvar! ReagentStack 401080        else 1081            @setvar! ReagentStack 501082        endif1083 1084        while findtype ReagentSerial self as regs1085            @setvar! moveRegs 0 1086            1087            if ReagentCount = 01088                @setvar! moveRegs 11089            elseif ReagentCount != 0 and not find regs MyWizardBag1090                @setvar! moveRegs 11091            endif1092            1093            if moveRegs = 11094                if index = 01095                    lift regs ReagentStack1096                    drop MyWizardBag 44 148 01097                    wait 1501098                elseif index = 11099                    lift regs ReagentStack1100                    drop MyWizardBag 68 148 01101                    wait 1501102                elseif index = 21103                    lift regs ReagentStack1104                    drop MyWizardBag 96 148 01105                    wait 1501106                elseif index = 31107                    lift regs ReagentStack1108                    drop MyWizardBag 121 148 01109                    wait 1501110                else1111                    lift regs ReagentStack1112                    drop MyWizardBag 142 148 01113                    wait 1501114                endif1115            endif1116            1117            @ignore regs 1118            1119            if moveRegs = 11120                wait 5001121            endif1122        endwhile1123    endif1124endif1125 1126clearignore 1127 1128if EnableOverheadMessages = 11129    overhead "[ OPENING BAGS... ]" 11321130endif1131 1132dclick backpack 1133wait 5001134 1135while queued1136    wait 1001137endwhile1138 1139if find maininventorybag self1140    dclick maininventorybag1141    wait 5001142endif1143 1144while queued1145    wait 1001146endwhile1147 1148if findtype 'alchemists satchel' self as BagofPot1149    dclick BagofPot1150    wait 5001151endif1152 1153while queued1154    wait 1001155endwhile1156 1157if findtype 'reagent satchel' self as MyWizardBag1158    while findtype "reagent satchel" self as MyWizardBag1159        getlabel MyWizardBag MyWizardBagdesc1160        if 'decorative' in MyWizardBagdesc1161            @ignore MyWizardBag1162        else1163            break1164        endif1165    endwhile1166    dclick MyWizardBag1167    wait 5001168endif1169 1170while queued1171    wait 1001172endwhile1173 1174if findtype 'book bind' self as AdventureBag1175    dclick AdventureBag1176    wait 5001177endif1178 1179while queued1180    wait 1001181endwhile1182 1183if findtype 'quiver' self as Quiver1184    while findtype 'quiver' self as Quiver1185        getlabel Quiver Quiverlabel1186        wait 5001187        if "decorative" in Quiverlabel1188            @ignore Quiver1189        else 1190            break1191        endif1192    endwhile1193    dclick Quiver1194    wait 5001195endif1196 1197while queued1198    wait 1001199endwhile1200 1201if EnableLootBag = 1 and find LootBag self1202    dclick LootBag1203    wait 5001204endif1205 1206while queued1207    wait 1001208endwhile1209 1210if EnableLockBox = 11211    if findtype 'wooden box' self as Lockbox1212        if EnableOverheadMessages = 11213            overhead "[ SECURING LOCKBOX... ]" 21141214            wait 5001215        endif1216        1217        lift Lockbox 11218        wait 5001219        drop maininventorybag 44 141 01220        wait 5001221        getlabel Lockbox Lockboxlabel1222        wait 5001223        1224        if findtype 'tray' self as food1225            lift food 600001226            wait 5001227            drop maininventorybag 44 141 01228            wait 5001229        endif 1230        1231        if "items" in Lockboxlabel1232            dclick Lockbox1233            wait 5001234            if findtype 'copper key' self as mykey1235                if EnableLootBag = 1 and find LootBag self1236                    lift mykey 11237                    wait 5001238                    drop LootBag 29 121 01239                    wait 5001240                else1241                    lift mykey 11242                    wait 5001243                    drop maininventorybag 29 121 01244                    wait 5001245                endif1246            else1247                if EnableOverheadMessages = 11248                    overhead "[ NO KEY FOUND! ]" 3371249                endif1250            endif1251        else 1252            if findtype 'copper key' self as mykey and EnableLootBag = 1 and find LootBag self1253                dclick mykey1254                wft 15001255                target Lockbox1256                wait 5001257                dclick Lockbox1258                wait 5001259                lift mykey 11260                wait 5001261                drop LootBag 29 121 01262                wait 5001263            elseif findtype 'copper key' self as mykey1264                dclick mykey1265                wft 15001266                target Lockbox1267                wait 5001268                dclick Lockbox1269                wait 5001270                lift mykey 11271                wait 5001272                drop maininventorybag 29 121 01273                wait 5001274            else 1275                if EnableOverheadMessages = 11276                    overhead "[ NO KEY FOUND! ]" 3371277                endif 1278            endif1279            wait 5001280        endif1281    else 1282        if EnableOverheadMessages = 11283            overhead "[ NO LOCKBOX FOUND! ]" 3371284        endif 1285    endif 1286endif1287 1288while queued1289    wait 1001290endwhile1291 1292if EnableSetMainPouchOrganizer01 = 11293    hotkey "Organizer Agent-01"1294    wait 5001295    while queued1296        wait 1001297    endwhile1298endif1299 1300if EnableSetLootBagOrganizer02 = 1 and EnableLootBag = 11301    hotkey "Organizer Agent-02"1302    wait 5001303    while queued1304        wait 1001305    endwhile1306endif1307 1308wait 5001309overhead "[ SCRIPT COMPLETE! ]" 881310stop1311 1312////////////////////////1313//   SCRIPT FINISH    //1314////////////////////////1315 1316 1317 1318 1319 1320 1321    // Thank you for using my scripts!  I can be contacted via email here: dan@danstockman.com 1322    // Good luck out there and say hello if you see me in Avadon (Lord Glacier) - please don't PK me lol1323    1324 1325    1326    1327    1328