Neczek
User
- Joined
- Mar 16, 2015
- Messages
- 46
- Reaction score
- 1
Witam,ot?? potrzebuj? skryptu,?eby spell uderza? 5 razy z identycznym dmg;>.
Ni?ej podam formu?k? i chcia?bym,?eby ten o to spell z takim samym wygl?dem bi? 5 razy.
[lua]local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 87)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -13.7, -3, -2.1, 0)
local arr = {
{0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 1, 0, 0, 0},
{0, 0, 1, 1, 1, 0, 0},
{0, 1, 1, 2, 1, 1, 0},
{0, 0, 1, 1, 1, 0, 0},
{0, 0, 0, 1, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0},
}
local area = createCombatArea(arr)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end[/lua]
Za pomoc b?d? bardzo wdzi?czny mo?e w przysz?o?ci wynagrodze kogo? na serwerze:].
Ni?ej podam formu?k? i chcia?bym,?eby ten o to spell z takim samym wygl?dem bi? 5 razy.
[lua]local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 87)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -13.7, -3, -2.1, 0)
local arr = {
{0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 1, 0, 0, 0},
{0, 0, 1, 1, 1, 0, 0},
{0, 1, 1, 2, 1, 1, 0},
{0, 0, 1, 1, 1, 0, 0},
{0, 0, 0, 1, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0},
}
local area = createCombatArea(arr)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end[/lua]
Za pomoc b?d? bardzo wdzi?czny mo?e w przysz?o?ci wynagrodze kogo? na serwerze:].