Skip to content
Outlands Hub

Razor script

WIP: Auto Societies

by Jaseowns · 189 lines
Download

Jaseowns soc attempt - live https://youtube.com/live/oice-0c8xE4?feature=share

WIP Auto Societies.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/0f880c75-015f-4e2c-b28e-fe91d619f823 for latest2# Automation by Jaseowns3## Script: WIP: Auto Societies4## Created by: Jaseowns#66945#############################################6 7// Jaseowns soc attempt - live8// https://youtube.com/live/oice-0c8xE4?feature=share9@setvar! debugJobs 010@setvar! globalTimeout 65011 12if debugJobs = 013 14    ############15    ### Bring us to Order of Armorers16    #########17    gumpclose  155429479618    while not gumpexists 155429479619        say '[jobs'    20        wait 20021    endwhile22    gumpresponse 10 155429479623    waitforgump 1554294796 500024 25    ############26    ### Open crafting queue27    #########28    gumpclose 45355406229    while not gumpexists 45355406230        say '[cq'  31        wait 20032    endwhile33 34    # Create a new queue35    gumpresponse 5 45355406236    wait 20037 38    if insysmsg "You are already at the maximum number of crafting queues allowed."39        overhead "We need you to delete a queue" 3440        sysmsg "We need you to delete a queue" 3441        gumpclose  155429479642        wait 500043        replay44    endif45endif46 47@setvar! foundJobs 048 49// exceptional / hue / item type50// 100s of if statements here51 52@setvar! resourceStockPileGump 185900511853@setvar! craftingQueueGump 45355406254@setvar! tailoringSmithGump 94909510155@setvar! jobsGump 155429479656 57if ingump "shadowhide leather legging" 155429479658 59 60        /// handle running out of materials61            // check insysmsg for not materials if crafting queue stops62        // handle jobs we've already completed63        64 65    while not ingump "shadowhide leather legging" 453554062 66 67        gumpclose resourceStockPileGump68        gumpclose tailoringSmithGump69        70        if findtype "resource container" ground -1 -1 2 as resources71            while not gumpexists resourceStockPileGump72                dclick resources73                waitforgump resourceStockPileGump 500074            endwhile75            gumpresponse 7 resourceStockPileGump76            waitforgump resourceStockPileGump 500077            while not gumpexists tailoringSmithGump78                gumpresponse 106 resourceStockPileGump79                waitforgump tailoringSmithGump 500080            endwhile81        endif82        83        gumpresponse 101 tailoringSmithGump84        waitforgump tailoringSmithGump 500085        86        gumpresponse 404 tailoringSmithGump87        waitforgump tailoringSmithGump 200088        waitforgump craftingQueueGump 200089    90        if not ingump "shadowhide leather legging" 453554062 91            # delete what we just added92            gumpresponse 100 craftingQueueGump93            # go to next hue of material94            gumpresponse 13 tailoringSmithGump95        endif96    97    endwhile98    99    gumpresponse 600 craftingQueueGump100    waitforgump craftingQueueGump 2000101    102    if findtype "resource container" ground -1 -1 2 as resources103        while not targetexists 104            gumpresponse 10 craftingQueueGump105            wft 500106        endwhile107        target resources108        wait globalTimeout109    endif110    111    while not insysmsg "You have completed a society job"112        113        if ingump "Begin Crafting" 453554062114            overhead "Starting Queue..." 88115            gumpresponse 7 453554062116            wait globalTimeout117        endif118        119        while ingump "Stop Crafting" 453554062120            sysmsg "Working Crafting Queue..." 88121            wait globalTimeout122        endwhile123        124    endwhile125 126    gumpresponse 100 craftingQueueGump127 128endif129 130if ingump "exceptional leather arms" 1554294796131    132 133 134    overhead "We do infact see arms"135    if foundJobs = 0136        @setvar! foundJobs 1137    elseif foundJobs = 1138        @setvar! foundJobs 2139    elseif foundJobs = 2140        @setvar! foundJobs 3141    endif142    143    stop144endif145 146 147 148if ingump "copperhide fishing net" 1554294796149    overhead "We do infact see fishing net"150    if foundJobs = 0151        @setvar! foundJobs 1152    elseif foundJobs = 1153        @setvar! foundJobs 2154    elseif foundJobs = 2155        @setvar! foundJobs 3156    endif157endif158 159 160 161if foundJobs = 3162    overhead "we found all the jobs move to next page"163    stop164endif165 166 167 168############169### Read page 1 of the list170#########171// handle knowing what type material and item type172 173// lets assume its shadowhide leather leeggins174 175// open the crafting queue and make a new one176// open tailoring kit177// go find the item in the list178    // update the matieral type to match (shadowhide) if needed179// add item to queue180 181// blackflame_ for recycling, i think you can always just set it to recycle all, because the items are consumed if they're on the job182    // confirmed, we can always set the recycle all183// to avoid needing to know qty, you could just do 1 and let it run until the job is done. (initsu)184 185// edit the qty and make sure the type matches186    // exceptional vs regular187    // if excpeitonal we need to set the recycle to all non exception188    189