Skip to content
Outlands Hub

Razor script

Magic Recycler like Sorter v3 (Wildlands update)

by special_sy · 263 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.

Script by [DoS] Chumbeer It basicly works like the item recycler trimmed down to upper options !! Items have to be identified unless you got 120 item id !! It will sort trash to your backpack to recycle It will auto recycle with a sewing…

Organizing
Magic Recycler like Sorter v3 Wildlands update.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/050e5150-e15a-4efd-baa3-10cf19105dd7 for latest2# Automation by Jaseowns3## Script: Magic Recycler like Sorter v3 (Wildlands update)4## Created by: special_sy#05#############################################6 7# Script by [DoS] Chumbeer8# It basicly works like the item recycler trimmed down to upper options9# !! Items have to be identified unless you got 120 item id !!10# It will sort trash to your backpack to recycle11# It will auto recycle with a sewing kit on full12# Set source and good item container and let it run13# Settings are configured to how i run it aka what is sellable ;)14 15# >info your container and set the IDs!16@setvar container_magicSorter_source 0x405C38C217@setvar container_magicSorter_keep 0x53ABC5F018 19# Settings20@setvar verbose_recycle 121@setvar verbose_keep 122@setvar auto_recycle 123 24# Set to 1 what to keep25@setvar weapons_slayer_lesser 026@setvar weapons_slayer_regular 027@setvar weapons_slayer_greater 128@setvar weapons_damage_force 029@setvar weapons_damage_power 030@setvar weapons_damage_vanq 131@setvar weapons_accuracy_eminently 032@setvar weapons_accuracy_exceedingly 033@setvar weapons_accuracy_supremely 134 35@setvar armor_protection_hardening 036@setvar armor_protection_fortification 037@setvar armor_protection_invul 138 39@setvar book_potency_eminently 040@setvar book_potency_exceedingly 141@setvar book_potency_supremely 142@setvar book_damage_force 043@setvar book_damage_power 044@setvar book_damage_vanq 145 46@setvar instrument_slayer_lesser 047@setvar instrument_slayer_regular 148@setvar instrument_slayer_greater 149@setvar instrument_artistry_eminently 050@setvar instrument_artistry_exceedginly 051@setvar instrument_artistry_supremely 152 53dclick container_magicSorter_source54wait 50055 56# --- CONFIG END ---57 58if not listexists goodItems59    createlist goodItems60else61    clearlist goodItems62endif63 64if not listexists recycleItems65    createlist recycleItems66else67    clearlist recycleItems68endif69 70@clearignore 71@clearsysmsg 72@setvar container_magicSorter_recycle 'backpack'73 74if skill 'Item Identification' = 12075    overhead "Item Id on container..." 8876    useskill 'itemid'77    wft 100078    target container_magicSorter_source79    wait 100080endif81 82#weapons83overhead "Checking Weapons" 8884while findtype 30999|31169|3568|3570|3571|3572|3573|3713|3719|3721|3740|3742|3762|3763|3834|3909|3911|3913|3915|3917|3920|3922|3932|3934|3937|3938|5040|5042|5044|5046|5049|5112|5115|5117|5119|5121|5123|5125|5127|5177|5179|5181|5182|5185|5187|7026|7027|7029|7031|7033|7034|7035|7107|7109|9917|10245|22187|30988|30989|30990|30992|30993|30994|30995|30996|30997|30998|31128|31141|31142|31176|31184|31186|31188|31190 container_magicSorter_source as item85    getlabel item itemLabel86    if 'unidentified' in itemLabel87        overhead "Skipping {{itemLabel}}"88        @ignore item89        continue90    endif91    @setvar keepItem 092 93    # Decide what to keep94    if 'lesser slaying' in itemLabel and weapons_slayer_lesser = 195        pushlist goodItems item96    elseif 'greater slaying' in itemLabel and weapons_slayer_greater = 197        pushlist goodItems item98    elseif 'slaying' in itemLabel and weapons_slayer_regular = 199        pushlist goodItems item100    elseif 'force' in itemLabel and weapons_damage_force = 1101        pushlist goodItems item102    elseif 'power' in itemLabel and weapons_damage_power = 1103       pushlist goodItems item104    elseif 'vanquishing' in itemLabel and weapons_damage_vanq = 1105        pushlist goodItems item106    elseif 'eminently accurate' in itemLabel and weapons_accuracy_eminently = 1107        pushlist goodItems item108    elseif 'exceedingly accurate' in itemLabel and weapons_accuracy_exceedingly = 1109        pushlist goodItems item110    elseif 'supremely accurate' in itemLabel and weapons_accuracy_supremely = 1111        pushlist goodItems item112    else113        pushlist recycleItems item114    endif115    @ignore item116endwhile117 118#armor119overhead "Checking Armor" 88120while findtype 7026|7027|7029|7031|7033|7034|7035|7107|7109|31002|31130|5056|5059|5060|5061|5063|5070|5074|5075|5076|5078|5085|5089|5090|5101|5103|5105|5106|5129|5131|5132|5135|5138|5139|5142|5143|5144|5146|5201|5203|5204|5205|5207|7169|7170|7173|7175|7177|7179|7181|7610|7947|31003|31004|31005|31006|31007|31008|31009|31010|31011|31012|31015|31191 container_magicSorter_source as item121    getlabel item itemLabel122    if 'unidentified' in itemLabel123        overhead "Skipping {{itemLabel}}"124        @ignore item125        continue126    endif127    @setvar keepItem 0128 129    # Decide what to keep130    if 'hardening' in itemLabel and armor_protection_hardening = 1131        pushlist goodItems item132    elseif 'fortification' in itemLabel and armor_protection_fortification = 1133       pushlist goodItems item134    elseif 'invulnerability' in itemLabel and armor_protection_invul = 1135        pushlist goodItems item136    else137        pushlist recycleItems item138    endif139    @ignore item140endwhile141 142#book143overhead "Checking spellbooks" 88144while findtype 'spellbook' container_magicSorter_source 2606 as item145    getlabel item itemLabel146    @setvar keepItem 0147    if 'unidentified' in itemLabel148        overhead "Skipping {{itemLabel}}"149        @ignore item150        continue151    endif152 153    # Decide what to keep154    if 'eminently potent' in itemLabel and book_potency_eminently = 1155        pushlist goodItems item156    elseif 'exceedingly potent' in itemLabel and book_potency_exceedingly = 1157        pushlist goodItems item158    elseif 'supremely potent' in itemLabel and book_potency_supremely = 1159        pushlist goodItems item160    elseif 'force' in itemLabel and book_damage_force = 1161        pushlist goodItems item162    elseif 'power' in itemLabel and book_damage_power = 1163        pushlist goodItems item164    elseif 'vanquishing' in itemLabel and book_damage_vanq = 1165        pushlist goodItems item166    else167        pushlist recycleItems item168    endif169    @ignore item170endwhile171 172#instruments173overhead "Checking instruments" 88174while findtype 3740|3742|3762|3763|10245|20006|20008|20010|20012|20014|20016 container_magicSorter_source as item175    getlabel item itemLabel176    @setvar keepItem 0177    if 'unidentified' in itemLabel178        overhead "Unidentified  {{itemLabel}}"179        @ignore item180        continue181    endif182 183    # Decide what to keep184    if 'lesser slaying' in itemLabel and instrument_slayer_lesser = 1185        pushlist goodItems item186    elseif 'greater slaying' in itemLabel and instrument_slayer_greater = 1187        pushlist goodItems item188    elseif 'slaying' in itemLabel and instrument_slayer_regular = 1189        pushlist goodItems item190    elseif 'eminently' in itemLabel and instrument_artistry_eminently = 1191        pushlist goodItems item192    elseif 'exceedingly' in itemLabel and instrument_artistry_exceedingly = 1193        pushlist goodItems item194    elseif 'supremely' in itemLabel and instrument_artistry_supremely = 1195        pushlist goodItems item196    else197        pushlist recycleItems item198    endif199    @ignore item200endwhile201 202overhead "Storing good items..."203foreach item in goodItems204    getlabel item itemLabel205    overhead "Keeping {{itemLabel}}" 88206    lift item207    wait 250208    drop container_magicSorter_keep -1 -1 -1209    wait 250210endfor211 212overhead "Taking the junk..."213foreach item in recycleItems214    getlabel item itemLabel215    overhead "Trashing {{itemLabel}}" 243216    lift item217    wait 250218    drop backpack -1 -1 -1219    wait 250220    while diffweight < 10 or insysmsg 'That container cannot hold'221        if auto_recycle = 1222            if findtype "sewing kit" 'backpack' as tool223                overhead "Recycling via sewing kit!" 88224                dclick tool225                waitforgump 949095101226                while not ingump 'Recycle All Magical'227                    gumpresponse 2228                    waitforgump 949095101229                endwhile230                gumpresponse 3231                wft 500232                target self233                wait 500234            else235                overhead "Cannot find any sewing kits, stopping!" 32236                stop237            endif238        else239            overhead "Please recycle, you are full" 88240            wait 5000241        endif242    endwhile243endfor244 245# recycle at the end246if auto_recycle = 1247    if findtype "sewing kit" 'backpack' as tool248        overhead "Recycling via sewing kit!" 88249        dclick tool250        waitforgump 949095101251        while not ingump 'Recycle All Magical'252            gumpresponse 2253            waitforgump 949095101254        endwhile255        gumpresponse 3256        wft 500257        target self258        wait 500259        waitforgump 949095101260        gumpclose 261    endif262endif263overhead "All done, thanks for using!" 88