Code:
local config = {
storage = 5100
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(getPlayerStorageValue(cid, config.storage) < 1) then
doPlayerAddItem(cid, 2485, 1)
doPlayerSendTextMessage(cid,25,"You have found a doublet.")
setPlayerStorageValue(cid, 5100, 1)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "The loose board is empty.")
end
return true
end
Why when I try to get this (press use on the floor) I get debug? and tibia crashed? Any idea?
I using TFS 1.0
Last edited by a moderator: