Not set "storageID":
thanks inadvance
LUA:
-- Script By RaikND, set StorageID Tile
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
local cfg = {
level = 30,
storage = 30104,
textCompleted = "Ya tienes accesos para entrar a la Blue Djinn!",
cancelText = "Mission completada"
}
lvl = getPlayerLevel(cid)
if item.actionid == cfg.storage and lvl >= cfg.level == -1 then
getCreatureStorage(cid, cfg.storage)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, cfg.textCompleted)
setPlayerStorageValue(cid, cfg.storage, 1)
else
doPlayerSendCancel(cid, cfg.cancelText)
end
return true
end
thanks inadvance