function onStepIn(cid, item, position, fromPosition)
if item.actionid == [COLOR="Red"]58262[/COLOR] then
setPlayerStorageValue(cid,[COLOR="red"] 102503[/COLOR]) == 1 then
doCreatureSay(cid, "You now have the storage to open a quest door.", TALKTYPE_ORANGE_1)
end
return TRUE
end
Aff...
[02/01/2010 10:02:59] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/Doors/cults.lua)
[02/01/2010 10:02:59] data/actions/scripts/Doors/cults.lua:3: unexpected symbol near '=='
and for the quest door I set the storage for the unique Id right? xd
function onStepIn(cid, item, position, fromPosition)
if item.actionid == 58262 then
setPlayerStorageValue(cid, 102503) == 1 then
doCreatureSay(cid, "You now have the storage to open a quest door.", TALKTYPE_ORANGE_1)
end
return TRUE
end
local storage = 44311 -- Storage needed to enter door
function onStepIn(cid, item, fromPosition, toPosition)
if(getPlayerStorageValue(cid, storage) == -1) then
setPlayerStorageValue(cid, storage, 1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You may now enter the door.")
else
doTeleportThing(cid, fromPosition)
doPlayerSendCancel(cid, "You have already walked here.")
end
return true
end
Code:function onStepIn(cid, item, position, fromPosition) if item.actionid == 58262 then setPlayerStorageValue(cid, 102503) == 1 then doCreatureSay(cid, "You now have the storage to open a quest door.", TALKTYPE_ORANGE_1) end return TRUE end
try that ^^ it was to big space at line three