Skrypcik nie mój z :tibi.net.pl
Skrypcik fajny mo¿liwo¶æ rzucania
wchodzimy w data/items/items.xml kilkamy ctrl+f i wpisujemy combat knife
i zamieniamy na :
<item id="2403" article="a" name="combat knife" plural="combasts kife"> <attribute key="weight" value="2000"/> <attribute key="attack" value="30"/> <attribute key="weaponType" value="distance"/> <attribute key="shootType" value="spear"/> <attribute key="range" value="6"/> <attribute key="breakChance" value="50"/> <!-- ? --> </item>
potem wchodzimy w data/weapons/weapons.xml i dodajemy:
<distance id="2403" range="6" enabled="1" exhaustion="0" ammo="hand" script="c knife.lua"></distance>
i w data/weapons/scripst robimy plik "c knife" i dajemy
local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1) setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 23) setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, 0, 0, 0) function onUseWeapon(cid, var) return doCombat(cid, combat, var) end
animacja jest piercing bolta
Offline