I tried scripting this welcome message for people/new characters for first time logging in, it will tell them how to get off the starter island/information about the server...
But it won't work??
I also get this message through the server start thingy...
P.S, new to all this, so please understand if this is a noob mistake
But it won't work??
Code:
local MSG_TYPE = MESSAGE_STATUS_CONSOLE_RED
local storage = new
local name = getCreatureName(cid)
function onLogin (cid)
if getPlayerStorageValue (cid, new) <= 0 then
if getPlayerLevel (cid) <65 then
doPlayerSendTextMessage (cid, MSG_TYPE, "Welcome to OT server " . . name . . " for the first time! ")
setPlayerStorageValue (cid, new, 1)
else
doPlayerSendTextMessage (cid, MSG_TYPE, "Welcome back!")
end
return TRUE
end
I also get this message through the server start thingy...
Code:
[20/01/2013 17:03:11] Warning: [Event::checkScript] Can not load script. /scripts/welcome.lua
[20/01/2013 17:03:11] data/creaturescripts/scripts/welcome.lua:8: ')' expected near '.'
P.S, new to all this, so please understand if this is a noob mistake