Signup Now
Page 15 of 15 FirstFirst ... 5131415
Results 141 to 143 of 143
  1. #141
    Free User
    Join Date
    Aug 2015
    Posts
    21
    Reputation
    10
    Rep Power
    0
    Josh said that he would give a position and so far nothing

  2. #142
    Free User
    Join Date
    Jan 2016
    Posts
    18
    Reputation
    10
    Rep Power
    0
    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.

  3. #143
    Free User
    Join Date
    Nov 2017
    Posts
    25
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by awesomee View Post
    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
    You did it?

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •