Ola Queria Arrumar Minha Gunbai Para Atakar em Distancia Poderiao Me ajudar? weapons/scripts/gumbai.lua \/
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)
setCombatParam(combat, COMBAT_PARAM_BLOCKSHIELD, 1)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 17)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 1, 0, 1, 0)
local area = createCombatArea({
{0, 0, 0},
{0, 3, 0},
{0, 0, 0}
})
setCombatArea(combat, area)
function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end items.xml gunbai <item id="11472" article="a" name="gunbai">
<attribute key="weight" value="5000" />
<attribute key="defense" value="400" />
<attribute key="attack" value="450" />
<attribute key="weaponType" value="sword" />