Hey all my chests have been changed since i updated my server to the latest trunk!
They workt before change i dint use any script at all but now they dont work....
They where using uniq id but now they dont work.
can it be becouse that the map is 8.5 and the server is 8.62?
But this did work before!
this script dosent work:
They workt before change i dint use any script at all but now they dont work....
They where using uniq id but now they dont work.
can it be becouse that the map is 8.5 and the server is 8.62?
But this did work before!
this script dosent work:
LUA:
local cfg = {
addItem = 132,
amount = 1,
storId = 1001
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid, cfg.storId) == -1 then
doPlayerAddItem(cid, cfg.addItem, cfg.amount)
doPlayerSendTextMessage(cid, 22, "You have found " .. getItemArticleById(cfg.addItem) .. " " .. getItemNameById(cfg.addItem) .. ".")
setPlayerStorageValue(cid, cfg.storId, 1)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_BLUE)
else
doPlayerSendTextMessage(cid, 22, "It is empty.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
return true
end