secondlife
Member
- Joined
- Aug 1, 2009
- Messages
- 298
- Reaction score
- 23
Hi people,
I'm trying to create a spell AREA that adds storages in TARGETS per 5 sec, its possible?
Im trying to do this for a long time, but no success.
Anyone can help me?
Thank you guys!
I'm trying to create a spell AREA that adds storages in TARGETS per 5 sec, its possible?
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 31)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, true)
setCombatParam(combat, COMBAT_PARAM_TARGETPLAYERSORSUMMONS, true)
local area = createCombatArea(AREA_CIRCLE3X3)
setCombatArea(combat, area)
local target = getCreatureTarget(cid)
if(getCreatureTarget(cid))~= 0 then
setPlayerStorageValue(target, 8888, 1)
addEvent(setPlayerStorageValue, 5 * 1000, target, 8888, 0)
end
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
Anyone can help me?
Thank you guys!