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+
eace:
NOTE: Only 300k +
rep+
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
[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>
LUA:if (config.useInPz) ~= TRUE then doPlayerSendTextMessage(cid, 25, "You can not teleport you during a battle") return TRUE
... and getTilePzInfo(...)