alejodelga
New Member
- Joined
- Jun 27, 2013
- Messages
- 1
- Reaction score
- 0
hello guys.
i wanna know if its possible when i make imbuiment for BOWS with elemental damage , can be diamond arrow afected by this imbuiment.
actually only works for SINGLE TARGET ammunition== for example ( powerful energy damage : deals 50% energy damage and 50% physical.)
i''m trying to find some information bcs could be interesting make diamond arrow take effect of elemental damage from a imbuiment BOW.
thx.
pd: i'm not sure if this must be config in diamond .lua , here my formula for diamond arrow,
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
i will appreciate a lot ur help. thanks
i wanna know if its possible when i make imbuiment for BOWS with elemental damage , can be diamond arrow afected by this imbuiment.
actually only works for SINGLE TARGET ammunition== for example ( powerful energy damage : deals 50% energy damage and 50% physical.)
i''m trying to find some information bcs could be interesting make diamond arrow take effect of elemental damage from a imbuiment BOW.
thx.
pd: i'm not sure if this must be config in diamond .lua , here my formula for diamond arrow,
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
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, 1, 1, 3, 1)
combat:setArea(area)
local diamondArrow = Weapon(WEAPON_AMMO)
function diamondArrow.onUseWeapon(player, variant)
return combat:execute(player, variant)
end
diamondArrow:id(29057)
diamondArrow:id(40736)
diamondArrow:level(150)
diamondArrow:attack(37)
diamondArrow:action("removecount")
diamondArrow:ammoType("arrow")
diamondArrow:shootType(CONST_ANI_DIAMONDARROW)
diamondArrow:maxHitChance(100)
diamondArrow:wieldUnproperly(true)
diamondArrow:register()
i will appreciate a lot ur help. thanks
Last edited by a moderator: