Hi, this is maybe useful for someone, idk.
(First login)
(Everytime you login)
Put this code under function onLogin(cid) in login.lua (creaturescripts)
Remember to change the text.
Please, don't post your own codes in my thread. :huh:
Rep++ please, if you're using
(First login)
(Everytime you login)
Put this code under function onLogin(cid) in login.lua (creaturescripts)
Lua:
local welcomeText = "Welcome " .. getCreatureName(cid) .. ".\n\nOur community would like to welcome you to " .. getConfigValue('serverName') .. ". If you need help with anything, please refer to the help channel.\n\nEnjoy your time!"
local text = "- Welcome to Zelonia, here's a list of commands:\n!aol -> Buy an amulet of loss\n!spells -> List of spells available\n!frags -> Check your amount of kills\n!offer -> Allow you to buy a certain item from auctions on our homepage\nCtrl+R -> Report bugs to staff\n- Visit our webpage for a complete list of commands.\n//Zelonia Staff"
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, ""..text.."")
if(getPlayerStorageValue(cid, 19622)) == -1 then
doBroadcastMessage(""..welcomeText.."")
setPlayerStorageValue(cid, 19622, 1)
return true
end
Remember to change the text.
Please, don't post your own codes in my thread. :huh:
Rep++ please, if you're using
Last edited: