Hello.
I made an distance sword in items.xml:
And script in weapons:
Animation, removecount working good but when i attacking with this sword from distance i have problem:
This adding me skill == Distance Fighting not Sword Fighting.
Anyone can fix it ? (To gain sword fighting while using it ?)
Please
I made an distance sword in items.xml:
XML:
<item id="13524" article="an" name="distance training sword" plural="distance training swords">
<attribute key="weight" value="250"/>
<attribute key="weaponType" value="sword" />
<attribute key="slotType" value="two-handed" />
<attribute key="attack" value="100" />
<attribute key="range" value="4" />
<attribute key="description" value="That sword you can throw from distance"/>
<attribute key="maxHitChance" value="95" />
<attribute key="ammoAction" value="removecount" />
</item>
And script in weapons:
LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 0)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 21)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, 0, 1.0, 0)
function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end
Animation, removecount working good but when i attacking with this sword from distance i have problem:
This adding me skill == Distance Fighting not Sword Fighting.
Anyone can fix it ? (To gain sword fighting while using it ?)
Please