Paulix
Active Member
- Joined
- Sep 13, 2012
- Messages
- 151
- Solutions
- 8
- Reaction score
- 36
Hello, im actually working on a weapon for my server, but i'm facing the following problem...
local combat = createCombatObject()
local condition = createConditionObject(CONDITION_POISON)
addDamageCondition(condition, ticks, times, damage)
setCombatCondition(combat, condition)
as the function addDamageCondition shows, it needs a specific value on "damage".
i would like to know if there is any way to define some kind of formula to calculate this damage, since im out of onUseWeapon function... for example leve+ml or something
i tried already to define condition inside onUseWeapon, but its not possible since you can only set it while script is loading...
local combat = createCombatObject()
local condition = createConditionObject(CONDITION_POISON)
addDamageCondition(condition, ticks, times, damage)
setCombatCondition(combat, condition)
as the function addDamageCondition shows, it needs a specific value on "damage".
i would like to know if there is any way to define some kind of formula to calculate this damage, since im out of onUseWeapon function... for example leve+ml or something
i tried already to define condition inside onUseWeapon, but its not possible since you can only set it while script is loading...