Lay
TFS 1.2
- Joined
- Dec 7, 2012
- Messages
- 67
- Solutions
- 9
- Reaction score
- 29
Hey,
I have problem with this:
If i think it well, TP does not work when player will be in battle with monsters (battle, swords icon), but this shit work =/
(CONDITION_POISON) and others works perfect only i have problem with this INFIGHT
Whan can be wrong? or what i did wrong?
I have problem with this:
Code:
function onSay(player, words, param)
if not player:getCondition(CONDITION_INFIGHT) then
player:teleportTo(player:getTown():getTemplePosition())
return false
else
player:sendTextMessage(MESSAGE_STATUS_SMALL, "You can't teleport during battles.")
return false
end
return true
end
If i think it well, TP does not work when player will be in battle with monsters (battle, swords icon), but this shit work =/
(CONDITION_POISON) and others works perfect only i have problem with this INFIGHT
Whan can be wrong? or what i did wrong?