What's new

Spells exevo gran mas is

Status
Not open for further replies.

login989

Active User
Joined
Dec 4, 2010
Messages
120
Reaction score
2
Witam chcia?bym zaprezentowa? czar w?asnej roboty.
A wiec wchodzimy w ots/data/spells/scripts i wklejamy tam to:
PHP:
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -2.0, -1500, -1.6, -2000)
local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_POISONDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_POFF)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -2.0, -3402, -1.6, -4978)
local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat3, COMBAT_PARAM_EFFECT, CONST_YELLOW_RINGS)
setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -2.0, -4978, -1.6, -7893)
arr1 = {
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}
}
arr2 = {
{1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 3, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1}
}
arr3 = {
{1, 0, 0, 1, 0, 0, 1},
{0, 1, 1, 1, 1, 1, 0},
{0, 1, 1, 1, 1, 1, 0},
{0, 1, 1, 3, 1, 1, 0},
{0, 1, 1, 1, 1, 1, 0},
{0, 1, 1, 1, 1, 1, 0},
{1, 0, 0, 1, 0, 0, 1}
}
local area1 = createCombatArea(arr1)
local area2 = createCombatArea(arr2)
local area3 = createCombatArea(arr3)
setCombatArea(combat1, area1)
setCombatArea(combat2, area2)
setCombatArea(combat3, area3)
local function onCastSpell1(parameters)
doCombat(parameters.cid, parameters.combat1, parameters.var)
end
local function onCastSpell2(parameters)
doCombat(parameters.cid, parameters.combat2, parameters.var)
end
local function onCastSpell3(parameters)
doCombat(parameters.cid, parameters.combat3, parameters.var)
end
function onCastSpell(cid, var)
local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3 }
addEvent(onCastSpell1, 0, parameters)
addEvent(onCastSpell2, 500, parameters)
addEvent(onCastSpell3, 1000, parameters)
end
a potem w ots/data/spells spells.xml wklejamy to:
Code:
<instant name="Exevo Gran Mas Is" words="exevo gran mas is" selftarget="1"  direction="0" aggressive="1" lvl="150" maglv="65" mana="400" soul="0" exhaustion="1" prem="1" enabled="1" script="exevo gran mas is.lua"><vocation id="1"/><vocation id="5"/><vocation id="3"/></instant>
Mam nadzieje, ?e si? spodoba.

Pozdro, login989
 

kamids

Active User
Joined
Apr 2, 2010
Messages
62
Reaction score
6
Odp: exevo gran mas is

No to tak nie za du?o os?b to ?ci?gnie z powodu braku screenu. A tak w og?le u?ywaj [.code][/.code] tylko bez kropek wygl?da to tak >>
code.gif

A co do czaru to ta nazwa taka bardzo ma?a pomys?owo?? zara ?ci?gne i napisze co s?dze o tym czarze w edycji.

Ten czar niby ju? jaki? polepszony bo ma tam kilka walni?? ale zawsze mo?e by? lepiej nie masz fajnych efekt?w(chodzi mi o efekt kt?re uderzaj? przed walni?ciem czaru czyli np.setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT,...)O wiele lepiej wtedy to wygl?da z distanceefektem.
Pozdrawiam Kamids
 
Last edited by a moderator:
Status
Not open for further replies.
Top