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
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 ? :$
if isPlayer then
doSay("Utamo Vita")
end
VirusTotal.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.
![]()
why is that seems a bit oDD