Welcome again.
I need help with my spell. Ive got a trap spell but i don't know how to change duration of trap.
Here is code:
and
I tried with word "duration" but it don't work. Please help. Greetings.
I need help with my spell. Ive got a trap spell but i don't know how to change duration of trap.
Here is code:
LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_EARTH)
setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 1499)
local arr = {
{1, 1, 1},
{1, 2, 1},
{1, 1, 1}
}
local area = createCombatArea(arr)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
and
LUA:
<instant name="Trap Spell" words="make trap" lvl="1" mana="20" prem="0" range="5" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="trap.lua">
<vocation id="1"/>
</instant>
I tried with word "duration" but it don't work. Please help. Greetings.