dofile("itemlib.lua")
------------------------------------------------------------
-- how to find corpses nearby and loots gold+oints from them
-- and claim them
------------------------------------------------------------
-- find corpses
corpses = item:scan():ground(2):tp(8198)
-- open corpses
for i = 1,#corpses do
corpses:pop(i):open():wait(500)
end
-- search for gold + oints and loot them
loots = item:scan():cont(corpses:getIDs()):tp({3821,3620})
for i = 1,#loots do
loots:pop(i):drop(UO.BackpackID)
end
-- claim them
pop:say("[claim"):waitTarget()
for i = 1,#corpses do
corpses:pop(i):target():waitTarget()
end
UO.Key("ESC")
-- SIMPLES!!