What's new

Skrypty & Kody Spell obszarowy uderzaj?cy 5 razy z identycznym dmg

Status
Not open for further replies.

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:].
 

Ciamciaj Bigos

ก้้้้้้&
Joined
Jun 6, 2013
Messages
2,081
Reaction score
192
Odp: Spell obszarowy uderzaj?cy 5 razy z identycznym dmg

[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)
doCombat(cid, combat, var)
addEvent(doCombat, 200, cid, combat, var)
addEvent(doCombat, 400, cid, combat, var)
addEvent(doCombat, 600, cid, combat, var)
addEvent(doCombat, 800, cid, combat, var)
return true
end[/lua]

Pamietaj na przyszlosc zeby uzywac tagow [lua]
 

Neczek

User
Joined
Mar 16, 2015
Messages
46
Reaction score
1
Odp: Spell obszarowy uderzaj?cy 5 razy z identycznym dmg

Nie smiga,mo?e kto? inny ma jaki? pomys? ??
Lua Script Error; [Spell Interface] data/spells/scripts/gaara/Suna no tate.lua;onCastSpell luaAddEvent<>. callback parameter should be a function

Mo?liwe,?e nie dzia?a dlatego,?e jeszcze nie mam source'a zrobionego i to Tibia 7.92 xD.Mo?liwe,?e source jest tutaj potrzebny.Ale na ten czas mo?e kto? co? wymy?li :D
 
Status
Not open for further replies.
Top