Searching action, when no monster on screen and monsters are spawning(tp effect) character pausewalking, take spawning monster spot, kill monster and continue walking on cavebot.
Printable View
Searching action, when no monster on screen and monsters are spawning(tp effect) character pausewalking, take spawning monster spot, kill monster and continue walking on cavebot.
bump!
could do something with https://www.tibiawindbot.com/docs.ht...tors-neweffect
though i dont know which effect id the tp effect is
i saved some effects ids
NEWEFFECT_TELEPORT = 11
so try this
init start
local waittime = 5
init end
auto(200)
foreach neweffect e do
if e.type == 11 and maround(4) == 0 then
pausewalking(waittime*1000)
wait(waittime*1000)
moveto(e.posx, e.posy, $posz)
end
end
Hello, this action dont work :/
Need some more info than "dont work" incase you want me to fix it
Character dont reach effect spot :/
are there any monsters around when its ignoring the effect spot?
No monsters on screen, when 'new monster' are spawning, character pausewalking but dont reach neweffect
can you run this and tell me when the consol says?
auto(200)
foreach neweffect e do
if e.type == 11 and maround(4) == 0 then
pausewalking(waittime*1000)
wait(waittime*1000)
reachlocation(e.posx, e.posy, $posz)
print('e', e.posx, e.posy, $posz)
printerror($posx, $posy, $posz)
end
end
e 32802 32332 7
32783 32331 7
ok so try this
auto(200)
foreach neweffect e do
if e.type == 11 and maround(4) == 0 then
if math.abs(e.posx - $posx) =< 7 and math.abs(e.posy - $posy) =< 5 then
pausewalking(waittime*1000)
wait(waittime*1000)
reachlocation(e.posx, e.posy, $posz)
print('e', e.posx, e.posy, $posz)
printerror($posx, $posy, $posz)
end
end
end
Now character dont pausewalking
can you give me what the console wrote this time, or maybe it didnt write anything?
otherwise try this
auto(200)
foreach neweffect e do
if e.type == 11 and maround(4) == 0 then
pausewalking(waittime*1000)
wait(waittime*1000)
reachlocation(e.posx - 20, e.posy, $posz)
print('e', e.posx, e.posy, $posz)
printerror($posx, $posy, $posz)
end
end
It didnt wrote anything, I running tests in small room where mosters spawning almost close to me, but e.pox its wrong, I using action to show cursor x,y,z pos and cursor posx ~= e.posx
ye the effect.x seems to be about 20 wrong, did u try the last one i posted?
Last action from you :
e 32764 32330 7
32782 32331 7
I found on forum that: rightPosx = e.posx - (($self.posy - e.posy) * 18)
auto(200)
foreach neweffect e do
if e.type == 11 and maround(4) == 0 then
pausewalking(waittime*1000)
wait(waittime*1000)
local rightPosx = e.posx - (($self.posy - e.posy) * 18)
reachlocation(rightPosx, e.posy, $posz)
print('e', e.posx, e.posy, $posz)
printerror($posx, $posy, $posz)
end
end
Still same