help..
@wybocenooba i don't know if u get the action or not but try that
init start
local Config = {
NonStackableContainer = 'heart backpack',
NonStackables = {"golden legs", "golden sickle", "demon horn", "small emerald", "small amethyst", "small topaz", "fire mushroom", "demonic essence", "devil helmet", "platinum coin", "demon shield", "mastermind shield", "magic plate armor", "orb", "purple tome", "red tome", "giant sword", "assassin star", "ultimate health potion", "great spirit potion", "talon"}
}
init end
auto(10,50)
setsetting('Settings/MouseMoveSpeed', '9')
for key,container in pairs(getopencontainers()) do
if (container.name:find("The") or container.name:find("Demonic") or container.name:find("Dead") or container.name:find("Slain") or container.name:find("Dissolved") or container.name:find("Remains") or container.name:find("Elemental")) then
for _, loot in ipairs(Config.NonStackables) do
if (itemcount(loot,container.name) > 0) then
setsetting('Settings/MouseMoveSpeed', 'Instantaneous')
moveitems(loot, Config.NonStackableContainer, container.name)
end
end
end
end
Good action ! 100% work
This should work, change stopGold
init start
local conts = {'Slain', 'Dead', 'Remains'}
local clickWait = {10, 30} -- it means X to X ms
local pressWait = {10, 30} -- it means X to X ms
local stopGold = 200 -- cap to stop looting gold
local category = '' -- leave empty if You want to take all items (non category)
-- Don't touch below!
setsetting('Settings/MouseMoveSpeed', 'Instantaneous')
setsetting('Settings/ScrollMode', 'Click on scrollbar')
setsetting('Settings/ClickWaitTime', tostring(clickWait))
setsetting('Settings/PressWaitTime', tostring(pressWait))
init end
auto(50)
foreach lootingitem m category do
for _, from in ipairs(conts) do
from = from:lower()
for i = 0, windowcount() - 1 do
local cont = getcontainer(i).name:lower()
if cont:find(from) then
if itemcount(m.id, i) > 0 and m.id ~= 3031 then
moveitems(m.id, m.destination, tostring(i), 100) waitping(1, 1.3)
elseif itemcount(m.id, i) > 0 and m.id == 3031 and $cap > stopGold then
moveitems(m.id, m.destination, tostring(i), 100) waitping(1, 1.3)
end
end
end
end
end
init start
local conts = {'Slain', 'Dead', 'Remains'}
local clickWait = {10, 30} -- it means X to X ms
local pressWait = {10, 30} -- it means X to X ms
local stopGold = 200 -- cap to stop looting gold
local category = '' -- leave empty if You want to take all items (non category)
-- Don't touch below!
setsetting('Settings/MouseMoveSpeed', 'Instantaneous')
setsetting('Settings/ScrollMode', 'Click on scrollbar')
setsetting('Settings/ClickWaitTime', tostring(clickWait))
setsetting('Settings/PressWaitTime', tostring(pressWait))
init end
auto(50)
foreach lootingitem m category do
for _, from in ipairs(conts) do
from = from:lower()
for i = 0, windowcount() - 1 do
local cont = getcontainer(i).name:lower()
if cont:find(from) then
if itemcount(m.id, i) > 0 and m.id ~= 3031 then
moveitems(m.id, m.destination, tostring(i), 100) waitping(1, 1.3)
elseif itemcount(m.id, i) > 0 and m.id == 3031 and $cap > stopGold then
moveitems(m.id, m.destination, tostring(i), 100) waitping(1, 1.3)
end
end
end
end
end
why cant i get this to work i put in persistent and its enabled :S
Hello, I've made another script to autoloot during hunts. This is useful when there are more items than not - that you want to loot.
If there is a item you dont want to loot, add it to the exception list below.
Tell me if you find anything wrong with it. I haven't tested it that much.
Good hunting!
Code:init start local onlyLootGold = false local lootExceptions = {"Hand axe"} --Dont loot these items local bodies = {"slain", "dead", "remains", "pile"} local GoldBackpack = "Golden Backpack" local LootBackpack = "Orange Backpack" local capToLoot = 40 local monstersSafe = 0 local monsterRange = 5 init end auto(100) if maround(monsterRange) <= monstersSafe and $cap >= capToLoot then for i = 0, windowcount() - 1 do local c = getcontainer(i) if(c.isopen) then for _, body in pairs(bodies) do if string.match(string.lower(c.name), body) then print(c.itemcount) for j = 0, c.itemcount do local destination = LootBackpack local item = string.lower(iteminfo(c.items[j].id).name) if item ~= "" then --print(item) if item == "gold coin" then destination = GoldBackpack else for _, e in pairs(lootExceptions) do if item == string.lower(e) then destination = "skip" end end end if onlyLootGold and destination ~= GoldBackpack then destination = "skip" end if destination ~= "skip" then wait(20,250) --print("Item: "..item..", to: "..destination..", from: "..c.name) moveitems(item, destination, c.name) waitping() end end end end end else break end end end
Last edited by LurkerTrap; 05-27-2015 at 01:26 AM.
@osiris ra man no need adde in loot list this items ?? so enable cavebot and go hunt ??