sn3ejk
This account is inactive.
- Joined
- Nov 16, 2011
- Messages
- 2,121
- Solutions
- 1
- Reaction score
- 145
Spells
Whirlwind Throw
_____
Player tosses sword, dealing physical damage on impact that increases depending on the distance between him and the target.
Whirlwind Throw
_____
Player tosses sword, dealing physical damage on impact that increases depending on the distance between him and the target.
- Damage
Damage is random number between 142 to 214 multiply count of squares to target.
_ - Range
Range is equal 7 squares.
XML:
<instant name="Whirlwind Toss" words="exori mas hur" lvl="15" mana="40" prem="1" range="5" needtarget="0" blockwalls="1" needweapon="1" exhaustion="2000" needlearn="0" event="script" value="attack/whirlwind toss.lua">
<vocation id="4"/>
<vocation id="8"/>
</instant>
Lua:
function onCastSpell(cid, var)
for i = 1, 7 do
local creature = getTopCreature(getPositionByDirection(getCreaturePosition(cid), getCreatureLookDirection(cid), i))
if (creature.uid > 0) then
doSendDistanceShoot(getCreaturePosition(cid), getCreaturePosition(creature.uid), CONST_ANI_WHIRLWINDSWORD)
doTargetCombatHealth(cid, creature.uid, COMBAT_PHYSICALDAMAGE, -142 * i, -214 * i, CONST_ME_NONE)
return true
end
end
doSendDistanceShoot(getCreaturePosition(cid), getPositionByDirection(getCreaturePosition(cid), getCreatureLookDirection(cid), 7), CONST_ANI_WHIRLWINDSWORD)
return true
end