Hegemonia OTS

Forum Hegemonia OTS

  • Nie jesteś zalogowany.
  • Polecamy: Komputery

#1 2006-10-29 07:44:03

ziomal11

Newbie

Zarejestrowany: 2006-10-29
Posty: 8
Punktów :   

Deathstar vis ( spell )

Postanowilem napisac fajny skrypt z ciekawym czarem a mianowicie
Deathstar vis
area = {
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0},
{0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0},
{0, 0, 1, 0, 0, 1, 0, 0, 1, 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_EXPLOSION_DAMAGE
damageEffect = NM_ME_MORT_AREA
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 = 0
UltimateExplosionObject.maxDmg = 0
else
UltimateExplosionObject.minDmg = (level * 2 + maglv * 3) * 2.3 - 30
UltimateExplosionObject.maxDmg = (level * 2 + maglv * 3) * 3.0
end

return doAreaMagic(cid, centerpos, needDirection, areaEffect, area, UltimateExplosionObject:ordered())
end
Sorry daje edit

w data/spells/spell.XML
wstaw to <spell name="Smierconosna gwiazda" words="deathstar vis" maglv="50" mana="100" enabled="1"><vocation id="1" /><vocation id="2" /><vocation id="3" /><vocation id="4" /></spell>

Offline

 

#2 2006-10-29 12:22:44

Milo

Administrator

Zarejestrowany: 2006-10-26
Posty: 9
Punktów :   

Re: Deathstar vis ( spell )

Czy to nie jest czasem ulepszone UE ? ;]


-.-

Offline

 
Hegemonia OTS

Stopka forum

RSS
Powered by PunBB
© Copyright 2002–2008 PunBB
Polityka cookies - Wersja Lo-Fi


Darmowe Forum | Ciekawe Fora | Darmowe Fora
www.nostale.pun.pl www.nfs.pun.pl www.logistyka-wscil.pun.pl www.abnormals.pun.pl www.pokefireonline.pun.pl