Help is there a script for auto looting MULTI corpse?

Ask for scripts here

Moderators: Murderator+, Murderator

Post Reply
fantasticpow
Posts: 6
Joined: 2008-07-25 07:57:51

Help is there a script for auto looting MULTI corpse?

Post by fantasticpow »

I'm looking if theres a script or command to auto loot multiple corpses?

maybe something like this


sub All corpse opened()
UO.FindType('0x0EED',"-1",'allcorpse')
If UO.FindCount() > 0 then
repeat
UO.Grab(0, "finditem")
UO.FindType('0x0EED',"-1",'allcorpse')
until UO.FindCount() == 0
wait(500)
UO.Print(' You have ' + Str( UO.Count('0x0EED','0x0000') ) + ' Gold' )
EndIf
end sub
Destruction
Junior Expert
Posts: 3221
Joined: 2004-06-24 22:08:56

Post by Destruction »

Code: Select all

var corpse
uo.findtype( "0x2006", "-1", "ground" )
while uo.findcount()
    corpse = uo.getSerial( "finditem" )
    uo.findtype( "0x0EED", "-1", corpse )
    while uo.findcount()
       
        uo.findtype( "0x0EED", "-1", corpse )
    wend
    uo.findtype( "0x2006", "-1", "ground" )
wend
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Telegram: @tatikom
Post Reply