• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Spell First spell :D

Pro Warbringer

Retired with developing
Joined
Sep 23, 2008
Messages
3,582
Reaction score
24
Location
Austria
Well here it is.

Exorimana.lua
Code:
area = {
{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 1, 0, 0, 0, 0, 0, 1, 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, 0, 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, 1, 0, 0, 0, 0, 0, 1, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
}

attackType = ATTACK_MANADRAIN
needDirection = false
areaEffect = NM_ME_FIRE_AREA
animationEffect = NM_ANI_FIRE

hitEffect = NM_ME_FIRE_AREA
damageEffect = NM_ME_HITBY_FIRE
animationColor = BLUE
offensive = true
drawblood = false

UltimateExplosionObject = 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}
n = tonumber(var) -- try to convert it to a number
if n ~= nil then
-- bugged
-- ultimateExplosionObject.minDmg = var+0
-- UltimateExplosionObject.maxDmg = var+0
UltimateManaDrainObject.minDmg = 0
UltimateManaDrainObject.maxDmg = 0
else
-- UltimateExplosionObject.minDmg = (level * 5 + maglv * 6) * 2.3 - 30
-- UltimateExplosionObject.maxDmg = (level * 5 + maglv * 6) * 3.0
UltimateManaDrainObject.minDmg = (level * 3 + maglv * 3) * 1.2
UltimateManaDrainObject.maxDmg = (level * 3 + maglv * 3) * 2.3
end 
return 1
end
end
end

Put in spells.xml
Code:
<spell name="Exorimana" words="exorimana" maglv="8" mana="500" enabled="1"><vocation id="1" /></spell>


Hope it worked :) its my first!

Add me some rep if you feel like it

Kind Regard's,
Pro Warbringer
 
Last edited:
isn't this oldschool?
 
Pro Warbringer, please strike a screen shot.
For people who do not understand scripter
 
If you don't like it don't comment it ... easy huh? And what even if it is like a 7.4 spell.. its my first so please gtfo.
 
If you don't like it don't comment it ... easy huh? And what even if it is like a 7.4 spell.. its my first so please gtfo.



Agree! Seems to be a nice spell,but screenshots or a vid would be nice :p,else i think you deserve alot of rep :D
 
Back
Top