• 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.2] Simple onStepIn Script

cesar10

Active Member
Joined
Aug 4, 2009
Messages
427
Reaction score
37
Hello! I have a simple request and I was hoping someone here could help me since I'm not good at scripting.
What I need is that when a player walks in the temple a text tells him "Do not run in the temple." but not when he walks outside just when he's walking in!
GHi1bOV.png
 
Code:
function onStepIn(player, item, pos, frompos)
    return true, not Tile(frompos):hasFlag(TILESTATE_PROTECTIONZONE) and player:sendTextMessage(22, "No running in temple.")
end
 
Back
Top