Hi all,
once again i need help ( for noobs)
i want to add this effect :
to this weapon script:
I tryed with:
but there just arrows...
can somebody help me ??
the effect that i want to use is /x 37 ingame.
thx
Nips
once again i need help ( for noobs)
i want to add this effect :
to this weapon script:
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)
setCombatParam(combat, COMBAT_PARAM_BLOCKSHIELD, 1)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
local arr = {
{0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 1, 0, 0, 0},
{0, 0, 1, 3, 1, 0, 0},
{0, 0, 0, 1, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0}
}
local area = createCombatArea(arr)
setCombatArea(combat, area)
local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 5000)
setConditionParam(condition, CONDITION_PARAM_SPEED, -500)
setCombatCondition(combat, condition)
function getCombatFormulas(cid, level, magicLevel)
local formula_min = -(level * 0 + magicLevel * 0) * 0 - 500
local formula_max = -(level * 0 + magicLevel * 0) * 0 - 1000
return formula_min, formula_max
end
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "getCombatFormulas")
function onUseWeapon(cid, var)
doCombat(cid, combat, var)
end
I tryed with:
Code:
setCombatParam(combat, COMBAT_PARAM_(DISTANCE)EFFECT, CONST_ME_HOLYDAMAGE)--Without the "( )" in front of & behind DISTANCE
but there just arrows...
can somebody help me ??
the effect that i want to use is /x 37 ingame.
thx
Nips