i need a persistent to open the door when it is closed and if not targeting
i try this :
auto(800, 1000)
if topitem(32698,31235,11).id == 5735 then
useitem(5735,32698,31235,11)
wait(20000)
end
but dont work fine, it only opens the door sometimes :C
Printable View
i need a persistent to open the door when it is closed and if not targeting
i try this :
auto(800, 1000)
if topitem(32698,31235,11).id == 5735 then
useitem(5735,32698,31235,11)
wait(20000)
end
but dont work fine, it only opens the door sometimes :C
usedoor(x,y,z, 'open')
i put this on persistent hotkeys and create a action like this in front the door but he continues opening sometimes.
i found this hotkey on forum with same id of the door and both are with the same problem...
PHP Code:local topid = topitem($wptx, $wpty, $wptz).id
auto(100)
wait(500)
if topid ~= 5737 then usegrounditem(5735)end
why do u set door opening as a persistent?
U are trying to do script with depositer etc?
If yes, use usedoor function it will open doors if closed..
because put bot in yalahar arena but have 5 doors like this in hunt
and the char is locked if someone push
http://i60.tinypic.com/kdn8f7.jpg
on ibot i put persistent and when the gate was closed he open but I can not do this in windbot
maybe try this
init start
local doors = topitem(32698,31235,11).id
init end
auto(800, 1000)
if doors == 5735 then
reachlocation(32698, 31235, 11) waitping()
useitem(5735, 0, ground(32698, 31235, 11))
wait(20000)
end
did not work :/ but thanks for trying to help me... I think the bot does not recognize the door or whatever
damn, you can't put this in init block...
usedoor(x, y, z, "open") should either work or print an error if doors are not recognized as far as I remember. Maybe u put wrong coords/ids.
anyway try this
init start
local doors = {
{x = 32698, y = 31235, z = 11, closedid = 5735},
{x = 32698, y = 31235, z = 11, closedid = 5735},
{x = 32698, y = 31235, z = 11, closedid = 5735},
{x = 32698, y = 31235, z = 11, closedid = 5735},
{x = 32698, y = 31235, z = 11, closedid = 5735},
}
init end
auto(800, 1000)
for _, door in ipairs(doors) do
if topitem(door.x, door.y, door.z).id == door.closedid then
reachlocation(door.x, door.y, door.z) waitping()
useitem(door.closedid, ground(door.x, door.y, door.z)) waitping()
end
end
just a a typo, try now, it works for sure.