- Dołączył
- Grudzień 4, 2010
- Posty
- 120
- Liczba reakcji
- 2
A wiec przedstawiam super speara w data/weapons/scripts tworzymy plik o nazwie super spear.lua a w nim to :
Potem w weapons.xml kasujemy to
i wklejamy to
Nastepnie w data/items/items.xml szukamy id 3965 i zamienamy na to:
To tyle
Kod:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_THROWINGSTAR)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -90, 0, -120)
function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end
Potem w weapons.xml kasujemy to
Kod:
<distance id="3965" range="6" enabled="1" exhaustion="0" hitchance="100" ammo="removecount" script="hunting spear.lua"></distance>
Kod:
<distance id="3965" range="6" enabled="1" exhaustion="0" ammo="hand" script="super spear.lua"></distance>
Nastepnie w data/items/items.xml szukamy id 3965 i zamienamy na to:
Kod:
<item id="3965" article="a" name="super spear" plural="super spears">
<attribute key="weight" value="2200"/>
<attribute key="attack" value="65"/>
<attribute key="weaponType" value="distance"/>
<attribute key="shootType" value="spear"/>
<attribute key="range" value="6"/>
<attribute key="breakChance" value="25"/>
</item>
To tyle
Mi si? to podoba a wy od razu tylko krytykujecie.