Frillinde
Founder: Another Realm
I made or at least attempted to make a talkaction for admin chars (senior tutor and up) to use to goto the admin area.
Using 0.3.6pl1 (8.54) this is my error:
Hopefully I was close but I have no lua skills yet ( but I try)
XML:
LUA:
Is there 1 too many ends?I dunno
but I hope you can help fix it.Thanks in advance. 
Using 0.3.6pl1 (8.54) this is my error:
[29/03/2012 15:21:03] [Error - LuaScriptInterface::loadFile] data/talkactions/scripts/office.lua:11: '<eof>' expected near 'end'
[29/03/2012 15:21:03] [Warning - Event::loadScript] Cannot load script (data/talkactions/scripts/office.lua)
[29/03/2012 15:21:03] data/talkactions/scripts/office.lua:11: '<eof>' expected near 'end'
Hopefully I was close but I have no lua skills yet ( but I try)
XML:
<talkaction log="yes" words="/office" access="3" event="script" value="office.lua"/>
LUA:
function onSay(cid, words, param, channel)
local office = {x=1316, y=820, z=7}
if getPlayerAccess(cid) > 2 then
doTeleportThing(cid, office)
doSendMagicEffect(office, CONST_ME_TELEPORT)
doPlayerSendTextMessage(cid,22,"Welcome back to the office.")
else
doPlayerSendCancel(cid, 'Sorry, you are currently not able to access this area.')
end end return true
end
Is there 1 too many ends?I dunno

