• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Game-Chat window on log in

Werewolf

Forbidden Ascension
Joined
Jul 15, 2012
Messages
886
Reaction score
123
how do i get the Game-Chat window to open on log in, can anyone help me out :D?
 
thank you Ninja ^_^ love you

- - - Updated - - -

D: uh oh, i tried to put it in login.lua but no one could log in, login.lua failed to work :/
 
There shouldn't be any problem if you're adding it here.
Code:
local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage
        if(lastLogin > 0) then
            [COLOR=#ff0000]doPlayerOpenChannel(cid, CHANNEL_ID)[/COLOR]
            doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
            str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "."
        else
            str = str .. " Please choose your outfit."
            doPlayerSendOutfitWindow(cid)
        end
 

Similar threads

  • Question Question
Replies
1
Views
268
Back
Top