Skip to content
Outlands Hub

Razor script

Dress Suite - Main

by thisideasucks · 119 lines
Download
Dress Suite - Main.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/76e1658a-ef42-4ebf-8b54-7ace855388d5 for latest2# Automation by Jaseowns3## Script: Dress Suite - Main4## Created by: thisideasucks#05#############################################6 7// Dress Suite - Main8 9// Set script wait10@setvar! globalWait 50011// Set whether to call equip script12@setvar! callEquipScript 113// Set whether to sort unidentified loot into a bag/box14@setvar! sortLoot 115// Set whether to call organizer agents and define organizer agent numbers to call in the list below16@setvar! callOrganizers 117removelist organizerList; createlist organizerList18pushlist organizerList 2; pushlist organizerList 4; pushlist organizerList 5; pushlist organizerList 619// Set whether to restock to resource stockpile20@setvar! resourceRestock 121// Set whether to restock/resupply to storage shelf22@setvar! storageRestock 123@setvar! storageResupply 124// Set whether to restock to magic item vault25@setvar! magicRestock 126// Set whether to repair gear and wait time for repair to complete27@setvar! repairGear 128@setvar! repairWait 300029// Set whether to full clear gear and equipment to refresh all items during cleanup30// Disable storage shelf setting 'Keep Aspect Items' to allow aspected item pickup31@setvar! fullClean 032// Set whether to call script to update Storage Shelf Loadout33@setvar! updateLoadout 034 35// Sort Loot into box (You can use a secure container on the floor nearby)36if not varexist lootBox and sortLoot = 137    setvar lootBox38elseif varexist lootBox and sortLoot = 139    removelist loot_items; createlist loot_items40    pushlist loot_items 31169|31172|31017|31019|31021|31023|31025|31027|31029|31031|31033|31035|31037|31038|31041|31043|31045|31047|31049|31051|31053|31055|3920|5042|5117|30990|30993|30994|30995|31184|31186|7026|7027|7029|7031|7033|7034|7035|7107|7109|31002|31130|3570|3571|3572|3573|3834|22187|31141|31142|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|3740|3742|3762|3763|10245|20006|20008|20010|20012|20014|20016|3719|3922|3938|5121|5123|5125|30989|30992|30996|30997|30998|31176|31188|3568|3713|3721|3932|5040|5044|5112|5127|5177|5179|5181|30991|30999|31000|31001|31014|31178|31180|31182|3909|3911|3913|3915|3917|3934|3937|5046|5049|5115|5119|5182|5185|5187|30988|31128|3119041    foreach loot in loot_items42        sysmsg loot43        while findtype loot backpack as item44            overhead item; getlabel item description; overhead description 8845            if unidentified in description46                lift item; wait globalWait; drop lootBox -1 -1 -147            else48                ignore item49                wait globalWait50            endif51        endwhile52    endfor53endif54 55// Run Organizer Agents56if callOrganizers = 157    foreach number in organizerList58        organizer number; wait globalWait59    endfor60endif61 62// Repair gear63if findtype "repair bench" ground -1 -1 2 as repair64    clearsysmsg; dclick repair; getlabel backpack 65    if insysmsg "You do not have any items equipped or in your backpack in need of repairs."66    else67        wait repairWait68    endif69endif70 71// Restock to resource stockpile72if findtype "resource container" ground -1 -1 2 as resource and resourceRestock = 173    menu resource 0; wft globalWait; target self; wait globalWait; gumpclose74endif75 76// Remove all equipment if fullClean is set77if fullClean = 178    if findlayer self gloves as item; lift item; drop self; endif79    if findlayer self innertorso as item; lift item; drop self; endif80    if findlayer self head as item; lift item; drop self; endif81    if findlayer self neck as item; lift item; drop self; endif82    if findlayer self pants as item; lift item; drop self; endif83    if findlayer self neck as item; lift item; drop self; endif84    if findlayer self arms as item; lift item; drop self; endif85    if findlayer self rightHand as item; lift item; drop self; endif86    if findlayer self offHand as item; lift item; drop self; endif87    if findlayer self outerBody as item; lift item; drop self; endif88endif89 90// Call script to update storage shelf loadout91if updateLoadout = 1 and not varexist loadoutUpdated92    script "Dress Suite - Shelf Loadout"93endif94 95// Restock to storage shelf - Twice to clear pouches/bags96if findtype "storage shelf" ground -1 -1 2 as shelf and storageRestock = 197    menu shelf 0; wft globalWait; target self; wait globalWait98    menu shelf 0; wft globalWait; target self; wait globalWait99endif100 101// Resupply to storage shelf102if findtype "storage shelf" ground -1 -1 2 as shelf and storageResupply = 1103    menu shelf 1; wait globalWait; gumpclose104endif105 106// Restock to magic item vault107if findtype "magic item chest" ground -1 -1 2 as vault and magicRestock = 1108    menu vault 0; wft globalWait; target self; wait globalWait109elseif findtype "57514" ground -1 -1 2 as vault and magicRestock = 1110    menu vault 0; wft globalWait; target self; wait globalWait111endif112 113// Announce completed114overhead "Dress Suite - Main completed" 88115 116// Call Equip Script117if callEquipScript = 1118    script "Dress Suite - Equip"119endif