Josh said that he would give a position and so far nothing
Josh said that he would give a position and so far nothing
DONE! Just add the ID of the FRESH DEAD BODY on this script, so it will stop trying to open the body after 5-10 secs.
this is far from bieing a good persistent but at least it works. It would be great if someone comes up with a better one!
init start
corpseID = {"4311 ","4312"}
init end
auto(100)
function takeMonster()
for i=-8,9 do
for j=-6,7 do
local posX = $posx + i
local posY = $posy + j
local items = gettile(posX,posY, $posz)
for x=1, items.count do
if(table.find(corpseID,tostring(items.item[x].id)))then
return items.item[x].id, posX, posY
end
end
end
end
end
local deadID,posX,posY = takeMonster()
if(deadID~=nil)then
pausewalking(5000)
openitem(deadID, ground(posX, posY, $posz))
end
Last edited by awesomee; 11-26-2017 at 11:38 PM.