-- PoI back door
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.uid == 5790 then
if getPlayerStorageValue(cid, 10274) == 1 then
doPlayerSendTextMessage(cid, 22, "You may pass.")
doTransformItem(item.uid, item.itemid + 1)
doTeleportThing(cid, toPosition, 1)
else
doPlayerSendTextMessage(cid, 22, "No!!")
end
elseif item.uid == 5790 then
if getPlayerStorageValue(cid, 10275) == 1 then
doPlayerSendTextMessage(cid, 22, "You may pass.")
doTransformItem(item.uid, item.itemid + 1)
doTeleportThing(cid, toPosition, 1)
else
doPlayerSendTextMessage(cid, 22, "No!!")
end
elseif item.uid == 5790 then
if getPlayerStorageValue(cid, 10276) == 1 then
doPlayerSendTextMessage(cid, 22, "You may pass.")
doTransformItem(item.uid, item.itemid + 1)
doTeleportThing(cid, toPosition, 1)
else
doPlayerSendTextMessage(cid, 22, "No!!")
end
elseif item.uid == 5790 then
if getPlayerStorageValue(cid, 10277) == 1 then
doPlayerSendTextMessage(cid, 22, "You may pass.")
doTransformItem(item.uid, item.itemid + 1)
doTeleportThing(cid, toPosition, 1)
else
doPlayerSendTextMessage(cid, 22, "No!!")
end
elseif item.uid == 5790 then
if getPlayerStorageValue(cid, 10278) == 1 then
doPlayerSendTextMessage(cid, 22, "You may pass.")
doTransformItem(item.uid, item.itemid + 1)
doTeleportThing(cid, toPosition, 1)
else
doPlayerSendTextMessage(cid, 22, "No!!")
end
elseif item.uid == 5790 then
if getPlayerStorageValue(cid, 10279) == 1 then
doPlayerSendTextMessage(cid, 22, "You may pass.")
doTransformItem(item.uid, item.itemid + 1)
doTeleportThing(cid, toPosition, 1)
else
doPlayerSendTextMessage(cid, 22, "No!!")
end
elseif item.uid == 5790 then
if getPlayerStorageValue(cid, 10280) == 1 then
doPlayerSendTextMessage(cid, 22, "You may pass.")
doTransformItem(item.uid, item.itemid + 1)
doTeleportThing(cid, toPosition, 1)
else
doPlayerSendTextMessage(cid, 22, "No!!")
end
end
end