View Full Version : door checker - possible?
popit
06-17-2013, 08:22 PM
I know how to make the bot open a door if it's closed, but if someone knows I am botting at that certain spawn, sometimes they just stand at the door waiting for me to get to it, then they will keep opening/closing the door on my character, causing it to get stuck after 1 time trying to open the closed door.
Is there anyway to have a checker so when it reaches the sqm before the door it will just keep trying to open the door until it's possible to reach the next waypoint?
Also I have tried self step with position check but it can still get stuck like that too.. just looking for something that will keep opening the door if someone is closing it on me, then once the door is free my character will be able to go to next waypoint :p
thank you in advance menz0rz! :D
Kociii
06-17-2013, 08:33 PM
If they know ur coming why bot there? ;D
popit
06-17-2013, 08:38 PM
If they know ur coming why bot there? ;D
sometimes people know im botting so they just keep opening/closing the door till I get stuck, even with self step/position checkers..
There was a guy who botted the same spawn and it was impossible to trap him on the door he somehow had the bot keep checking the door until he was at next waypoint so wondering how he could have that :)
Nakuu
06-17-2013, 08:51 PM
In my free script for EK Nargor Pirates you got pretty good example how to do it :)
popit
06-17-2013, 08:56 PM
In my free script for EK Nargor Pirates you got pretty good example how to do it :)
okay I will check it out, thank you :)!
kubax36
06-17-2013, 11:37 PM
i had same problem some time ago, i just made open door label
then 2x Self.Step("north")
and then check pos if posy is > than door pos then goto label open door
i think u know what i mean :D if u will have any problems i will help you to create this for you tommorow, i am going to sleep now
I made this a while ago, it's 90% fail proof.
--[[
registerEventListener(WALKER_SELECTLABEL, 'onWalkerSelectLabel')
function onWalkerSelectLabel(labelName)
if labelName == 'Door' then
safeDoor(32390, 32217, 7, 'south', Self.Position().y, 'Door')
end
end
]]--
-- safeDoor(1000, 1000, 7, 'east', Self.Position().x, 'DoorLabel1')
-- safeDoor(1000, 1000, 7, 'south', Self.Position().y, 'DoorLabel2')
function safeDoor(x, y, z, step, dir, label)
wait(250)
local POS = dir
if not Map.IsTileWalkable(x, y, z) then
Targeting.Stop()
Walker.Stop()
repeat
Self.OpenDoor(x ,y ,z)
wait(250)
until
Map.IsTileWalkable(x, y, z)
wait(150)
Self.Step(step)
wait(150)
Self.Step(step)
wait(1000, 1500)
if dir == POS or not Map.IsTileWalkable(x, y, z) then
gotoLabel(label)
end
end
Targeting.Start()
Walker.Start()
end
Mrgaboh
07-29-2013, 08:34 PM
kubax36 could u help me i have some kinda same problem
just post that section lua code and ill do it on my own
thanks in advance :)
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.