Skip to content
Outlands Hub

Razor script

Dump loot into my ship hold

by dabiri · 132 lines
Download

This one expects two variables to be pre-set for my hold, and for a bag in my hold. It'll keep the valuable lightweight stuff like cores in my backpack, and will unload stuff like gold, booty, dubs, unidentified items Spyglass Routine

CombatSailingOrganizing
Dump loot into my ship hold.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/c0e8e44e-fc44-444e-9853-c70b6929ad80 for latest2# Automation by Jaseowns3## Script: Dump loot into my ship hold4## Created by: dabiri#05#############################################6 7//This one expects two variables to be pre-set for my hold, and for a bag in my hold.8//It'll keep the valuable lightweight stuff like cores in my backpack, and will unload stuff like gold, booty, dubs, unidentified items9//Spyglass Routine10if not findtype 5365 backpack11    overhead "No spyglass"12    stop13endif14 15if not cooldown 'Spyglass' and not queued16    if targetexists17        overhead 'Skipping spyglass' 1518        cooldown 'Spyglass' 200019    else20        gumpclose 289002094021        dclicktype 536522        wft 50023        if targetexists neutral24            target 'self'25            waitforgump 289002094026            gumpresponse 4 289002094027            waitforgump 289002094028            cooldown 'Spyglass' 630029        endif30 31    endif32endif33 34@setvar globalTimeout 65035overhead 'Organizing'36 37if not varexist myShipHold38    overhead 'Target the ship hold' 2839    @setvar! myShipHold40endif41 42if not varexist holdLootBag43    overhead 'Target a bag to hold unidenfitied items' 2844    @setvar! holdLootBag45endif46 47clearignore 48 49overhead myShipHold50dclick myShipHold51getlabel backpack pingCheck52 53overhead holdLootBag54dclick holdLootBag55getlabel backpack pingCheck56 57overhead 'Moving currency'58//Move gold59while findtype "gold coin" backpack as dgold60overhead 'Moving gold'61    lift dgold 6000062    drop myShipHold -1 -1 063    wait globalTimeout64endwhile65 66//Move dubs67while findtype "doubloon" backpack as dubs68    overhead 'Moving dubs'69    lift dubs 6000070    drop myShipHold -1 -1 071    wait globalTimeout72endwhile73 74overhead 'done moving currency'75 76//Move leather77while findtype "cut up leather" backpack as leathers78    overhead 'Moving leather'79    lift leathers 50080    drop myShipHold -1 -1 081    while queued82        // Waits for lift and drop83    endwhile84endwhile85 86clearignore 87 88overhead "Dumping unidentified items"89while findtype 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|3834|9917|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|10245|20006|20008|20010|20012|20014|20016|22187|30988|30989|30990|30991|30992|30993|30994|30995|30996|30997|30998|30999|31000|31001|31002|31014|31017|31019|31021|31023|31025|31027|31029|31031|31033|31035|31037|31038|31041|31043|31045|31047|31049|31051|31053|31055|31128|31130|31141|31142|31176|31178|31180|31182|31184|31186|31188|31190 backpack as item90    getlabel item checkForUnidentified91        if "unidentified" in checkForUnidentified92            lift item 500093            drop holdLootBag -1 -1 094        endif 95        @ignore item96endwhile97 98 99//Spyglass Routine100if not findtype 5365 backpack101    overhead "No spyglass"102    stop103endif104 105if not cooldown 'Spyglass' and not queued106    if targetexists107        overhead 'Skipping spyglass' 15108        cooldown 'Spyglass' 2000109    else110        gumpclose 2890020940111        dclicktype 5365112        wft 500113        if targetexists neutral114            target 'self'115            waitforgump 2890020940116            gumpresponse 4 2890020940117            waitforgump 2890020940118            cooldown 'Spyglass' 6300119        endif120 121    endif122endif123 124overhead 'Dumping stackables'125while findtype 45315|3856|3859|3861|3862|3865|3873|3877|3878|3885|7981|7982|7983|7984|7985|7986|7987|7988|7989|7990|7991|7992|7993|7994|7995|7996|7997|7998|7999|8000|8001|8002|8003|8004|8005|8006|8007|8008|8009|8010|8011|8012|8013|8014|8015|8016|8017|8018|8019|8020|8021|8022|8023|8024|8025|8026|8027|8028|8029|8031|8032|8033|8034|8035|8036|8037|8038|8039|8041|8042|8043|8044|22326|3962|3963|3972|3973|3974|3976|3980|3981|7163|3903|7708|17617|17619|2426 backpack as item126    lift item 5000127    drop myShipHold -1 -1 0128    @ignore item129endwhile130 131overhead 'Launching PoonerBackgroundScript'132script "PoonerBackgroundScript"