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 key to door
#1
hello i need a script who will open door in fibula with key
Reply

#2
Hello.

You can use something like this...
local keyID = 2969 -- Key's id
local lockedDoorID = 6194 -- Door's id when it's LOCKED.
local door_location = { X = 12345, Y = 12345, Z = 6 } -- 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

#3
I tested it but it doesn't work, it doesn't use a key in the door, just try to open a door help please
Reply

#4
It works its just a few lower case issues in the code basically typos iv fixed that in the below, it works as iv tested (you may need to change the ID of the doors)

local keyID = 2970 -- Key's id
local lockedDoorID = 1631 -- Doors LOCKED ID.
local door_location = { X = 32655, Y = 31655, 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



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016