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
Close Door
#1
Hey, i need script which can open close door by key.

I find one script on forum but this script doesnt work. can someone help me?



VV ThiS from down vvvv dont work 

local keyID = 2970 -- Key's id
local lockedDoorID = 7033 -- Doors LOCKED ID.
local door_location = { X = 32108, Y = 31568, Z = 9 } -- Door's location.

if topitem(door_location.X, door_location.Y, door_location.Z).id == lockedDoorID then
    useitemon(keyID, door_location.X, door_location.Y, door_location.Z)
    wait(800, 1500)
end

usedoor(door_location.X, door_location.Y, door_location.Z, 'open')
wait(800, 1500)
Reply

#2
Hello.

What exactly doesn't works?

Notice that usedoor() doesn't works on all doors, because I had to manually add door ids and i don't have all doors ids. However, there's a paremeter that you can specify what's the door ids (closed and opened).

usedoor(number x, number y, number z, string action, table doors)
example:
usedoor(32108, 31568, 9, 'open', { 1234, 5678 })

1234 = DOOR ID CLOSED
5678 = DOOR ID OPEN.
Reply

#3
yes but i need use KEY, NUMER "XXX" and i made action, and dont work ,
script work if i dont need key to open door
Reply

#4
Hello.

The script works just fine.

You still didn't said what exactly doesn't works.
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016