• 01-04.05.2026 - DOUBLE EXP / SKILL EVENT!

Skrypty & Kody Target rozpryskuj?cy si?

Status
Zamknięty.

pumanitro

Advanced User
Zarejestrowany
Dołączył
Styczeń 4, 2009
Posty
354
Liczba reakcji
3
Witam !
Chcia?bym zrobi? spell - target , kt?ry leci do moba ,kt?rego mamy zaznaczonego po czym nast?pnie otacza stwora efektami - 17 , kt?re mog? zada? obra?enia mob? obok tego stwora.

Tyle co wypoci?em , lecz nie dzia?a :

[LUA]local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 15)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 17)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -4.8, 0, -5.2, 0)

local arr1 = {
{0, 0, 0, 0, 0},
{0, 1, 1, 1, 0},
{0, 1, 3, 1, 0},
{0, 1, 1, 1, 0},
{0, 0, 0, 0, 0},
{0, 0, 0, 0, 0},
}

local area1 = createCombatArea(arr1)
setCombatArea(combat1, area1)

function onCastSpell(cid, var)
if isPlayer(cid) == TRUE then
doCombat(cid, combat1, numberToVariant(cid))
return TRUE
end
end[/LUA]

Nagradzam Plusami !
 
Odp: Target rozpryskuj?cy si?

Rozumiem:p Big Bang Attack!
[LUA]local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, 1)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 15)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 17)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -4.4, 0, -4.1, 0)
--=======================================================================




local area1 = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 3, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}}
--=======================================




setCombatArea(combat1, createCombatArea(area1))



function onCastSpell(cid, var)
addEvent(doCombat, 0, cid, combat1, var)
end
[/LUA]

?apaj ;)
 
Odp: Target rozpryskuj?cy si?

Plusik dla Ciebie - dzia?a
 
Status
Zamknięty.
Back
Do góry