Hello, I have searched and didnt find why assassin stars poff.
i think my scipts are wrong.
data/weapons/weapons.xml
data/weapons/weapons/scripts/red_star.lua
data/items/items.xml
I hope someone can help me!
Thanks.
i think my scipts are wrong.
data/weapons/weapons.xml
<distance id="7368" hitchance="100" ammo="removecountchance" script="red_star.lua"/>
data/weapons/weapons/scripts/red_star.lua
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ASSASSINSTAR)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -250, 0, -350)
function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end
data/items/items.xml
<item id="7368" article="an" name="assassin star" plural="assassin stars">
<attribute key="weight" value="200"/>
<attribute key="attack" value="200"/>
<attribute key="weaponType" value="distance"/>
<attribute key="shootType" value="redstar"/>
<attribute key="range" value="5"/>
</item>
I hope someone can help me!
Thanks.
Last edited: