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

open window or book when start help

derath

Nb Cake D:
Joined
Jul 13, 2007
Messages
17
Reaction score
0
Location
Ontario, Canada!
trying to make it so when someone starts, it will automaticly pop up say like a book and tell them information
and etc
 
Add in your login.lua:
Code:
doShowTextDialog(cid, 1950, "Text")
You can also use:
Code:
doPlayerPopupFYI(cid, "Message")
 
I think he means when they first start so instead of login.lua put it in firstitems.lua

AND

If you use :
Code:
doPlayerPopupFYI(cid, "Message")

Make sure you use line breaks "\n" every so often or it will debug the client.
 
data/creaturescripts/scripts/script.lua
Code:
function onLogin(cid)
	local storage = 66667
	local txt = "Welcome to the server. /nPlayer Commands: /n/n !bless = Blessings [5cc] /n !aol = Amulet of Loss = [3cc]"
	if(getPlayerStorageValue(cid, storage) == -1) then
		doShowTextDialog(cid, 1950, txt)
		setPlayerStorageValue(cid, storage, 1)
	end
	return true
end
 
data/creaturescripts/scripts/script.lua
Code:
function onLogin(cid)
	local storage = 66667
	local txt = "Welcome to the server. /nPlayer Commands: /n/n !bless = Blessings [5cc] /n !aol = Amulet of Loss = [3cc]"
	if(getPlayerStorageValue(cid, storage) == -1) then
		doShowTextDialog(cid, 1950, txt)
		setPlayerStorageValue(cid, storage, 1)
	end
	return true
end
It's \n ffs.
 
Or he could just enable MOTD and add the text there? xd sure it would bug the higher level, but if he got something new like tetris,bomberman,race he could write 'bout it in MOTD
 
Back
Top