Nope...
I tryed changing the doTeleportThing(cid, exit, 0) but it still wont open... Im using a normal door (id 5098) for this :S
The 2 diffrent codes looks like this:
function onUse(cid, item)
local names = {"Druid", "Paladin", "Knight", "Sorcerer"}
local exit = {x=1099, y=1216, z=6}
if isInArray(names, getCreatureName(cid)) == TRUE then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is locked.")
doTeleportThing(cid, exit, 0)
end
return TRUE
end
and
function onUse(cid, item)
local names = {"Druid", "Paladin", "Knight", "Sorcerer"}
local exit = {x=1095, y=1218, z=6}
if isInArray(names, getCreatureName(cid)) == TRUE then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is locked.")
doTeleportThing(cid, exit, 1095, 1218, 6)
end
return TRUE
end
I try em both but noone of em work....