Check this awesome rune! its like magic wall rune
spells/spells.xml:
spells/support/cake wall rune.lua - MAKE THIS FILE AND PASTE THIS:
in items/items.xml find this:
and change it for this code:
spells/spells.xml:
Code:
<rune group="attack" spellid="586" name="Cake Wall Rune" id="2309" allowfaruse="1" charges="3" lvl="32" maglv="1" exhaustion="2000" groupcooldown="2000" blocktype="all" script="support/cake wall rune.lua"/>
Code:
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_CAKE)
setCombatParam(combat1, COMBAT_PARAM_CREATEITEM, 13072)
local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_CAKE)
setCombatParam(combat2, COMBAT_PARAM_CREATEITEM, 13073)
function onCastSpell(cid, var)
waw = math.random(2)
if waw == 1 then
return doCombat(cid, combat1, var)
end
if waw == 2 then
return doCombat(cid, combat2, var)
end
end
Code:
<item fromid="13072" toid="13076" article="a" name="giant cake" />
Code:
<item id="13072" article="a" name="giant cake wall">
<attribute key="type" value="magicfield" />
<attribute key="decayTo" value="13074" />
<attribute key="duration" value="10" />
</item>
<item id="13073" article="a" name="giant cake wall">
<attribute key="type" value="magicfield" />
<attribute key="decayTo" value="13075" />
<attribute key="duration" value="10" />
</item>
<item id="13074" article="a" name="giant cake wall">
<attribute key="type" value="magicfield" />
<attribute key="decayTo" value="13076" />
<attribute key="duration" value="5" />
</item>
<item id="13075" article="a" name="giant cake wall">
<attribute key="type" value="magicfield" />
<attribute key="decayTo" value="0" />
<attribute key="duration" value="10" />
</item>
<item id="13076" article="a" name="giant cake wall">
<attribute key="type" value="magicfield" />
<attribute key="decayTo" value="0" />
<attribute key="duration" value="5" />
</item>
<item fromid="13077" toid="13076" article="a" name="giant cake" />
Last edited: