• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved Add condition energy to the player

flaviiojr

Active Member
Joined
Jan 20, 2017
Messages
230
Solutions
13
Reaction score
39
Which function do i use to add condition to the player?
Example: I wanted to add the energy and it taking 20
Thanks in advance, and any help is appreciated!
thank you so much
 
Solution
Lua:
local condition = Condition(CONDITION_ENERGY)
condition:addDamage(20, 20000, 20) -- (rounds, time, value) | (20 rounds, 20000 milliseconds, 20 damage)

player:addCondition(condition)
Lua:
local condition = Condition(CONDITION_ENERGY)
condition:addDamage(20, 20000, 20) -- (rounds, time, value) | (20 rounds, 20000 milliseconds, 20 damage)

player:addCondition(condition)
 
Solution
Many thanks: D
What if I want a single hit?
Lua:
local condition = Condition(CONDITION_ENERGY)
condition:addDamage(20, 20000, 20) -- (rounds, time, value) | (20 rounds, 20000 milliseconds, 20 damage)

player:addCondition(condition)
 
Back
Top