Comment
Author: Admin | 2025-04-28
If insysmsg "it appears" overhead "[unlocking chest]" 44 dclick key waitfortarget 1000 target chest wait 650 endif endwhile getlabel chest chestLabel if "items" in chestLabel dclick key waitfortarget 1000 target chest overhead "[chest closed]" 54 endif #********** AUTO-DETECT NEARBY FORGES AND AUTO SMELT ORE FROM BACKPACK AND PACK HORSE/LLAMA ********** if findtype "forge" ground -1 -1 3 as forgy and 0 = isRecalling overhead " * FORGE NEAR HERE *" 88 forgy while find forgy ground -1 -1 3 and findtype "iron ore" backpack as ore if enemyFound = 0 if insysmsg! "Now tracking" or insysmsg! "Distance to" @setvar! enemyFound 1 endif endif if autoRecall = 1 and enemyFound = 1 or cooldown 'Danger' > 0 @setvar! isRecalling 1 break endif dclick ore getlabel backpack xxx wait 650 if insysmsg "you smelt" overhead "* backpack ore smelted *" 88 elseif insysmsg "You do not see any nearby forges" overhead "* forge too far away *" 44 endif endwhile if find myPack ground -1 -1 2 getlabel myPack packLabel if "[0/2000" in packLabel #pack is empty else dclick myPack wait 650 while find forgy ground -1 -1 3 and findtype "iron ore" myPack as ore if enemyFound = 0 if insysmsg! "Now tracking" or insysmsg! "Distance to" @setvar! enemyFound 1 endif endif if autoRecall = 1 and enemyFound = 1 or cooldown 'Danger' > 0 @setvar! isRecalling 1 interrupt break endif dclick ore getlabel backpack xxx wait 650 if insysmsg "you smelt" overhead "* pack ore smelted *" 88 getlabel myPack packLabel overhead "{{packLabel}}" 11 sysmsg "{{packLabel}}" 11 elseif insysmsg "you do not see" overhead "* pack too far smelt *" 44 myPack endif endwhile endif endif elseif findtype "forge" ground -1 -1 4 as forgy overhead " * FORGE HERE *" 88 forgy elseif findtype "forge" ground -1 -1 6 as forgy overhead " * FORGE HERE *" 88 forgy elseif findtype "forge" ground -1 -1 8 as forgy overhead " * FORGE HERE *" 88 forgy elseif findtype "forge" ground -1 -1 10 as forgy overhead " * FORGE HERE *" 88 forgy elseif findtype "forge" ground -1 -1 12 as forgy overhead " * FORGE HERE *" 88 forgy endif endif #sysmsg "Loop cycle elapsed : {{cycleTimer}}"endwhile
Add Comment