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

Lua -=[TFS]=- 0.4 8.60 teleports the player only in the protect zone to the temple

samuel157

/root
Joined
Mar 19, 2010
Messages
447
Solutions
3
Reaction score
49
Location
São Paulo, Brazil
GitHub
Samuel10M
Lua:
function onSay(cid, words, param)

local pos = {x=154, y=51, z=7}
 
 if getCreatureCondition(cid, CONDITION_INFIGHT) then
  doPlayerSendCancel(cid, "Voce nao pode fazer isso em luta")

 else
 
         doSendMagicEffect(getPlayerPosition(cid),53)
         doPlayerSendCancel(cid,"Parabens Voce foi teleportado Com Sucesso")
         doTeleportThing(cid,pos)
end

return true
end
 
replace
Lua:
if getCreatureCondition(cid, CONDITION_INFIGHT) then

with
Lua:
if getTilePzInfo(getPlayerPosition(cid)) == false then

Also, if you use Visual studio code please do ctrl shift + P and write "Reindent lines", makes it look much more readable.
If you don't use visual studio code, download it.
 

Similar threads

Replies
8
Views
1K
Evil Puncker
E
Back
Top