Back to "pet" tags

WIP: Auto Societies by Jaseowns

// Jaseowns soc attempt - live // https://youtube.com/live/oice-0c8xE4?feature=share @setvar! debugJobs 0 @setvar! globalTimeout 650 if debugJobs = 0 ############ ### Bring us to Order of Armorers ######### gumpclose 1554294796 while not gumpexists 1554294796 say '[jobs' wait 200 endwhile gumpresponse 10 1554294796 waitforgump 1554294796 5000 ############ ### Open crafting queue ######### gumpclose 453554062 while not gumpexists 453554062 say '[cq' wait 200 endwhile # Create a new queue gumpresponse 5 453554062 wait 200 if insysmsg "You are already at the maximum number of crafting queues allowed." overhead "We need you to delete a queue" 34 sysmsg "We need you to delete a queue" 34 gumpclose 1554294796 wait 5000 replay endif endif @setvar! foundJobs 0 // exceptional / hue / item type // 100s of if statements here @setvar! resourceStockPileGump 1859005118 @setvar! craftingQueueGump 453554062 @setvar! tailoringSmithGump 949095101 @setvar! jobsGump 1554294796 if ingump "shadowhide leather legging" 1554294796 /// handle running out of materials // check insysmsg for not materials if crafting queue stops // handle jobs we've already completed while not ingump "shadowhide leather legging" 453554062 gumpclose resourceStockPileGump gumpclose tailoringSmithGump if findtype "resource container" ground -1 -1 2 as resources while not gumpexists resourceStockPileGump dclick resources waitforgump resourceStockPileGump 5000 endwhile gumpresponse 7 resourceStockPileGump waitforgump resourceStockPileGump 5000 while not gumpexists tailoringSmithGump gumpresponse 106 resourceStockPileGump waitforgump tailoringSmithGump 5000 endwhile endif gumpresponse 101 tailoringSmithGump waitforgump tailoringSmithGump 5000 gumpresponse 404 tailoringSmithGump waitforgump tailoringSmithGump 2000 waitforgump craftingQueueGump 2000 if not ingump "shadowhide leather legging" 453554062 # delete what we just added gumpresponse 100 craftingQueueGump # go to next hue of material gumpresponse 13 tailoringSmithGump endif endwhile gumpresponse 600 craftingQueueGump waitforgump craftingQueueGump 2000 if findtype "resource container" ground -1 -1 2 as resources while not targetexists gumpresponse 10 craftingQueueGump wft 500 endwhile target resources wait globalTimeout endif while not insysmsg "You have completed a society job" if ingump "Begin Crafting" 453554062 overhead "Starting Queue..." 88 gumpresponse 7 453554062 wait globalTimeout endif while ingump "Stop Crafting" 453554062 sysmsg "Working Crafting Queue..." 88 wait globalTimeout endwhile endwhile gumpresponse 100 craftingQueueGump endif if ingump "exceptional leather arms" 1554294796 overhead "We do infact see arms" if foundJobs = 0 @setvar! foundJobs 1 elseif foundJobs = 1 @setvar! foundJobs 2 elseif foundJobs = 2 @setvar! foundJobs 3 endif stop endif if ingump "copperhide fishing net" 1554294796 overhead "We do infact see fishing net" if foundJobs = 0 @setvar! foundJobs 1 elseif foundJobs = 1 @setvar! foundJobs 2 elseif foundJobs = 2 @setvar! foundJobs 3 endif endif if foundJobs = 3 overhead "we found all the jobs move to next page" stop endif ############ ### Read page 1 of the list ######### // handle knowing what type material and item type // lets assume its shadowhide leather leeggins // open the crafting queue and make a new one // open tailoring kit // go find the item in the list // update the matieral type to match (shadowhide) if needed // add item to queue // blackflame_ for recycling, i think you can always just set it to recycle all, because the items are consumed if they're on the job // confirmed, we can always set the recycle all // to avoid needing to know qty, you could just do 1 and let it run until the job is done. (initsu) // edit the qty and make sure the type matches // exceptional vs regular // if excpeitonal we need to set the recycle to all non exception