I made one script but don't work normal:
My char have storage: 20000, 20001, 20002.
Don't have 20003 and is teleported...
Script(room of demon-oak quest):
Please fix!
My char have storage: 20000, 20001, 20002.
Don't have 20003 and is teleported...
Script(room of demon-oak quest):
Code:
local roomPos =
{
x = 424,
y = 493,
z = 8
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.uid == 30330 then
if getPlayerStorageValue(cid, 20000) == TRUE then
doTeleportThing(cid, roomPos, TRUE)
doSendMagicEffect(roomPos, CONST_ME_TELEPORT)
elseif getPlayerStorageValue(cid, 20000) == FALSE then
doPlayerSendCancel(cid, "Sorry, not possible.")
if getPlayerStorageValue(cid, 20001) == TRUE then
doTeleportThing(cid, roomPos, TRUE)
doSendMagicEffect(roomPos, CONST_ME_TELEPORT)
elseif getPlayerStorageValue(cid, 20001) == FALSE then
doPlayerSendCancel(cid, "Sorry, not possible.")
if getPlayerStorageValue(cid, 20002) == TRUE then
doTeleportThing(cid, roomPos, TRUE)
doSendMagicEffect(roomPos, CONST_ME_TELEPORT)
elseif getPlayerStorageValue(cid, 20002) == FALSE then
doPlayerSendCancel(cid, "Sorry, not possible.")
if getPlayerStorageValue(cid, 20003) == TRUE then
doTeleportThing(cid, roomPos, TRUE)
doSendMagicEffect(roomPos, CONST_ME_TELEPORT)
elseif getPlayerStorageValue(cid, 20003) == FALSE then
doPlayerSendCancel(cid, "Sorry, not possible.")
end
end
end
end
end
return TRUE
end
Please fix!
Last edited by a moderator: