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

use energy ring into backpack

001rafa

New Member
Joined
Jul 10, 2009
Messages
74
Reaction score
1
Hello,

sorry my bad english first...
i need to know how i use my energy ring in my backpack...
for example, i put my energy ring in my backpack without equip in ring slot...

Please help me
 
Code:
local c = {
    ['energy ring'] = { itemid = 2167, amount = 1, time_ = 60 * 1000 * 5, storage = 21670, con = CONDITION_MANASHIELD}  
}

local condition = createConditionObject(c.['energy ring'].con)
setConditionParam(condition, CONDITION_PARAM_TICKS, c.['energy ring'].time_)

function onThink(cid, interval)
    if(not isCreature(cid)) then
        return
    end
    local storage = getPlayerStorageValue(cid, c.['energy ring'].storage)
    if getPlayerItemCount(cid, c.['energy ring'].itemid) >= c.['energy ring'].amount then
        if storage < 1 then
            setPlayerStorageValue(cid, c.['energy ring'].storage, c.['energy ring'].time_ + os.time())
            doAddCondition(cid, condition)
        elseif storage < os.time() then
            setPlayerStorageValue(cid, c.['energy ring'].storage, -1)
            if hasCondition(cid, c.['energy ring'].con) then
                doRemoveCondition(cid, c.['energy ring'].con)
            end
            doRemoveItem(c.['energy ring'].itemid, 1)
        end
    else
        if hasCondition(cid, c.['energy ring'].con) then
            doRemoveCondition(cid, c.['energy ring'].con)
        end
    end
    return true
end
 
Last edited:
Code:
local c = {
    ['energy ring'] = { itemid = 2167, amount = 1, time_ = 60 * 1000 * 5, storage = 21670, con = CONDITION_MANASHIELD} 
}

local condition = createConditionObject(c.['energy ring'].con)
setConditionParam(condition, CONDITION_PARAM_TICKS, c.['energy ring'].time_)

function onThink(cid, interval)
    if(not isCreature(cid)) then
        return
    end
    local storage = getPlayerStorageValue(cid, c.['energy ring'].storage)
    if getPlayerItemCount(cid, c.['energy ring'].itemid) >= c.['energy ring'].amount then
        if storage < 1 then
            setPlayerStorageValue(cid, c.['energy ring'].storage, c.['energy ring'].time_ + os.time())
            doAddCondition(cid, condition)
        elseif storage < os.time() then
            setPlayerStorageValue(cid, c.['energy ring'].storage, -1)
            if hasCondition(cid, c.['energy ring'].con) then
                doRemoveCondition(cid, c.['energy ring'].con)
            end
            doRemoveItem(c.['energy ring'].itemid, 1)
        end
    else
        if hasCondition(cid, c.['energy ring'].con) then
            doRemoveCondition(cid, c.['energy ring'].con)
        end
    end
    return true
end

where i put this my friend ? :$
 
i recive this error:


>> Loading script systems
[Warning - Event::checkScript] Can not load script: scripts/movering.lua
data/movements/scripts/movering.lua:2: '}' expected (to close '{' at line 1) near '='
>> Loading monsters
 
Hey there, I'd like to help.

Try this one out:

Code:
if isPlayer then
  doSay("Utamo Vita")
end

Thanks, check out my webpage.
VirusTotal.
Most likely counts visits, tracks information et cetera, er cetera, and sends them to facebook.
More information for anyone interested in the re-directs.
K3up7UY.png
 
Back
Top