Everyone who has never used our Bots before, can test each one for 2 days without any limitation.
The trial is given automatically when you login on the Bot, but in some cases it wouldn't work (security reasons).
If this happens, send me a private message and i will be checking the failed trials manually and adding it for those who didn't get it.
We are looking for resellers who may accept payment methods different from ours, including classictibia's cash, realesta's cash, mastercores' cash, etc. Interested? Click here at anytime.



Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Use door
#1
Can anybody explain me how to make an action to open a door? I used the functions thread and tried to fix it but there are so config things that i dont understand. Im new using this bot so thats why. Thanks

#2
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.

#3
|Only Registered members can see download links. | Click here to buy subscription or here to register.



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016