Zziomek |
Wysłany: Sob 23:45, 23 Gru 2006 Temat postu: mega hur |
|
siemka admin forum jstem chyba pierwsza osoba na korej tu pisze wiec mam tu dla ciebie mega hur
W ......./data/spells/instant tworzymy plik mega hur.lua i wklejamy to:
Cytat:
attackType = ATTACK_NONE
animationEffect = NM_ANI_NONE
hitEffect = NM_ME_NONE
damageEffect = NM_ME_MAGIC_POISEN
animationColor = GREEN
offensive = false
drawblood = false
GreatHasteObject = 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}
ret = doTargetMagic(cid, centerpos, GreatHasteObject:ordered())
if(ret) then
speed = getSpeed(cid)
time = 100 --in seconds
addspeed = (speed*7.7)-24
changeSpeed(cid, addspeed, time)
end
return ret
end
W spells.xml dodajemy to:
<spell name="Super Haste" words="mega hur" maglv="3" mana="215" enabled="1"><vocation id="1" /><vocation id="2" /><vocation id="3" /><vocation id="4" /></spell>
i to wszstko i mozesz juz sie cieszyc szbkoscia :p |
|