data/spells/instant
Crie um arkivo xamado : bruck.lua
e ponha isto
area = { {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, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 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}, } attackType = ATTACK_PHYSICAL needDirection = false areaEffect = NM_ME_MORT_AREA animationEffect = NM_ANI_SUDDENDEATH hitEffect = NM_ME_MORT_AREA damageEffect = NM_ME_MORT_AREA animationColor = GREEN offensive = true drawblood = true GreatEnergyBeamObject = MagicDamageObject(attackType, animationEffect, hitEffect, damageEffect, animationColor, offensive, drawblood, 0, 0) function onCast(cid, creaturePos, level, maglv, var) centerpos = {x=creaturePos.x, y=creaturePos.y, z=creaturePos.z} GreatEnergyBeamObject.minDmg = (level * 10 + maglv *10) * 5.0 GreatEnergyBeamObject.maxDmg = (level * 10 + maglv *10) * 10.0 return doAreaMagic(cid, centerpos, needDirection, areaEffect, area, GreatEnergyBeamObject:ordered()) end
Dps em spell.xml
<spell name="Berserker Mort" words="bruck" maglv="9" mana="500" enabled="1"> <vocation id="4" /> </spell>
Bom ai esta, comentem oq axaram.
Editem a area, pq ela ta meio zuada x]
Vlws