• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Just little rectification

Na Amigo

The crazy girl
Joined
Jun 5, 2017
Messages
254
Solutions
3
Reaction score
18
Location
Egypt
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"/>
 
Back
Top