Page 1 of 1

Easy script

Posted: 2010-05-09 15:13:48
by Kaar
Hi! I play in a Run Uo shard and I use injection. I need a easy script that lay on the ground all mineral (iron, gold, ecc ecc).
It is so because in our shard I can't use mining when I'm in full load in my bag.

Please help me... Thanks a lot!

Re: Easy script

Posted: 2010-05-10 04:02:37
by kostjan
Explain in detail on.... :!:

Re: Easy script

Posted: 2010-05-10 08:20:13
by Beyonder
Something like this would do:

Fill the oreTypes array with all types of stuff you need to drop (find it with ,info command). Dont forget to change oreTypeCount to count of elements in the array.

Code: Select all

sub dropOres()
    dim oreTypes[50]
    oreTypes[0] = '0x1234'
    oreTypes[1] = '0x2345'
    var oreTypeCount = 2

    var i
    for i=0 to oreTypeCount-1
        UO.FindType(oreTypes[i],-1,'my')
        while (UO.FindCount())
            UO.DropHere('finditem')
            if (UO.FindCount() > 1) then
                wait(500)
            endif
            UO.FindType(oreTypes[i],-1,'my')
        wend
    endfor
endsub