• 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.x where i'm missing?

roriscrave

Advanced OT User
Joined
Dec 7, 2011
Messages
1,188
Solutions
34
Reaction score
200
tfs 0.x (all works fine), player have condition print YES, and dont have print NO.

Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if getCreatureCondition(cid, CONDITION_ATTRIBUTES, 25) then
        print("yes")
    else
        print("No")
    end
    return true
end
tfs 1.x always print NO, if player has condition or not has condition, alaways print NO:

Lua:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
    if player:hasCondition(CONDITION_PARAM_SUBID, 25) then
        print("yes")
    else
        print("no")
    end
    return true
end
Post automatically merged:

solved: if player:hasCondition(CONDITION_ATTRIBUTES, 25) then
 
Back
Top