login989
Active User
- Dołączył
- Grudzień 4, 2010
- Posty
- 120
- Liczba reakcji
- 2
Witam przedstawiam czary z tibi 8.70.
No to do roboty.
W ots/data/spells/scripts tworzymy plik o nazwie annihilation.lua a w nim:
Nastepnie w ots/data/spells spells.xml wklejamy to:
A oto 2 czar.
W ots/data/spells/scripts tworzymy plik o nazwie ultimate energy strike.lua
a w nim:
Nast?pnie w spells.xml wklejamy to:
A teraz scenery.
Annihilation
Ultimate Energy Strike
No to do roboty.
W ots/data/spells/scripts tworzymy plik o nazwie annihilation.lua a w nim:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITAREA)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -2.0, -100, -2.4, 0)
local arr = {
{1, 0, 1, 0, 1},
{0, 1, 1, 1, 0},
{1, 1, 2, 1, 1},
{0, 1, 1, 1, 0},
{1, 0, 1, 0, 1}
}
local area = createCombatArea(arr)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
Nastepnie w ots/data/spells spells.xml wklejamy to:
<instant name="Annihilation" words="exori gran ico" lvl="110" maglv="5" mana="300" soul="0" exhaustion="1" prem="1" enabled="1" script="annihilation.lua"><vocation id="4"/><vocation id="8"/></instant>
A oto 2 czar.
W ots/data/spells/scripts tworzymy plik o nazwie ultimate energy strike.lua
a w nim:
Kod:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_ENERGYAREA)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.4, -100, -1.5, 0)
local combatDist = createCombatObject()
setCombatParam(combatDist, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combatDist, COMBAT_PARAM_EFFECT, CONST_ME_ENERGYAREA)
setCombatParam(combatDist, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatFormula(combatDist, COMBAT_FORMULA_LEVELMAGIC, -1.4, -100, -1.5, 0)
function onCastSpell(cid, var)
local target = getCreatureTarget(cid)
if(target ~= 0) then
return doCombat(cid, combatDist, numberToVariant(target))
end
return doCombat(cid, combat, var)
end
Nast?pnie w spells.xml wklejamy to:
<instant name="Ultimate Energy Strike" words="exori max vis" direction="1" lvl="100" maglv="0" mana="100" soul="0" exhaustion="1" prem="1" enabled="1" script="ultimate ice strike.lua"><vocation id="2"/><vocation id="6"/><vocation id="1"/><vocation id="5"/></instant>
A teraz scenery.
Annihilation
Nie masz wystarczających uprawnień, aby zobaczyć link.
Zaloguj or Rejestracja
Ultimate Energy Strike
Nie masz wystarczających uprawnień, aby zobaczyć link.
Zaloguj or Rejestracja