Haha, my first spell,my first post
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:
Now,create a cake.lua file on your spells folder and put this code:
Please give comments,and if you like it,put in your server
The damage is aproximately the damage as a Sudden Death Rune
Bye
Updated:Now the spell costs 300 mana,and the paralyze condition is slighty weak.
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
The damage is aproximately the damage as a Sudden Death Rune
Bye
Updated:Now the spell costs 300 mana,and the paralyze condition is slighty weak.
Last edited: