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

Lua Function on login

wlj

retierd
Joined
Jan 7, 2009
Messages
1,201
Reaction score
1
Well i gonna make a script but it allways fu bug...

LUA:
doSendAnimatedText(playerpos, "Welcome back "..getPlayerName(cid).."!)

when a player login it will say Welcome back |PLAYERNAME|

If you wanna make a 1 with like
____
LUA:
doSendAnimatedText(playerpos, "Welcome back "..getPlayerName(cid).."!)


ifplayervip then it will come a Welcome VIP Player |PLAYERNAME|
 
LUA:
local storage = 1234
function onLogin(cid)
	if getPlayerStorageValue(cid, storage) == 1 then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Welcome back ".. getCreatureName(cid) ..".")
	else
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Welcome to this Real Tibia Server ".. getCreatureName(cid) .."!")
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_RED)
                setPlayerStorageValue(cid, storage, 1)
	end
	return TRUE
end
 
Last edited:
Back
Top