• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Spell Party cake rune

clouf

Member
Joined
Jul 5, 2012
Messages
162
Reaction score
23
Check this awesome rune! its like magic wall rune
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"/>
spells/support/cake wall rune.lua - MAKE THIS FILE AND PASTE THIS:
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
in items/items.xml find this:
Code:
<item fromid="13072" toid="13076" article="a" name="giant cake" />
and change it for this code:
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" />
2i252fr.jpg
 
Last edited:
but can i give a notice lady :)
why make it math.random ?
you can use 1 type only and will be better if u make it decay to lower size

so it will be like the cake eat itself :)
 
Anyway here's 2 types cuz walls are with cherry and without.

How about CONST_ANI_ENERGY to CONST_ANI_CAKE ? :D
 
Last edited:
Back
Top