narko
vertrauenswürdig ~
LUA:
function onUse(cid, item, frompos, item2, topos)
local config = {
storage = 11190, -- change to your own storage value :)
item = 2528,
}
if getPlayerStorageValue(cid, config.storage) == -1 then
setPlayerStorageValue(cid, config.storage, 1)
doPlayerSendTextMessage(cid,25,"You have found a tower shield.")
key = doPlayerAddItem(cid, config.item, 1) ~= -1
else
doPlayerSendTextMessage(cid,25,"The pile of bones is empty.")
end
return TRUE
end
i click on the chest and giveme a DEBUG
0.4_Rev 3887
please help