Eaw pessoal Tudo blz?
Bom esta é a utima vocação ke faltava eu faze...
E nesse resolvi faze com efeito...
A magia é o seguinte: Ela vai cair em uma tal area..Randomizada(y)Aond acertar ira dar um Damage e ainda vai paralyzar o monstro por 5/6 segundos.Vamus ao VidEOo...<.>
http://www.youtube.com/watch?v=GkAoNmq1Fg0
*-*
Fassa um arquivo em Spells e cole isto....
local combat = createCombatObject()local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 13)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 40)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.7, 150, -2.2, 150)
local area = createCombatArea(
{
{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, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0},
{0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{0, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 0},
{0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 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},
}
)
local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 5000)
setConditionFormula(condition, -100.9, 0, -100.9, 0)
setCombatCondition(combat, condition)
setCombatArea(acombat, area)
local function Attack(p)
doCombat(p.cid, p.combat, positionToVariant(p.pos))
end
function onTargetTile(cid, pos)
if (math.random(0,2) >= 1) then
addEvent(Attack, math.random(0, 1000), {cid = cid, combat = combat, pos = pos})
end
end
setCombatCallback(acombat, CALLBACK_PARAM_TARGETTILE, "onTargetTile")
function onCastSpell(cid, var)
return doCombat(cid, acombat, var)
end
Agora vá em Data/spells/spells.xml e add a seguinte Tag:
<instant name="dilcew" words="dilcew" lvl="200" mana="200" prem="1" casterTargetOrDirection="0" blockwalls="1" exhaustion="1000" needlearn="0" script="dilcew.lua"><vocation name="Elder Druid" />
<vocation name="Druid" />
</instant>
COMENTEM...
Para ver as outras Spells:Pally Kina e Sorc\/..
http://www.xtibia.com/forum/topic/159710-uma-magia-para-paladins/
http://www.xtibia.com/forum/topic/159769-uma-magia-para-knights/
http://www.xtibia.com/forum/topic/159858-uma-magia-para-sorcerers/