Skip to content
Outlands Hub

Razor script

Magic spell book categorizer & organizer

by cramphy1 · 107 lines
Download

Organize magic spell books by importance UO Outlands - https://outlands.uorazorscripts.com/mage-bot by Cramphy 10 Feb 2024 Have four different bags/containers for each category Get the IDs using >info command in the game then set the IDs I…

MagicOrganizing
Magic spell book categorizer organizer.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/a8d691d3-2639-4bda-9c88-2a9b3772a66c for latest2# Automation by Jaseowns3## Script: Magic spell book categorizer & organizer4## Created by: cramphy1#05#############################################6 7# Organize magic spell books by importance8# UO Outlands - https://outlands.uorazorscripts.com/mage-bot9#10# Version: v1.0.011#12# by Cramphy13# 10 Feb 202414#15// Have four different bags/containers for each category16// Get the IDs using >info command in the game then set the IDs17// I keep same three bags in the secure container at home and never remove them18// You must open the secure container that contains this bags before running this script19// Otherwise it cannot find them 20@setvar! onlyManaMagicBooks '0x45B22972'21@setvar! onlyDamageMagicBooks '0x45C0C4C1'22@setvar! manaAndDamageMagicBooks '0x45C32422'23@setvar! slayerMagicBooks '0x45CEED03'24 25// Magic Item Recycler Id -> 1176226// I store unidentified items in the magic item recycler27// Then I use container identification wand on it to identify all at once28// Then run this script to organize 29@clearignore 30if findtype 11762 ground -1 -1 2 as magicItemRecycler31    while findtype 3834 magicItemRecycler as item32        // reset variables33        @setvar! manaBonus 034        @setvar! damageBonus 035        @setvar! slayerBonus 036        @setvar! durabilityBonus 037        38        getlabel item description39        40        if "potent" in description41            @setvar! manaBonus 142        endif43 44        if "ruin" in description or "might" in description or "force" in description or "power" in description or "vanquishing" in description45            @setvar! damageBonus 146        endif47        48        if "slaying" in description49            @setvar! slayerBonus 150        endif51        52        // Y location of the item is set by the durability or 53        // I am using a backpack to store the items54        // Backpack's first starting row number is 6555        // You may want to adjust accordingly for different kind of container56        setvar dropY 6557        if "durable" in description58            setvar dropY 8059        elseif "substantial" in description60            setvar dropY 9561        elseif "massive" in description62            setvar dropY 11063        elseif "fortified" in description64            setvar dropY 12565        elseif "indestructible" in description66            setvar dropY 14067        endif68 69        // X position is set by the level of the item70       // Starting position is also can be changed accordingly71        setvar dropX 4072        if "surpassingly" in description or "might" in description73            setvar dropX 5574        elseif "eminently" in description or "force" in description75            setvar dropX 7076        elseif "exceedingly" in description or "power" in description77            setvar dropX 8578        elseif "supremely" in description or "vanquishing" in description79            setvar dropX 10080        endif81        82        // Has only mana bonus83        if manaBonus = 1 and damageBonus = 0 and slayerBonus = 084            @setvar! targetContainer onlyManaMagicBooks85        endif86 87        // Has only damage bonus88        if damageBonus = 1 and manaBonus = 0 and slayerBonus = 089            @setvar! targetContainer onlyDamageMagicBooks90        endif91        92        // Has mana and damage bonus but not slayer bonus93        if manaBonus = 1 and damageBonus = 1 and slayerBonus = 094            @setvar! targetContainer manaAndDamageMagicBooks95        endif        96        97        // Slayer bonus98        if slayerBonus = 199            @setvar! targetContainer slayerMagicBooks100        endif101        102        lift item103        drop targetContainer dropX dropY -1104        ignore item105        wait 650106    endwhile107endif