• 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!

Why dosent this work `?

Teddy

SweStream.se
Joined
Oct 2, 2008
Messages
3,797
Reaction score
10
Location
Sweden 172
why dosent that magic work ? :S

Code:
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, 1, 1, 1, 1, 1, 0, 0, 0},
 {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0},
 {0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0},
 {0, 0, 1, 1, 1, 1, 1, 1, 1, 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, 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_EXPLOSION_AREA
 animationEffect = NM_ANI_NONE
 
 hitEffect = NM_ME_EXPLOSION_DAMAGE
 damageEffect = NM_ME_DRAW_BLOOD
 animationColor = RED
 offensive = true
 drawblood = true
 
 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
 
 	UltimateExplosionObject.minDmg = 204
 	UltimateExplosionObject.maxDmg = 5421 
 else
 	UltimateExplosionObject.minDmg = (level * 2 + maglv * 3) * 3.3 - 30
 	UltimateExplosionObject.maxDmg = (level * 2 + maglv * 3) * 6.5 	
 end 
 
 return doAreaMagic(cid, centerpos, needDirection, areaEffect, area, UltimateExplosionObject:ordered())
 end
 
[28/11/2008 18:36:15] Lua Script Error: [Spell Interface]
[28/11/2008 18:36:15] data/spells/scripts/support/uber exori mas.lua

[28/11/2008 18:36:15] data/spells/scripts/support/uber exori mas.lua:26: attempt to call global 'MagicDamageObject' (a nil value)
[28/11/2008 18:36:16] Warning: [Event::loadScript] Can not load script. data/spells/scripts/support/uber exori mas.lua
 
bump_signs.jpg
 
Back
Top Bottom