would have some hotkey to attack vis hur?
You should try and be more polite to those who are trying to help you.
init start
-- Time between messages sent, in ms
local interval = {120000, 180000}
-- Message to be sent
local msg = 'some cool message'
init end
auto(100)
say('Advertising', msg)
wait(math.random(interval[1], interval[2]))
Also, please keep your comments in English, this is an English forum.
@Raphael I also tried your code with no success, any update on this? Would be really useful. Thanks!
Regarding your juicy root collecting code, also possible to make it move the root to loot backpack, sort of like how manas get moved to supplies bp in most scripts?
Sorry, would you be kind enough to test this other version?
init start
-- local SCRIPT_VERSION = '1.0.1'
-- DO NOT EDIT BELOW THIS LINE --
local readyRootIds = {21104, 21105}
local lootId = 21291
local function findrootspots()
for x, y in screentiles(ORDER_RADIAL) do
if table.find(readyRootIds, topuseitem(x, y, $posz).id) then
return {x = x, y = y}
end
end
return nil
end
init end
auto(100)
if $lootsaround == 0 and $targetingtarget.hppc == 0 then
local bestSpot = findrootspots()
while bestSpot ~= nil do
pausewalking(6^9) -- Yeah babe!
if bestSpot ~= nil then
local lootCount = itemcount(lootId)
reachlocation(bestSpot.x, bestSpot.y, $posz)
waitping()
useitem(0, ground(bestSpot.x, bestSpot.y, $posz))
waitping()
if itemcount(lootId) > lootCount then
increaseamountlooted(lootId, itemcount(lootId) - lootCount)
end
end
-- If starting conditions are no longer met, abort mission!
if $lootsaround ~= 0 or $targetingtarget.hppc ~= 0 then
break
end
bestSpot = findrootspots()
end
pausewalking(0) -- Orgasm.
end
Last edited by Raphael; 08-09-2014 at 11:36 PM.