darkmu
Well-Known Member
Good morning people,
I would like to know if there is a possibility to exchange the Diamond Arrow Combat by checking the BOW id that I will be using.
In the case of each bow used the:
combat: setParameter (COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) will change.
TFS 1.3
I would like to know if there is a possibility to exchange the Diamond Arrow Combat by checking the BOW id that I will be using.
In the case of each bow used the:
combat: setParameter (COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) will change.
TFS 1.3
Lua:
local area = createCombatArea({
{0, 1, 1, 1, 0},
{1, 1, 1, 1, 1},
{1, 1, 3, 1, 1},
{1, 1, 1, 1, 1},
{0, 1, 1, 1, 0},
})
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_ENERGYHIT)
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_DIAMONDARROW)
combat:setParameter(COMBAT_PARAM_BLOCKARMOR, true)
combat:setFormula(COMBAT_FORMULA_SKILL, 0, 0, 1, 0)
combat:setArea(area)
function onUseWeapon(player, variant)
return combat:execute(player, variant)
end