Forum Wszystko o Dementia OTS Strona Główna
Nowy czar

 
Napisz nowy temat   Odpowiedz do tematu    Forum Wszystko o Dementia OTS Strona Główna -> Porady
Zobacz poprzedni temat :: Zobacz następny temat  
Autor Wiadomość
Luke Skywalker
Noobek



Dołączył: 18 Paź 2006
Posty: 13
Przeczytał: 0 tematów

Ostrzeżeń: 0/6

PostWysłany: Śro 17:34, 18 Paź 2006    Temat postu: Nowy czar

Oto czar zrobiony calkowicie przezemnie!!!!!

Najpierw robimy plik psychical death.xml w folderze server\data\spells\instant i wpisujemy

Kod:
area = {
    {0, 0, 0, 0, 0, 1, 0, 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, 1, 1, 1, 1, 1, 0},
    {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
    {1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1},
    {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
    {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 1, 0, 0, 0, 0, 0},
    }
   
    attackType = ATTACK_FIRE
    needDirection = false
    areaEffect = NM_ME_EXPLOSION_AREA
    animationEffect = NM_ANI_NONE
   
    hitEffect = NM_ME_EXPLOSION_DAMAGE
    damageEffect = NM_ME_DRAW_BLOOD
    animationColor = BLACK
    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 



Później w folderze server\data\spells w pliku spells.xml dodajemy
Kod:

- <spell name="psychical death" words="exevo gran exori" maglv="50" mana="700" enabled="1">
  <vocation id="1" />
  </spell>









Post został pochwalony 0 razy
Powrót do góry
Zobacz profil autora
Wyświetl posty z ostatnich:   
Napisz nowy temat   Odpowiedz do tematu    Forum Wszystko o Dementia OTS Strona Główna -> Porady Wszystkie czasy w strefie EET (Europa)
Strona 1 z 1

 
Skocz do:  
Możesz pisać nowe tematy
Możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach



fora.pl - załóż własne forum dyskusyjne za darmo
Digital Dementia © 2002 Christina Richards, phpBB 2 Version by phpBB2.de
Powered by phpBB © 2001, 2002 phpBB Group
 
Regulamin