zidanefrance
Seniour Member
- Joined
- Jul 20, 2009
- Messages
- 51
- Reaction score
- 0
Hello guys, I did this for you...
in energy wall trap.lua write
and in the spells.xml write
I wish you like it plz comment!
in energy wall trap.lua write
Code:
area = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
{0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0},
{0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0},
{0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0},
{0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0},
{0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0},
{0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0},
{0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0},
{0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
}
attackType = ATTACK_POISON
needDirection = false
areaEffect = NM_ME_POISEN_RINGS
animationEffect = NM_ME_MAGIC_POISEN
hitEffect = NM_ME_POISEN
damageEffect = NM_ME_POISEN_RINGS
animationColor = GREEN
offensive = true
drawblood = false
minDmg = 6
maxDmg = 6
PoisonBombObject = MagicDamageObject(attackType, animationEffect, hitEffect, damageEffect, animationColor, offensive, drawblood, 0, 0)
SubPoisonBombObject1 = MagicDamageObject(attackType, NM_ANI_NONE, NM_ME_NONE, damageEffect, animationColor, offensive, drawblood, minDmg, maxDmg)
SubPoisonBombObject2 = MagicDamageObject(attackType, NM_ANI_NONE, NM_ME_NONE, damageEffect, animationColor, offensive, drawblood, 6, 6)
function onCast(cid, creaturePos, level, maglv, var)
centerpos = {x=creaturePos.x, y=creaturePos.y, z=creaturePos.z}
return doAreaGroundMagic(cid, centerpos, needDirection, areaEffect, area, PoisonBombObject:ordered(),
0, 1, SubPoisonBombObject1:ordered(),
5000, 1, SubPoisonBombObject2:ordered(),
2, 35000, 1497,
5000, 6, SubPoisonBombObject2:ordered(),
1, 60000, 1497,
0, 35000, 1497, 3)
end
and in the spells.xml write
Code:
<instant name="Wall Trap" words="exevo wall trap" lvl="2000" mana="700" prem="1" selftarget="1" exhaustion="2000" needlearn="0" event="script" value="custom/energy wall trap.lua">
<vocation name="Elite Knight"/>
</instant>
I wish you like it plz comment!
Last edited: