Thorn
Spriting since 2013
Hello, well i have a script of a paladin weapon (slingshot) but it doesn't hit more than one, i would like to know how make it hit 2000-2300 plz, here is my script:
This in items.xml
this in weapons.lua
This in items.xml
LUA:
<item id="5907" article="a" name="Supreme Slingshot">
<attribute key="weight" value="200"/>
<attribute key="weaponType" value="distance"/>
<attribute key="shootType" value="SNOWBALL"/>
<attribute key="HitChance" value="100"/>
<attribute key="range" value="10"/>
<attribute key="breakChance" value="0"/>
<attribute key="ammoAction" value="moveback"/>
</item>
this in weapons.lua
LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLHOLY)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 1, 0, 1, 0)
function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end