markdwags / Razor

Razor is a free tool designed to help with simple tasks while playing Ultima Online.
https://www.razorce.com
GNU General Public License v3.0
139 stars 96 forks source link

Conditions & Loops #192

Closed vadimkara closed 2 years ago

vadimkara commented 2 years ago
if insysmsg 'There is no metal here to mine.'
    overhead 'Need to move...' 88
elseif queued
    overhead 'Queue is active...' 88
else
    if findtype 'pickaxe' backpack
        for 4
            clearsysmsg
            overhead 'Mining...' 88
            dclicktype 'pickaxe' backpack
            waitfortarget
            targetrelloc 0 0
            wait 4000
        endfor
        if findtype 'iron ore' backpack
            organizer 2
            wait 5000
        elseif queued
            overhead 'Queue is active...' 88
        else
            overhead 'No items to organize...' 88
        endif
    elseif queued
        overhead 'Queue is active...' 88
    else
        overhead 'No tools...' 88
    endif
endif
loop

Conditions not working as expected 1 else block always working despite of if block also working

markdwags commented 2 years ago

Not all system messages that show up on the client are captured by Razor, shard owners have some control over which ones will and won't make it into Razor's queue. Mining is a common one.

Please check with the shard you play on first.