Thorn
Spriting since 2013
NO SHOOTYPE EFFECT ON WEAPON
SORRY I MADE A MISTAKE IN TITLE D:
Hi, i have this problem, when i use a special vip spear it attacks like any knight weapon but with distance and in distance...but i would like to see a royal spear shoottype effect :S
plz help me, here are the data:
the last part i added but didn't work :S
and weapons:
and spear lua:
oooh and besides plz teach me how to make the attack of it with min and max
SORRY I MADE A MISTAKE IN TITLE D:
Hi, i have this problem, when i use a special vip spear it attacks like any knight weapon but with distance and in distance...but i would like to see a royal spear shoottype effect :S
plz help me, here are the data:
XML:
<item id="2427" article="a" name="Supreme Spear">
<attribute key="weight" value="3000"/>
<attribute key="attack" value="200"/>
<attribute key="hitChance" value="100"/>
<attribute key="weaponType" value="distance"/>
<attribute key="range" value="10"/>
<attribute key="shootType" value="royalspear" />
and weapons:
XML:
<distance id="2427" script="catalyst spear.lua"/>
and spear lua:
LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 47)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_DEATH)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 1, 0, 1, 0)
local area = createCombatArea( { {1, 1, 1},{1, 3, 1}, {1, 1, 1} } )
setCombatArea(combat, area)
function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end
oooh and besides plz teach me how to make the attack of it with min and max
Last edited: