Signup Now
Results 1 to 2 of 2

Thread: Manualy looting

  1. #1
    Free User Akiller's Avatar
    Join Date
    Aug 2015
    Posts
    240
    Reputation
    33
    Rep Power
    18

    Manualy looting

    Loot all items except those in lst.

    local lstnoloot = {'torch', 'hunting spears', 'blank rune', 'royal spear', 'hand axe'}
    local dstibp = 'aniversary backpack'
    local dstsbp = 'aniversary backpack'
    local gpbp = 'aniversary backpack'
    local lootgps = true
    local function tablecontains(table, e)
    for _, v in pairs(table) do
    if v == e then
    return true
    end
    end
    return false
    end
    auto(100)
    for _,v in pairs(getopencontainers()) do
    if (v.name:find("The") or v.name:find("Demonic") or v.name:find("Dead") or v.name:find("Slain") or v.name:find("Dissolved") or v.name:find("Remains") or v.name:find("Elemental")) then
    ncontainer = getcontainer(v.index)
    for i = 1, ncontainer.itemcount do
    iditem = ncontainer.item[i].id
    if iditem == 3031 and lootgps then
    moveitems(iditem, gpbp, ncontainer.name) waitping()
    elseif not tablecontains(lstnoloot, itemname(iditem)) and itemproperty(iditem, ITEM_STACKABLE) and iditem ~= 3031 then
    moveitems(iditem, dstsbp, ncontainer.name) waitping()
    elseif not tablecontains(lstnoloot, itemname(iditem)) and not itemproperty(iditem, ITEM_STACKABLE) then
    moveitems(iditem, dstibp, ncontainer.name) waitping()
    end
    end
    end
    end


    Loot all items above price (not all items got price, watch out)


    local dstibp = 'aniversary backpack'
    local dstsbp = 'aniversary backpack'
    local gpbp = 'aniversary backpack'
    local pickprice = 120
    local lootgps = true

    auto(100)
    for _,v in pairs(getopencontainers()) do
    if (v.name:find("The") or v.name:find("Demonic") or v.name:find("Dead") or v.name:find("Slain") or v.name:find("Dissolved") or v.name:find("Remains") or v.name:find("Elemental")) then
    ncontainer = getcontainer(v.index)
    for i = 1, ncontainer.itemcount do
    iditem = ncontainer.item[i].id
    if iditem == 3031 and lootgps then
    moveitems(iditem, gpbp, ncontainer.name) waitping()
    elseif iteminfo(iditem).sellPrice >= pickprice and itemproperty(iditem, ITEM_STACKABLE) and iditem ~= 3031 then
    moveitems(iditem, dstsbp, ncontainer.name) waitping()
    elseif iteminfo(iditem).sellPrice >= pickprice and not itemproperty(iditem, ITEM_STACKABLE) then
    moveitems(iditem, dstibp, ncontainer.name) waitping()
    end
    end
    end
    end


    Looting all items which u've got on looting list
    Made by Raphael

    auto(100)
    foreach lootingitem l do
    if itemcount(l.id) - itemcount(l.id, l.destination) > 0 then
    moveitems(l.id, l.destination)
    waitping()
    end
    end
    Last edited by Akiller; 12-31-2015 at 10:00 AM.

  2. #2
    Free User
    Join Date
    Nov 2015
    Posts
    39
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by Akiller View Post

    Looting all items which u've got on looting list
    Made by Raphael

    auto(100)
    foreach lootingitem l do
    if itemcount(l.id) - itemcount(l.id, l.destination) > 0 then
    moveitems(l.id, l.destination)
    waitping()
    end
    end
    been looking for this, thx man!

 

 

Posting Permissions

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