What's new

Exevo Winter Hur

Status
Not open for further replies.

djzielak

User
Joined
Jun 26, 2010
Messages
30
Reaction score
0
Siema przedstawiam wam czar mojego autorstwa. Oto on:
w spells/script tworzymy plik o nazwie winter wave
Code:
--By Zielak
local atk1 = createCombatObject()
local atk2 = createCombatObject()
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 255)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 28 )
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -1.3, -300, -1.7, 0)
local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, 255)
setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, 28 )
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -1.3, -300, -1.7, 0)
local arr1 = {
{1, 1, 1 ,1 ,1},
{1, 1, 1 ,1 ,1},
{0, 1, 1 ,1 ,0},
{0, 1, 1 ,1 ,0},
{0, 0, 3 ,0 ,0},
}
local arr2 = {
{1, 1, 1 ,1 ,1},
{1, 1, 1 ,1 ,1},
{0, 1, 1 ,1 ,0},
{0, 1, 1 ,1 ,0},
{0, 0, 3 ,0 ,0},
}
local arrDiag = {
{1, 1, 1, 0, 0},
{1, 1, 0, 0, 0},
{1, 0, 1, 0, 0},
{0, 0, 0, 1, 0},
{0, 0, 0, 0, 3},
}
local area1 = createCombatArea(arr1)
local area2 = createCombatArea(arr2)
setCombatArea(atk1, area1)
setCombatArea(atk2, area2)
function onTargetTile(cid, pos)
doCombat(cid,combat1,positionToVariant(pos))
end
function onTargetTile2(cid, pos)
doCombat(cid,combat2,positionToVariant(pos))
end
setCombatCallback(atk1, CALLBACK_PARAM_TARGETTILE, "onTargetTile")
setCombatCallback(atk2, CALLBACK_PARAM_TARGETTILE, "onTargetTile2")
local function onCastSpell1(parameters)
doCombat(parameters.cid, atk1, parameters.var)
end
local function onCastSpell2(parameters)
doCombat(parameters.cid, atk2, parameters.var)
end
function onCastSpell(cid, var)
local parameters = { cid = cid, var = var}
addEvent(onCastSpell1, 100, parameters)
addEvent(onCastSpell2, 250, parameters)
end
i teraz w spells.xml:
Code:
<instant name="Winter Wave" words="exevo winter hur" aggressive="1" direction="1" lvl="380" maglv="20" mana="2500" soul="0" exhaustion="1" prem="0" enabled="1" script="winter wave.lua"><vocation id="11"/><vocation id="12"/><vocation id="13"/></instant>
i cieszymy si? czarem :p
Zakaz kopiowania bez mojej zgody, skrypt w 100 % by me przed chwila go zrobi?em

dd580ae9c95b.bmp.html
 

djzielak

User
Joined
Jun 26, 2010
Messages
30
Reaction score
0
Odp: Exevo Winter Hur



nie wiem czemu nie chce wejsc ;/
 
Last edited:

Mateorixis

Advanced User
Joined
Oct 30, 2010
Messages
233
Reaction score
12
Odp: Exevo Winter Hur

Fajny ma wygl?d ale nie jest zbyt trudny reputa ci nie dam bo nie potrzebuje takiego czego? ale mo?e komu? si? sprzyda? a tak w og?le nie na bijaj post?w pisz wszystko w 1 po?cie albo potem edytuj swoje posty a nie piszesz jeden pod drugim...
 
Status
Not open for further replies.
Top