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

how to learn blob for outfit/addon

darkmu

Well-Known Member
Joined
Aug 26, 2007
Messages
274
Solutions
1
Reaction score
50
Location
Paraná,Brazil
Does anyone know how to read blob in a more simplified way, what happened was that people bought a very cheap addon on my server and would like to remove it from everyone who has that addon, but I have no idea how I can access these blob.

1614119822498.png
 
Solution
E
just a quick example of the horse rental remover from ORTS:

Lua:
local mountIds = {22, 25, 26}

function onThink(interval)
    local players = Game.getPlayers()
    if #players == 0 then
        return true
    end

    local player, outfit
    for i = 1, #players do
        player = players[i]
        if player:getStorageValue(Storage.RentedHorseTimer) < 1 or player:getStorageValue(Storage.RentedHorseTimer) >= os.time() then
            break
        end

        outfit = player:getOutfit()
        if table.contains(mountIds, outfit.lookMount) then
            outfit.lookMount = nil
            player:setOutfit(outfit)
        end

        for m = 1, #mountIds do
            player:removeMount(mountIds[m])
        end...
just a quick example of the horse rental remover from ORTS:

Lua:
local mountIds = {22, 25, 26}

function onThink(interval)
    local players = Game.getPlayers()
    if #players == 0 then
        return true
    end

    local player, outfit
    for i = 1, #players do
        player = players[i]
        if player:getStorageValue(Storage.RentedHorseTimer) < 1 or player:getStorageValue(Storage.RentedHorseTimer) >= os.time() then
            break
        end

        outfit = player:getOutfit()
        if table.contains(mountIds, outfit.lookMount) then
            outfit.lookMount = nil
            player:setOutfit(outfit)
        end

        for m = 1, #mountIds do
            player:removeMount(mountIds[m])
        end

        player:setStorageValue(Storage.RentedHorseTimer, -1)
        player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'Your contract with your horse expired and it returned back to the horse station.')
    end
    return true
end

just use removeOutfit and adapt it to onLogin
 
Solution
Back
Top