Page 1 of 1

Fix this script for pyt item on the ground

Posted: 2009-04-24 09:55:17
by soneca
Hi all. if somebody will be able to help me. I need chance something in this script, but i don't know how.

I want that always that i catch the random item, put it on the ground and don't in my bag. Is possible?



Thx for all! Cya!

Code: Select all

stealing:
    if uo.InJournal("Items found: 1") then
    wait(80)
    uo.deletejournal()
    goto snoop
    end if

   if uo.InJournal("This item can not be stolen.") then
    wait(80)
    uo.deletejournal()
    goto snoop
    end if

    if uo.InJournal("invalid object:finditem") then
    wait(80)
    uo.deletejournal()
    goto snoop
    end if

    UO.findtype('-1', '-1', 'lastcontainer')
    if uo.findcount() > 0 then
    uo.addobject('aleatorio', 'finditem')
    wait(100)
    uo.waittargetObject('aleatorio')
    uo.useskill('Stealing')
    wait(5500)
    goto stealing
    else
    goto snoop
    end if

end sub