Hello.
You can use the usedoor() function, which is the easiest way. You just need to setup the door's x/y/z and the action that you want to do, if it's open or close that door.
This function has most doors ids, but it may miss some doors ids then it may not work for some doors. However, if you face a door that's not inside this function, you can add the doors ids to its parameter and make it work.
usedoor(12345, 54321, 6, 'open')
12345 = Door's X position.
54321 = Door's Y position.
6 = Door's Z position.
'open' = because you wanna open that door.
For doors that are not inside this function, you should add another parameter which should be a table with the opened and closed door ids
usedoor(12345, 12345, 6, 'open', { 2222, 3333 })
12345 = Door's X position.
54321 = Door's Y position.
6 = Door's Z position.
'open' = because you wanna open that door.
2222 = door id while opened.
3333 = door id while closed.
usedoor(number X, number Y, number Z, string action) [boolean]: Open or close a door on specified location. Action parameter must be 'open' or 'close'.
|Only Registered members can see download links. | Click here to buy subscription or here to register.
Another alternative is using this script, which is simple.
local closed_DoorID = 1210 -- Doors closed id.
local door_location = { X = 12345, Y = 12345, Z = 6 } -- Door's location.
if topitem(door_location.X, door_location.Y, door_location.Z).id == closed_DoorID then
useitem(closed_DoorID, ground(door_location.X, door_location.Y, door_location.Z))
wait(800, 1500)
end
If you need to find doors ids, you watch this:
|Only Registered members can see download links. | Click here to buy subscription or here to register.