Hello i maked on my OT custom wand (effect shooting SD),
and when i got this:
The wand dont attack target (0 damage)
How i can set damage from 75 to 120 in this script:
And second question is:
How i can set attack speed on weapon i have ex. custom bows and i want set special speed attack in bow (when player got this bow [equipped] he attack fastest like fast atk)]
and when i got this:
XML:
<wand id="11394" level="58" mana="20" min="75" max="120" type="death" script="losthope.lua"/>
The wand dont attack target (0 damage)
How i can set damage from 75 to 120 in this script:
LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end
And second question is:
How i can set attack speed on weapon i have ex. custom bows and i want set special speed attack in bow (when player got this bow [equipped] he attack fastest like fast atk)]