R
Rahim
Guest
Witam. Kiedy? napisa?em dla mojego OTS ten?e czar:
Exori B?k. Czyli "fala uderzeniowa" wychodz?ca yy od ty?u
Gdy go pisa?em, jeszcze jaki? super hiper dobrym skrypterem to ja nie by?em, wi?c zaawansowany to on nie jest, lecz na moim OTS gracze polubili ten czar. Mo?e i wam si? spodoba
W dodatku czar ma losowy zasi?g i si?? uderzenia. Daje tak?e Poison condition.
spells/scripts
I do niego:
spells.xml
SS:
Yyyy oceniajcie?
Pozdro =]
Exori B?k. Czyli "fala uderzeniowa" wychodz?ca yy od ty?u

Gdy go pisa?em, jeszcze jaki? super hiper dobrym skrypterem to ja nie by?em, wi?c zaawansowany to on nie jest, lecz na moim OTS gracze polubili ten czar. Mo?e i wam si? spodoba

W dodatku czar ma losowy zasi?g i si?? uderzenia. Daje tak?e Poison condition.

spells/scripts
Kod:
bak.lua
I do niego:
Kod:
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_POISONAREA)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -1.4, -30, -5.9, 0)
local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_POISONAREA)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -0.7, -30, -1.5, 0)
local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat3, COMBAT_PARAM_EFFECT, CONST_ME_POISONAREA)
setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -1.0, -40, -2.9, 0)
local arr1 = {
{0, 2, 0},
{0, 0, 0},
{0, 1, 0}
}
local arr2 = {
{0, 0, 0},
{0, 2, 0},
{0, 1, 0},
{0, 1, 0},
{0, 1, 0},
{0, 1, 0}
}
local arr3 = {
{0, 0, 0},
{0, 2, 0},
{0, 1, 0},
{1, 1, 1},
{1, 1, 1},
{1, 1, 1}
}
local area1 = createCombatArea(arr1)
local area2 = createCombatArea(arr2)
local area3 = createCombatArea(arr3)
setCombatArea(combat1, area1)
setCombatArea(combat2, area2)
setCombatArea(combat3, area3)
local condition = createConditionObject(CONDITION_POISON)
setConditionParam(condition, CONDITION_PARAM_DELAYED, 1)
addDamageCondition(condition, 10, 2000, -5)
setCombatCondition(combat1, condition)
setCombatCondition(combat2, condition)
setCombatCondition(combat3, condition)
function onCastSpell(cid, var)
szansa = math.random(1,3)
if szansa == 1 then
doCombat(cid, combat1, var)
elseif szansa == 2 then
doCombat(cid, combat2, var)
elseif szansa == 3 then
doCombat(cid, combat3, var)
end
end
spells.xml
Kod:
<instant name="Exori Bak" words="exori bak" direction="1" lvl="11" maglv="2" mana="20" soul="0" exhaustion="1" prem="1" enabled="1" script="bak.lua"><vocation id="2"/><vocation id="1"/><vocation id="6"/><vocation id="5"/></instant>
SS:
Yyyy oceniajcie?
Pozdro =]
7/10 za pomys? i ch?ci 