[8.0][Czary] Groundshaker, Fierce Berserk, Whirlwind trow, E |
|
Tibia
> Skrypty |
|
Desir
Administrator
Dołączył: 14 Cze 2007
Posty: 75 Przeczytał: 0 tematów
Ostrzeżeń: 0/5
Skąd: Gdańsk
|
[8.0][Czary] Groundshaker, Fierce Berserk, Whirlwind trow, E |
|
|
Autor: Duda1992
Groundshaker
Tworzymy plik gs.lua, a do zawartości wklejamy (nazwa ots\data\spells\scripts)
Kod:
code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 34)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, -0.2, -20, -0.5, 0)
local arr = {
{0, 0, 1, 1, 1, 0, 0},
{0, 1, 1, 1, 1, 1, 0},
{1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 3, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1},
{0, 1, 1, 1, 1, 1, 0},
{0, 0, 1, 1, 1, 0, 0}
}
local area = createCombatArea(arr)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
Fierce Berserk
Tworzymy plik exori_gran.lua, a do zawartości wklejamy (nazwa ots\data\spells\scripts)
Kod:
code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITAREA)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.4, -45, -1.8, 0)
local arr = {
{1, 1, 1},
{1, 2, 1},
{1, 1, 1}
}
local area = createCombatArea(arr)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
Whirlwind trow
Tworzymy plik whirlwind.lua, a do zawartości wklejamy (nazwa ots\data\spells\scripts)
Kod:
code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_DRAWBLOOD)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_WEAPONTYPE)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, 0, -0.9, 0)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
A do global.lua doklejamy (nazwa ots\data\global.lua)
code:
CONST_ANI_WEAPONTYPE = 254
Ethereal Spear
Tworzymy plik ethereal.lua, a do zawartości wklejamy (nazwa ots\data\spells\scripts)
Kod:
code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_DRAWBLOOD)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 27)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, 0, -1.2, 0)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
Teraz otwieramy spells.xml i doklejamy (nazwa ots\data\spells.xml)
code:
--By Duda1992
<instant name="exori mas" words="exori mas" lvl="33" maglv="4" mana="160" exhaustion="1" prem="1" enabled="1" script="gs.lua">
<vocation id="8"/>
</instant>
<instant name="exori gran" words="exori gran" lvl="70" maglv="5" mana="340" exhaustion="1" prem="1" enabled="1" script="exori_gran.lua">
<vocation id="8"/>
</instant>
<instant name="Whirlwind" words="exori hur" needtarget="1" needWeapon="1" soul="0" exhaustion="1" prem="1" enabled="1" script="whirlwind.lua">
<vocation id="8"/>
<vocation id="4"/>
</instant>
<instant name="Ethereal Spear" words="exori con" needtarget="1" needWeapon="1" soul="0" exhaustion="1" prem="1" enabled="1" script="etherear.lua">
<vocation id="3"/>
<vocation id="7"/>
</instant>
I to na tyle
Post został pochwalony 0 razy
|
Nie 14:11, 08 Lip 2007 |
|
|
|
|
|
|
|
Wszystkie czasy w strefie EET (Europa). Obecny czas to Pon 10:53, 02 Gru 2024
|
|
|
fora.pl - załóż własne forum dyskusyjne za darmo
Powered by phpBB: © 2001, 2002 phpBB
Group |