Na Amigo
The crazy girl
when iam using this script in my server got this error here's the errror
and buytools.lua :-
Code:
[18:58:55.949] [Error - TalkAction Interface]
[18:58:55.949] data/talkactions/scripts/buytools.lua:onSay
[18:58:55.949] Description:
[18:58:55.965] (luaDoAddContainerItem) Container not found
Code:
<talkaction words="!buytools" script="buytools.lua"/>
Code:
function onSay(cid, words, param)
local cfg = {
time = 3601,
exhausted = 3600,
storage = 90327,
}
if getPlayerStorageValue(cid, cfg.storage) > os.time() then
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"You can only use this function once every 30 minutes.")
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"Frodo: Here are your tools!")
container = doPlayerAddItem(cid, 2456, 1)
doAddContainerItem(container, 2268, 1)
doAddContainerItem(container, 2273, 1)
doAddContainerItem(container, 2361, 1)
doAddContainerItem(container, 2091, 1)
doAddContainerItem(container, 7731, 1)
setPlayerStorageValue(cid, cfg.storage, os.time() + cfg.exhausted)
end
end