[04/02/2011 11:34:40] [Error - CreatureScript Interface]
[04/02/2011 11:34:40] data/creaturescripts/scripts/idle.luanThink
[04/02/2011 11:34:40] Description:
[04/02/2011 11:34:40] data/creaturescripts/scripts/idle.lua:14: attempt to compare number with nil
[04/02/2011 11:34:40] stack traceback:
[04/02/2011 11:34:40] data/creaturescripts/scripts/idle.lua:14: in function <data/creaturescripts/scripts/idle.lua:6>
function onSay(cid, words, param)
local i = TOWNID,
local townName = carlin,
local position = {x=1000,y=1000,z=7}
for i = position do
if param = "i" or param="townName" then
doTeleportThing(cid, position, TRUE) and doCreatureSendTextMessage(cid, 20, 'Welcome to ..townName..!')
end
return LUA_ERROR
end
end