Postado Dezembro 26, 2012 12 anos Como coloco o texto pra sair em vermelho? function onLogin(cid) if getPlayerStorageValue(cid, 50000) == -1 then doPlayerSendTextMessage(cid, 21, "Bem-Vindo"..getPlayerName(cid).." acesse tibiaking.com e cadastra-se") setPlayerStorageValue(cid, 50000, 1) end return TRUE end Citar MESSAGE_FIRST = 18 MESSAGE_STATUS_CONSOLE_RED = MESSAGE_FIRST MESSAGE_EVENT_ORANGE = 19 MESSAGE_STATUS_CONSOLE_ORANGE = 20 MESSAGE_STATUS_WARNING = 21 MESSAGE_EVENT_ADVANCE = 22 MESSAGE_EVENT_DEFAULT = 23 MESSAGE_STATUS_DEFAULT = 24 MESSAGE_INFO_DESCR = 25 MESSAGE_STATUS_SMALL = 26 MESSAGE_STATUS_CONSOLE_BLUE = 27 MESSAGE_LAST = MESSAGE_STATUS_CONSOLE_BLUE MESSAGE_TYPES = { ["advance"] = MESSAGE_EVENT_ADVANCE, ["event"] = MESSAGE_EVENT_DEFAULT, ["white"] = MESSAGE_EVENT_DEFAULT, ["orange"] = MESSAGE_STATUS_CONSOLE_ORANGE, ["info"] = MESSAGE_INFO_DESCR, ["green"] = MESSAGE_INFO_DESCR, ["small"] = MESSAGE_STATUS_SMALL, ["blue"] = MESSAGE_STATUS_CONSOLE_BLUE, ["red"] = MESSAGE_STATUS_CONSOLE_RED, ["warning"] = MESSAGE_STATUS_WARNING, ["status"] = MESSAGE_STATUS_DEFAULT } (1º) | [8.60] - Galaxy Server - Download (2º) | [8.60] - Glorious Server - Download (3º) | [8.60] - Epic Server - Download
Postado Dezembro 26, 2012 12 anos Em 26/12/2012 em 14:31, jNo disse: Como coloco o texto pra sair em vermelho? function onLogin(cid) if getPlayerStorageValue(cid, 50000) == -1 then doPlayerSendTextMessage(cid, 21, "Bem-Vindo"..getPlayerName(cid).." acesse tibiaking.com e cadastra-se") setPlayerStorageValue(cid, 50000, 1) end return TRUE end Troque o número 21, da TAG (doPlayerSendTextMessage(cid, 21, "Bem-Vindo"..getPlayerName(cid)..") pelo número referente ao que vc queira na lista abaixo: 12 = Mensagem no Server log 18 = Mensagem no Default Window 21 = Mensagem no Screen e Server Log Boa sorte. Editado Dezembro 26, 2012 12 anos por Adriano SwaTT (veja o histórico de edições) Gosta do meu trabalho? Curta e siga a página do meu projeto de 2016 e 2017 (Lab Z Games) que trará vários servidores OTServs. Atenciosamente,Adriano Swatt' Para ver meus tutoriais acesse meu perfil.
Postado Dezembro 26, 2012 12 anos Autor Ja fiz isso, e não funcionou :! (1º) | [8.60] - Galaxy Server - Download (2º) | [8.60] - Glorious Server - Download (3º) | [8.60] - Epic Server - Download
Postado Dezembro 26, 2012 12 anos Muito estranho não ter funcionado. Para o tipo de função que você quer, creio que este abaixo já daria conta do recado e ainda ficaria criativo e um pouco diferente do que os de costume: function onLogin(cid) if getPlayerStorageValue(cid, 50000) == -1 then doPlayerPopupFYI(cid,"Bem-Vindo "..getPlayerName(cid).." acesse tibiaking.com e cadastra-se") setPlayerStorageValue(cid, 50000, 1) end return TRUE end OBS: Lembre-se de dar Reload, ou, dependendo da função, reiniciar o server para dar efeito as modificações. Teste aí, caso não goste comente que eu monto outro pra ti. Boa sorte. Editado Dezembro 26, 2012 12 anos por Adriano SwaTT (veja o histórico de edições) Gosta do meu trabalho? Curta e siga a página do meu projeto de 2016 e 2017 (Lab Z Games) que trará vários servidores OTServs. Atenciosamente,Adriano Swatt' Para ver meus tutoriais acesse meu perfil.
Postado Dezembro 26, 2012 12 anos Dei uma editada, desse jeito vai aparecer no server log function onLogin(cid) if getPlayerStorageValue(cid, 50000) == 1 then doPlayerSendTextMessage(cid,12,"Bem-Vindo "..getPlayerName(cid).." acesse tibiaking.com e cadastra-se") setPlayerStorageValue(cid, 50000, 1) end return TRUE end [/code] e assim vai aparecer em baixo da tela [code] function onLogin(cid) if getPlayerStorageValue(cid, 50000) == 1 then doPlayerSendCancel(cid,"Bem-Vindo "..getPlayerName(cid).." acesse tibiaking.com e cadastra-se") setPlayerStorageValue(cid, 50000, 1) end return TRUE end
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.