hey i tryd to add a script for my server that can teleport you when you stand on a sirten position
i have added the cord in my script still dont work.. i got this errors!
added in talaction.xml
i have added the cord in my script still dont work.. i got this errors!
Code:
[20/07/2009 18:15:03] Warning: [Event::checkScript] Can not load script. /scripts/admin tko tp.lua
[20/07/2009 18:15:03] data/talkactions/scripts/admin tko tp.lua:3: '}' expected near '='
added in talaction.xml
Code:
<talkaction words="admin tko" script="admin tko tp.lua" />
Code:
function onSay(cid, words, param, channel)
local config = {
reqPos = {x=,y=,z=},
newPos = {x=,y=,z=},
someWhereElse = {x=,y=,z=}
}
if (getCreaturePosition(cid) == config.reqPos) then
doTeleportThing(cid, config.newPos)
else
doTeleportThing(cid, config.someWhereElse)
end
return TRUE
end