jpkulik
New Member
- Joined
- Mar 15, 2008
- Messages
- 208
- Reaction score
- 2
Hello all!
I have a script for double atack weapon.
It is for serpent sword.
But the problem is:
The Poison Hit always is 45, every time 45..45..45..
I dont know how to fix it, and the problem number 2 is the poison atack is so fast.
I need to put it in a normal script.
There line in weapons.xml is --->
The script is:
Tank you all!
I have a script for double atack weapon.
It is for serpent sword.
But the problem is:
The Poison Hit always is 45, every time 45..45..45..
I dont know how to fix it, and the problem number 2 is the poison atack is so fast.
I need to put it in a normal script.
There line in weapons.xml is --->
PHP:
<melee id="2409" enabled="1" exhaustion="0" script="serpent sword.lua">
I hope some one help me fast.local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_ZZZ)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0.0, 0, 1.1, 0)
local condition = createConditionObject(CONDITION_POISON)
setConditionParam(condition, CONDITION_PARAM_DELAYED, 1)
addDamageCondition(condition, 1, 200, -45)
setCombatCondition(combat, condition)
function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end
Tank you all!