Na Amigo
The crazy girl
i have created this script with actionid but idk what is the reason for making it not working and no errors at console i'm using otserv_0.6.0
Lua:
local cfg = {
time = 3601,
exhausted = 3600,
storage = 90327,
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid, cfg.storage) > os.time() then
doPlayerSendTextMessage(cid, 22, "You can only use this once every 60 minutes.")
else
doPlayerSendTextMessage(cid, 22, "You have found your eq!.")
container = doPlayerAddItem(cid, 1988, 1)
doAddContainerItem(container, 2120, 1)
doAddContainerItem(container, 2456, 1)
doAddContainerItem(container, 2554, 1)
doAddContainerItem(container, 2091, 1)
setPlayerStorageValue(cid, cfg.storage, os.time() + cfg.exhausted)
end
end
Code:
<action itemid="43219" script="first items.lua"/>