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

has any script otc throw big black pot around character?

carlosgyn

New Member
Joined
Aug 3, 2023
Messages
1
Reaction score
0
I would like a script that plays several black pots involving the selected character anyone can help me?

thanks!!
 
I would like a script that plays several black pots involving the selected character anyone can help me?

thanks!!

use this on the event:

OnMoveItem



Lua:
local exhaustStorage = 19874
local maxItemsPerSecond = 1
local exhaustTime = 0.5  -- Total exhaust time of 0.5 seconds
local lastMoveTime = 0
local itemsMoved = 0


local tile = Tile(fromCylinder:getPosition())
    if tile then
        local topCreature = tile:getTopCreature()
        if topCreature and topCreature:isPlayer() then
            local targetPlayer = topCreature:getPlayer()

            local currentTime = os.time()
            if currentTime > lastMoveTime + exhaustTime then
                lastMoveTime = currentTime
                itemsMoved = 1
            else
                itemsMoved = itemsMoved + 1
                if itemsMoved > maxItemsPerSecond then
                    targetPlayer:setStorageValue(exhaustStorage, lastMoveTime + exhaustTime)
                    return false
                end
            end

            if targetPlayer:getStorageValue(exhaustStorage) > currentTime then
                return false
            end
        end
    end
 
Back
Top