• 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!

RevScripts chest

data/scripts/chestoutfit.lua
Lua:
local config = {
    -- Chest
    actionId = 60000
    storage = 60000,
    -- Outfit
    lookType = 136,
    addons = 3,
    -- Mount
    mountId = 20
}

local chestAction = Action()

function chestAction.onUse(player, item, fromPos, target, toPos, isHotkey)
    if player:getStorageValue(config.storage) ~= -1 then
        player:sendTextMessage(MESSAGE_INFO_DESCR, "It is empty.")
        return true
    end

    player:addOutfitAddon(config.lookType, config.addons)
    player:addMount(config.mountId)
    player:sendTextMessage(MESSAGE_INFO_DESCR, "You found a outfit and mount!")
    player:getPosition():sendMagicEffect(CONST_ME_MAGIC_GREEN)
    player:setStorageValue(config.storage, 1)
    return true
end

chestAction:aid(config.actionId)
chestAction:register()

Your thread was not very descriptive so I guess something like this is what I needed
 
Back
Top