• 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!

TFS 1.X+ Tfs 1.4 player:addCondition()

Itutorial

Legendary OT User
Joined
Dec 23, 2014
Messages
2,427
Solutions
68
Reaction score
1,075
Anyone know why it isn't working? There are no errors. It just doesn't add the condition. I have used prints and know the code is executing as intended.

LUA:
if potion.health then
        local condition = Condition(CONDITION_ATTRIBUTES)
        condition:setParameter(CONDITION_PARAM_SUBID, 3)
        condition:setParameter(CONDITION_PARAM_STAT_MAXHITPOINTS, potion.health)
        condition:setParameter(CONDITION_PARAM_TICKS, 1800 * 1000)
        player:addCondition(condition)
    end
Post automatically merged:

nvm early morning brain. I removed varstats from getMaxHealth/mana before.
 
Last edited:
Back
Top