Hello, i got a problem with my storage door, when i use it im getting stuck in it, i do not get teleported 1 sqm ahead. Why is that?
Can somone get it right ?
Can somone get it right ?
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.uid == 10281 then
if(isInArray({getPlayerStorageValue(cid, 10274), getPlayerStorageValue(cid, 10275), getPlayerStorageValue(cid, 10276), getPlayerStorageValue(cid, 10277), getPlayerStorageValue(cid, 10278), getPlayerStorageValue(cid, 10279), getPlayerStorageValue(cid, 10280)}, -1) == TRUE) then
doCreatureSay(cid, "You have not enought energy to pass.", TALKTYPE_ORANGE_1)
else
doCreatureSay(cid, "You have completed the quest.", TALKTYPE_ORANGE_1)
doTeleportThing(cid, toPosition, TRUE)
end
return TRUE
end
return FALSE
end