Back to "ultimate mining" tags

Ultimate Mining Smelter Script by Jaseowns

1# Ultimate Mining Smelter Script by Jaseowns
2# UO Outlands
3# Works as "." if using the JaseownsUltimateMinerXML file
4
5overhead "Automatically Smelting..." 88
6clearsysmsg 
7
8@clearignore 
9
10while findtype "iron ore" backpack as jore
11    dclick jore
12    wait globalTimeout
13    if insysmsg "You do not see any nearby forges"
14        overhead "No forge nearby" 34
15        stop
16    endif
17endwhile
18
19while findtype 291|292 ground -1 -1 2 as smeltPacky
20    if noto smeltPacky = "friend"
21        getlabel smeltPacky testPacky
22        if "[0/2000" in testPacky
23            // do nothing
24        else
25            dclick smeltPacky
26            wait globalTimeout
27            while findtype "iron ore" smeltPacky as jore
28                dclick jore
29                wait globalTimeout
30                if insysmsg "You do not see any nearby forges"
31                    overhead "No forge nearby" 34
32                    @clearignore
33                    stop
34                endif
35            endwhile
36        endif
37    endif
38    @ignore smeltPacky
39endwhile
40
41if findtype "pouch" backpack 38 as trapped
42    while findtype 7154 backpack as jngots
43        lift jngots 60000
44        drop trapped -1 -1 -1
45        wait globalTimeout
46        @ignore jngots
47    endwhile
48endif
49
50@clearignore