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.
tfs 1.x always print NO, if player has condition or not has condition, alaways print NO:
solved: if player:hasCondition(CONDITION_ATTRIBUTES, 25) then
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getCreatureCondition(cid, CONDITION_ATTRIBUTES, 25) then
print("yes")
else
print("No")
end
return true
end
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