Forum nie tylko o Tibii i OTS...

Nie tylko o Tibii i OTS...


#1 2007-12-07 16:06:31

jasiu1995l

http://i49.tinypic.com/2uggx2g.jpg

Zarejestrowany: 2007-12-05
Posty: 1396

Magic Blast - nowy spell (ca?kiem inny)

-- doTargetMagic
-- attackType: Type of attack
-- cid: creature id.
-- Targetpos: Target position.
-- animationEffect: Projectile animation.
-- damageEffect: Effect to show when spell hits a player.
-- animationColor: Color of the text that is shown above the player when hit.
-- offensive: Indicates if the spell is a healing/attack spell.
-- drawblood: Determines if the spell causes blood splash.
-- minDmg: Minimal damage.
-- maxDmg: Maximum damage.
-- returns true if the spell was casted.

attackType = ATTACK_PHYSICAL
animationEffect = NM_ANI_SUDDENDEATH

hitEffect = NM_ME_MAGIC_BLOOD
damageEffect = NM_ME_NONE
animationColor = ORANGE
offensive = true
drawblood = true

MagicBlastObject = 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}

MagicBlastObject.minDmg = (level * 1.50 + maglv *4) * 0.50
MagicBlastObject.maxDmg = (level * 1.50 + maglv *4) * 1.0

return doTargetMagic(cid, centerpos, MagicBlastObject:ordered())
end





Teraz w data/spells/instant tworzymy adevo con.lua i wpisujemy w nim:


function onCast(cid, creaturePos, level, maglv, var)
n = makeRune(cid,3101,2);
return n
end



Teraz dodajemy do spells.xml nastepujuce linijeczki:


<spell name="Magic Blast"words="adevo con"maglv="8"mana="150"enabled="1"><vocation id="1"/><vocation id="2"/></spell>
<rune name="Magic Blast"id="3101"charges="2"


Znajdz teraz w items.xml id 3101 i zamien to na to:


<item id="3101" name="adevo con" type="rune" maglevel="2" weight="0.1" />





                                              I GOTOWE.

Offline

 

#2 2007-12-22 23:42:23

niewiem

http://i37.tinypic.com/okc0lk.gif

Zarejestrowany: 2007-12-22
Posty: 2

Re: Magic Blast - nowy spell (ca?kiem inny)

powalony spell zal nawet nie dziala wiec nie potrzebnie sie wysilasz, a poza tym patrz na innych piszą inaczej niz ty i da sie ich zrozumiec, a ty napisales wszystko w jednym zdaniu i taki początkowy co ma ots (nie mowie o mnie) myslisz ze by sie zalapal o co kaman? dobry jestes ;]

Offline

 

Stopka forum

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


Darmowe Forum | Ciekawe Fora | Darmowe Fora
Проживание Порту-Сегуру