I need a really good and detailed spell tutorial for 8.2x. I made some spells, but any player can do the same damage. A level 340 knight does pretend 2.5k with exori pas (custom spell) and then a level 200 does the same 2.5k with the same spell. I'm wondering why its doing this?
My Script:
Spells.xml:
I really want to fix this problem. I don't understand whats wrong with it.
Thanks
Xine
P.S. This spell is for knights.
My Script:
Code:
--Created with OSM--
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE,COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT,CONST_ME_STONES)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 1.5, -2700, 1.6, -3000)
arr = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 1, 1, 3, 1, 1, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
}
local area = createCombatArea(arr)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
Spells.xml:
Code:
<instant name="Knight Pyramid" words="exori pas" lvl="150" manapercent="25" exhaustion="1000" needlearn="0" direction="0" script="custom/knight pyramid.lua">
<vocation name="Knight"/>
<vocation name="Elite Knight"/>
<vocation name="Super Knight" />
</instant>
I really want to fix this problem. I don't understand whats wrong with it.
Thanks
Xine
P.S. This spell is for knights.