View Full Version : Need help with doors
shamdis
03-14-2014, 04:47 PM
So im making a new script and have no idea how to open the doors... anyone could help me out, give me an example on how to open a door to the east.
thx//SammeDjinnn
Infernal Bolt
03-14-2014, 05:09 PM
add script in walker.
Self.OpenDoor(x,y,z) -- specify what coordinates it should open the door at.
shamdis
03-14-2014, 05:25 PM
add script in walker.
Self.OpenDoor(x,y,z) -- specify what coordinates it should open the door at.
Thanks man, just a question can you go through teleports with just xenobot commands like stand east or anything else cuz stand east dosent seem to work.
picture down.
9593
Glowingstick
03-14-2014, 05:29 PM
stand next to the teleport and add
Self.Step("east")
shamdis
03-14-2014, 05:44 PM
stand next to the teleport and add
Self.Step("east")
thanks
shamdis
03-15-2014, 03:03 AM
wont work :/
godot
03-15-2014, 11:49 AM
add stand in the front of tp and add Self.Step("east")
also this is a good door opener
elseif (labelName == "Xodet Door") then
if not Map.IsTileWalkable(32400, 32217, 7) then --xyz of doors
Self.UseItemFromGround(32400, 32217, 7) --xyz of doors
wait(500)
end
only4tibia
03-15-2014, 12:04 PM
add stand in the front of tp and add Self.Step("east")
also this is a good door opener
elseif (labelName == "Xodet Door") then
if not Map.IsTileWalkable(32400, 32217, 7) then --xyz of doors
Self.UseItemFromGround(32400, 32217, 7) --xyz of doors
wait(500)
end
Self.UseDoor(x, y, z) does what this does. It won't close door if it is already open. If you want to close the door you can add a 4th variable 'true' (Self.UseDoor(x, y, z, true)) to the function.
retsamfrost
03-15-2014, 02:19 PM
i usually just add 1 liners in my walker
put a stand infront of door and behind the door and in between those stands you put
Self.UseDoor(Self.Position().x-1, Self.Position().y, Self.Position().z)
x-1 being west x+1 being east
y-1 being north y+1 being south
Glowingstick
03-15-2014, 03:47 PM
Self.UseDoor(x, y, z, open)
this is what I usually use
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.