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

!temple

president vankk

Web Developer & AuraOT Owner
Joined
Jul 10, 2009
Messages
5,719
Solutions
9
Reaction score
339
I wanted a script that when you talk,!temple Teleport to the temple
NOTE: Only 300k +
rep+
:peace:
 
LUA:
  local config = {
    level = 100,
    useInPz = TRUE,
    newPos = {x=100, y=100, z=7}
}
function onSay(cid, words, param)

  if getPlayerLevel < config.level then
    doPlayerSendTextMessage(cid, 25, "You need level " .. config.level .. " or more to teleport you.")
    return TRUE
  end
  
  if (config.useInPz) == TRUE then
    if (getTileInfo(getCreaturePosition(cid)).protection)) then
      doPlayerSendTextMessage(cid, 25, "You can not teleport you during a battle")
      return TRUE  
    end
    return TRUE
  end
  
  doTeleportThing(cid,newPos)
  doSendMagicEffect(newPos,10)
  return TRUE
  
end
 
Last edited:
Code:
[Error - TalkACtion Interface]
data/talkactions/scripts/templeh.lua:onSay
Description:
data/talkactions/scripts/templeh.lua:8: attempt to compare functio nwith number stack traceback:
data/talkactions/scripts/templeh.lua:8 in function <data/talkactions/scripts/templeh.lua:6>
 
Back
Top