Auto-notice.

05/28/2013 23:27 julioclitwin#1
For example, in source of LTD:

In:
Code:
void CDPClient::OnJoin( CAr & ar )
Code:
//DSystem
		CString nick = pMover->GetName();
		g_WndMng.PutString( "[DSystem] Bienvenue, " + nick + ", passez un bon moment!", NULL, prj.GetTextColor(TID_ADMIN_ANNOUNCE), CHATSTY_SYSTEM );
Work, but this string don't accept characteres with accents.
Examples: á,ã,à,é,ê,ç ...

Anyone have any idea how to fix?
05/28/2013 23:41 xTwiLightx#2
Try this:

PutString( _T("[DSystem] Bienvenue, " + nick + ", passez un bon moment!"), NULL, prj.GetTextColor(TID_ADMIN_ANNOUNCE), CHATSTY_SYSTEM );"
05/29/2013 00:16 julioclitwin#3
error C2144: syntax error : 'time_t' should be preceded by ';'
error C2001: newline in constant
05/29/2013 00:24 ademir321#4
Quote:
Originally Posted by julioclitwin View Post
error C2144: syntax error : 'time_t' should be preceded by ';'
error C2001: newline in constant
tira aquela aspa do final.

PutString( _T("[DSystem] Bienvenue, " + nick + ", passez un bon moment!"), NULL, prj.GetTextColor(TID_ADMIN_ANNOUNCE), CHATSTY_SYSTEM );"
05/29/2013 00:32 julioclitwin#5
@xTwiLightx
Thanks man, working!

@ademir321
kkkkkkkkkkk, nem reparei. Obrigado Ademir.

Você tem noção de como posso deixar um pouco melhor? Do tipo, que eu crie por exemplo:
notice.txt
E nesse arquivo ficaria o noticia que aparecerá no chat. Sem ter que ficar sempre compilando o Neuz para editar a Mensagem.
05/29/2013 22:26 ademir321#6
Quote:
Originally Posted by julioclitwin View Post
@xTwiLightx
Thanks man, working!

@ademir321
kkkkkkkkkkk, nem reparei. Obrigado Ademir.

Você tem noção de como posso deixar um pouco melhor? Do tipo, que eu crie por exemplo:
notice.txt
E nesse arquivo ficaria o noticia que aparecerá no chat. Sem ter que ficar sempre compilando o Neuz para editar a Mensagem.
No source, já tem muitos desse tipo, tente usar um como exemplo, ou faça para usar no TextClient.txt.txt
05/30/2013 00:16 julioclitwin#7
Quote:
Originally Posted by ademir321 View Post
No source, já tem muitos desse tipo, tente usar um como exemplo, ou faça para usar no TextClient.txt.txt
Não tenho muito noção de como posso fazer.
05/30/2013 00:37 ademir321#8
Quote:
Originally Posted by julioclitwin View Post
Não tenho muito noção de como posso fazer.
Usa então apenas o textclient.txt.txt
05/30/2013 01:13 julioclitwin#9
Quote:
Originally Posted by ademir321 View Post
Usa então apenas o textclient.txt.txt
Poderia escrever? E outra coisa, quando fosse para adicionar uma nova linha, teria que modificar na source para adicionar a nova string?
05/30/2013 17:36 ademir321#10
a string ex:TID_ADMIN_ANNOUNCE_001 , isso teria de adcionar so source, mas para mudar apenas o texto , ai é no textclient.txt.txt , já para criar um .inc ou .txt pra rodar automaticamente, isso ai já existem varios espalhados no source, é só procurar.
05/30/2013 23:10 xxfabbelxx#11
please speak english so everybody is able to understand you
05/30/2013 23:44 iHellsBlade#12
wow spanish is hard :)
i wanned to understand to learn some c++ from you pro guys but eh ...

05/31/2013 04:18 julioclitwin#13
We are talking about how can I make an Auto-notice that can be edited in the archives of the Client. Or, edit my notice in WorldServer.ini

Is Portuguese.
05/31/2013 07:07 iHellsBlade#14
as far as i know , there is a notice script in event.lua, try to get that to work instead