MSG AO LOGAR

victorcx
em Scripts

victorcx

GrinoxReturns
avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 28/03/14Posts: 20

Olá gente, alguém poderia me dizer qual o script que uso para que toda vez que um player logar no meu server, aparecer uma msg que quero colocar, mas essa msg apareça na tela do player em branco não no default..

 

Sei que existe a opção no config.lua para editar msgs de login, mas aquelas aparecem no default...

 

 

esse script eu uso para quando um player pega level 8;

 

 

function onAdvance(cid, skill, oldLevel, newLevel)

if (getPlayerLevel(cid) == 8) then
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "Congratulations, you reached the level 8 and now you can already choose a vocation and to go main even. But before, you need to go until the Oracle that is in the rookgaard center, and to ask so that him you light until the island of the destiny, there you will choose among the 4 available vocations. Good luck warrior!")
end
end

quero um desse tipo, mas que aparece a mensagem toda vez que o player entrar no server..
Valeu abçs....

Kluivert

:)
avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 06/07/13Posts: 634Gênero: MasculinoChar no Tibia: Kayinsz

Assim?

function onLogin(cid)
 
        if isPlayer(cid) then
                doPlayerSendTextMessage(cid, 22, "Welcome "..getCreatureName(cid).."!")
        end
                return true
            end

Att,

Kluivert.

 

2lQynzLAD.png

notle2012

uoʇן£
avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 03/01/12Posts: 884Char no Tibia: Segredo

data\creaturescripts\scripts\nomedoarquivo.lua

msg = [[
escreve oque
você quer aqui
blz 

]]
function onLogin(cid)
    if getCreatureName(cid) == "Account Manager" then return true end
        doPlayerSendTextMessage(cid, 22, ""..msg.."")
        return true
    end

creaturescripts.xml

<event type="login" name="nomedoarquivo" event="script" value="nomedoarquivo.lua"/>

Por Favor quando for fazer pedidos faz o pedido com mais clareza e com os mínimos detalhes
GOSTO DOS MEUS SCRIPT CLICK EM CURTIR :D

 

sistema de fome

TROCA TROCA

sistema coliseum by notle v1

new sistema [KILLER-UP]

 

 

jcLmJPT.png

victorcx

GrinoxReturns
avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 28/03/14Posts: 20

KluiMaster s2 ;D