Santy
Member
- Joined
- Aug 14, 2007
- Messages
- 654
- Reaction score
- 22
This script makes weapons have extra attacks, elements attacks, just like in Diablo II..
Add this script to weapons
And add this to weapons.xml
P.S I made it so only knights can have extra elements dmg, so vocations can be more balanced..
Add this script to weapons
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatFormula(combat, COMBAT_FORMULA_SKILL , 0, 0, 0, 0)
local condition = createConditionObject(CONDITION_FIRE)
setConditionParam(condition, CONDITION_PARAM_DELAYED, 1)
addDamageCondition(condition, 1, 1000, -15)
addDamageCondition(condition, 1, 1000, -10)
addDamageCondition(condition, 1, 1000, -5)
setCombatCondition(combat, condition)
function onUseWeapon(cid, var)
doCombat(cid, combat, var)
end
And add this to weapons.xml
Code:
<!-- Melee weapons -->
<melee id="2392" range="1" level="1" mana="0" enabled="1" exhaustion="0" script="fire sword.lua"><vocation id="4"/><vocation id="8"/></melee>
P.S I made it so only knights can have extra elements dmg, so vocations can be more balanced..