• 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!

[CreatureScript] Message on LogIn

Synergy

New Member
Joined
Nov 24, 2011
Messages
334
Reaction score
0
Hello!


I want the script to do this:
A huge message in orange colour pops up on players FIRST login including a short story.


Thanks in advance!!
 
Replace this in login.lua then type your msg.
LUA:
		if(lastLogin > 0) then
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
			str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "."
		else
		    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "TYPE HERE.")
		end
 
Yep, I made it with a window!
Thanks so much both of you, rep++

- - - Updated - - -

well I can't replace my login.lua, that made the whole server bugg out.. and the script kimokimo posted doesnt work.. :/

- - - Updated - - -

well I can't replace my login.lua, that made the whole server bugg out.. and the script kimokimo posted doesnt work.. :/
 
Back
Top