• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

First msg when creating player

Norix

Hosting Service !
Joined
Jan 18, 2008
Messages
544
Reaction score
9
Location
Germany
Hi
i wanna know where i can change the very first msg when u login:
Welcome on "servername". Please choose your outfit. I wanna add sth there. Can i do it maybe in creaturescripts to make it easier?
I think i must do it in sources but dunno where xD
 
in data creaturescripts onlogin you can do it...
Code:
if getPlayerStorageValue(cid, storage) ~= 1 then
    doPlayerSendTextMessage(cid, visit_your_global.lua, "text")
    setPlayerStorageValue(cid, storage, 1)
end
 
It's probably better to check if it isn't -1 than to check if it is non-equal to 1 ;)

Anyway, Marcinek's solution is better than messing sources with that.
 
Back
Top