• 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 Cake Throwing

Zeeh1997

New Member
Joined
Jan 1, 2010
Messages
29
Reaction score
0
Haha, my first spell,my first post :p
I am here to show to you this funny spell,the cake throwing.
Srry for bad english :X

first go to Spells.xml and put this:

<instant name="Cake" words="Exori Cake" lvl="150" mana="300" prem="0" range="6" needtarget="1" blockwalls="1" exhaustion="2000" needlearn="0" script="cake.lua">
<vocation name="Knight"/>
<vocation name="Elite Knight"/>
<vocation name="Paladin"/>
<vocation name="Royal Paladin"/>
<vocation name="Sorcerer"/>
<vocation name="Druid"/>
<vocation name="Master Sorcerer"/>
<vocation name="Elder Druid"/>
</instant>

Now,create a cake.lua file on your spells folder and put this code:

Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DROWNDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_CAKE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_CAKE)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -60, -1, -60, 5, 5, 4, 7)

local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 20000)
setConditionFormula(condition, -0.8, 0, -0.8, 0)
setCombatCondition(combat, condition)

function onCastSpell(cid, var)
    return doCombat(cid, combat, var)
end

Please give comments,and if you like it,put in your server :D

The damage is aproximately the damage as a Sudden Death Rune
Bye :p

Updated:Now the spell costs 300 mana,and the paralyze condition is slighty weak.
 
Last edited:
Back
Top