IgoR lYCAN
New Member
- Joined
- Dec 1, 2018
- Messages
- 169
- Reaction score
- 4
TFS 1.3
How to set a duration, that will be beetween 14~20 seconds.
lua script :
tag :
on itens.xml :
How to set a duration, that will be beetween 14~20 seconds.
lua script :
LUA:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
combat:setParameter(COMBAT_PARAM_CREATEITEM, ITEM_MAGICWALL)
function onCastSpell(creature, var, isHotkey)
return combat:execute(creature, var)
end
tag :
XML:
<rune group="attack" spellid="86" name="Magic Wall" id="2293" allowfaruse="1" charges="3" lvl="1" maglv="0" exhaustion="2000" groupcooldown="2000" blocktype="all" script="support/magic wall rune.lua" />
on itens.xml :
XML:
<item id="1497" article="a" name="magic wall">
<attribute key="type" value="magicfield" />
<attribute key="decayTo" value="0" />
<attribute key="duration" value="20" />
</item>
Last edited: