hello , i need hotkey to screensahot when lvl up or death ;D
Printable View
hello , i need hotkey to screensahot when lvl up or death ;D
i need mana walk, prismatic necklace changer/garlic necklace, prismatic ring if mobs > 3
plax food eater & full light.
Any HUD to show your current position?
auto(200)
equipitem('scarf', 'neck')
wait(300, 500)
http://forums.tibiawindbot.com/showt...ll=1#post11372
1. Mana walk
auto(200)
if maround(6) > 1 then
setsetting('PotionHealer/Rules/Mana Potion/ConditionValue', '40 to 50%')
else
setsetting('PotionHealer/Rules/Mana Potion/ConditionValue', '70 to 80%')
end
2. Amulets
auto(200)
equipitem('prismatic necklace', 'neck')
wait(300, 500)
3. Rings
auto(200)
if maround(8) > 3 then
equipitem('prismatic ring', 'finger')
wait(300, 500)
eatfoodfull()
Try this out, give feedback.
Oh, and download this version of Lucas' lib before doing so: https://docs.google.com/uc?export=do...HpHWG9UZmZkSnM
init start
local capMin = 100
local lootCat = 's'
local lootRange = 3
-- DO NOT EDIT BELOW THIS LINE --
local items, tile, foundItems, maxRatio, curDist, minDist, bestTile, isTopItem
init end
auto(100, 200)
if $cap > capMin and maround() == 0 then
maxRatio, minDist, bestItem, items = 0, math.huge, nil, {}
-- Build looting list items
foreach lootingitem l lootCat do
-- Add it to list only if we have enough capacity to loot it and still
-- remain above minimum capacity
if $cap > capMin + l.weight then
table.insertsorted(items, {id = l.id, dest = l.destination, ratio = l.sellprice / l.weight}, 'ratio', 'desc')
end
end
-- Find best item/location to collect
for y = -lootRange, lootRange do
for x = -lootRange, lootRange do
if tilereachable($posx + x, $posy + y, $posz) then
tile = gettile($posx + x, $posy + y, $posz)
-- We do it the other way around so that we can know if the
-- item we got is the top one or not, by excluding the top if
-- it is a creature
isTopItem = true
for i = tile.itemcount, 1, -1 do
if tile.item[i].id ~= 99 then -- If it's not a creature
for _, v in ipairs(items) do
if tile.item[i].id == v.id then
curDist = math.max(0, math.abs(x) - 1) + math.max(0, math.abs(y) - 1)
if v.ratio > maxRatio or (v.ratio == maxRatio and curDist < minDist) then
maxRatio = v.ratio
minDist = curDist
bestItem = {
id = v.id,
dest = v.dest,
index = i,
isTop = isTopItem,
x = $posx + x,
y = $posy + y
}
end
end
end
isTopItem = false
end
end
end
end
end
if bestItem ~= nil then
set('Cavebot/Enabled', 'no')
-- Only reach if we have to
if minDist ~= 0 then
reachlocation(bestItem.x, bestItem.y, $posz)
waitping()
end
-- Only use browse field if we have to
if bestItem.isTop then
moveitems(bestItem.id, bestItem.dest, ground(bestItem.x, bestItem.y, $posz))
waitping()
else
-- We won't be handling pages here because gettile() only provides
-- information up to a depth of 10 items.
contextmenu('Browse Field', 0, ground(bestItem.x, bestItem.y, $posz))
waitping()
moveitems(bestItem.id, bestItem.dest, 'Browse Field')
waitping()
end
set('Cavebot/Enabled', 'yes')
end
end
Try it out.
Make sure you have different waypoint sections for hunting and refilling, else it will fuck up.
init start
local huntSection = 'hunt' -- Hunting section
local reffilSection = 'refill' -- Refill section; must be diff from hunting
local reffilLabel = 'goback' -- Refill label
init end
auto(100, 200)
if needresupply(math.huge, '') and $wptsection == huntSection then
set('Targeting/Enabled', 'no')
gotolabel(reffilLabel, reffilSection)
end
ammo refiler / auto spell heal and potion use