Chat de party
+4
Eduardo
Sogimar Junior
dazateam
AlexsandroUchiha
8 participantes
Página 1 de 1
Chat de party
Como eu não tenho nada pra fazer e o forum esta parado decidi postar um sistema somples que eu fiz(se já exisir eu não sabia)
CLIENT~SIDE
No final de modclientTCP add:
add debaixo de CPartyLeave add:
em modInput procura por ' Broadcast message e acima add:
SERVE~SIDE
ADD DEBAIXO DE CPartyChatMsg
EM MODHADLE PROCURA POR HandleDataSub(CPartyLeave) = GetAddress(AddressOf HandlePartyLeave) E EMBAIXO ADD:
E NO FINAL DE modHandleData ADD:
No final de modServeTCP add:
OBS:Para manda a mensagem digite "/p"
Qualquer erro informe :3
Creditos:Newbie
CLIENT~SIDE
No final de modclientTCP add:
- Código:
Public Sub SendPartyChatMsg(ByVal text As String)
Dim Buffer As clsBuffer
Set Buffer = New clsBuffer
Buffer.WriteLong CPartyChatMsg
Buffer.WriteString text
SendData Buffer.ToArray()
Set Buffer = Nothing
End Sub
add debaixo de CPartyLeave add:
- Código:
CPartyChatMsg
em modInput procura por ' Broadcast message e acima add:
- Código:
' Party Msg
If Left$(ChatText, 3) = "/p " Then
ChatText = Mid$(ChatText, 4, Len(ChatText) - 3)
If Len(ChatText) > 0 Then
Call SendPartyChatMsg(ChatText)
End If
MyText = vbNullString
frmMain.txtMyChat.text = vbNullString
Exit Sub
End If
SERVE~SIDE
ADD DEBAIXO DE CPartyChatMsg
- Código:
CPartyChatMsg
EM MODHADLE PROCURA POR HandleDataSub(CPartyLeave) = GetAddress(AddressOf HandlePartyLeave) E EMBAIXO ADD:
- Código:
HandleDataSub(CPartyChatMsg) = GetAddress(AddressOf HandlePartyChatMsg)
E NO FINAL DE modHandleData ADD:
- Código:
Sub HandlePartyChatMsg(ByVal Index As Long, ByRef Data() As Byte, ByVal StartAddr As Long, ByVal ExtraVar As Long)
Dim Buffer As clsBuffer
Set Buffer = New clsBuffer
Buffer.WriteBytes Data()
PartyChatMsg Index, Buffer.ReadString, Pink
Set Buffer = Nothing
End Sub
No final de modServeTCP add:
- Código:
Public Sub PartyChatMsg(ByVal Index As Long, ByVal Msg As String, ByVal Color As Byte)
Dim i As Long
Dim Member As Integer
Dim partyNum As Long
partyNum = TempPlayer(Index).inParty
' Quando não estiver em party?
If TempPlayer(Index).inParty = 0 Then
Call PlayerMsg(Index, "Você não está em uma party.", BrightRed)
Exit Sub
End If
For i = 1 To MAX_PARTY_MEMBERS
Member = Party(partyNum).Member(i)
' não existe?
If IsConnected(Party(partyNum).Member(i)) And IsPlaying(Party(partyNum).Member(i)) Then
' sim, enviar a mensagem!
Call PlayerMsg(Member, "[Party] " & GetPlayerName(Index) & ": " & Msg, Color)
End If
Next
End Sub
OBS:Para manda a mensagem digite "/p"
Qualquer erro informe :3
Creditos:Newbie
AlexsandroUchiha- Membro Sênior
- Mensagens : 412
Re: Chat de party
vc feiz ?????????????
kkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
n boa pra q mentir ????
de os devidos creditos pro Newbie
pq foi ele quem fez, vc ñ teveh a capacidade nem de mudar alguma coisa só traduziu e postou aki..
link do topico oficial: Clique aqui
kkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
n boa pra q mentir ????
de os devidos creditos pro Newbie
pq foi ele quem fez, vc ñ teveh a capacidade nem de mudar alguma coisa só traduziu e postou aki..
link do topico oficial: Clique aqui
dazateam- Membro Vitalicio
- Mensagens : 690
Re: Chat de party
dazateam escreveu:vc feiz ?????????????
kkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
n boa pra q mentir ????
de os devidos creditos pro Newbie
pq foi ele quem fez, vc ñ teveh a capacidade nem de mudar alguma coisa só traduziu e postou aki..
link do topico oficial: Clique aqui
Mano eu avisei que eu n tinha visto em lugar algum.....Eu não menti -_-
AlexsandroUchiha- Membro Sênior
- Mensagens : 412
Re: Chat de party
o.O se foi vc quem fez então por que , créditos ao Newbie? , bom olhei os dois tópicos , e os códigos estão iguais, eu acho que se o Newbie quisesse o sistema postado aqui , ele mesmo teria postado , e outra peça autorização do criador ao postar algo de tal.
Eduardo- Membro Veterano
- Mensagens : 1178
Re: Chat de party
Corrigindo um erro
mude:
Para:
mude:
- Código:
' Party Msg
If Left$(ChatText, 3) = "/p " Then
ChatText = Mid$(ChatText, 4, Len(ChatText) - 3)
If Len(ChatText) > 0 Then
Call SendPartyChatMsg(ChatText)
End If
MyText = vbNullString
frmMain.txtMyChat.text = vbNullString
Exit Sub
End If
Para:
- Código:
' Party Msg
If Left$(ChatText, 1) = "+" Then
ChatText = Mid$(ChatText, 2, Len(ChatText) - 1)
If Len(ChatText) > 0 Then
Call SendPartyChatMsg(ChatText)
End If
MyText = vbNullString
frmMain.txtMyChat.text = vbNullString
Exit Sub
End If
- Código:
para falar por chat so digitar no text de digitação: + Oie povo
Re: Chat de party
Thales12 escreveu:Corrigindo um erro
mude:
- Código:
' Party Msg
If Left$(ChatText, 3) = "/p " Then
ChatText = Mid$(ChatText, 4, Len(ChatText) - 3)
If Len(ChatText) > 0 Then
Call SendPartyChatMsg(ChatText)
End If
MyText = vbNullString
frmMain.txtMyChat.text = vbNullString
Exit Sub
End If
Para:
- Código:
' Party Msg
If Left$(ChatText, 1) = "+" Then
ChatText = Mid$(ChatText, 2, Len(ChatText) - 1)
If Len(ChatText) > 0 Then
Call SendPartyChatMsg(ChatText)
End If
MyText = vbNullString
frmMain.txtMyChat.text = vbNullString
Exit Sub
End If
- Código:
para falar por chat so digitar no text de digitação: + Oie povo
Bom meu amigo thales teve um pequeno erro na sua correção pois se é + Oie povo deveria ser :
- Código:
' Party Msg
If Left$(ChatText, 1) = "+" Then
ChatText = Mid$(ChatText, 2, Len(ChatText) - 1)
If Len(ChatText) > 0 Then
Call SendPartyChatMsg(ChatText)
End If
MyText = vbNullString
frmMain.txtMyChat.text = vbNullString
Exit Sub
End If
- Código:
' Party Msg
If Left$(ChatText, 1) = "+ " Then
ChatText = Mid$(ChatText, 2, Len(ChatText) - 1)
If Len(ChatText) > 0 Then
Call SendPartyChatMsg(ChatText)
End If
MyText = vbNullString
frmMain.txtMyChat.text = vbNullString
Exit Sub
End If
s2
guifs- Membro Vitalicio
- Mensagens : 561
Re: Chat de party
guifs, vc corrigiu ele, mais porque o espaço no "+ " ????
Sogimar Junior- Membro
- Mensagens : 218
Re: Chat de party
Sogimar Junior escreveu:guifs, vc corrigiu ele, mais porque o espaço no "+ " ????
deve ser pra botar a mensagem depois do +
KooringaBanido- Mensagens : 1361
Re: Chat de party
Ai ficaria estranho ter que escrever assim:
+ oi
o certo seria:
+oi
Pelo que acho ficaria mais facil, só isso.
....
Falando em outra coisinha ter q por ese négocio ai embaixo sempre é fod...
Faço Parte Da:
+ oi
o certo seria:
+oi
Pelo que acho ficaria mais facil, só isso.
....
Falando em outra coisinha ter q por ese négocio ai embaixo sempre é fod...
Faço Parte Da:
Sogimar Junior- Membro
- Mensagens : 218
Re: Chat de party
guifs tu fuma merda de vaca ? '-'
o codigo q eu postei ta certo e.e
nao precisava de mais nada, mais ok, obrigado por ajudar
o codigo q eu postei ta certo e.e
nao precisava de mais nada, mais ok, obrigado por ajudar
Re: Chat de party
o do alexandre tem um "espaço no /p " ficando: "/p "
O Thales só não colocou um espaço no "+" e o guifs o corrigiu.
Faço Parte Da:
O Thales só não colocou um espaço no "+" e o guifs o corrigiu.
Faço Parte Da:
Sogimar Junior- Membro
- Mensagens : 218
Re: Chat de party
Corrigindo: Alexsandro.Sogimar Junior escreveu:o do alexandre tem um "espaço no /p " ficando: "/p "
O Thales só não colocou um espaço no "+" e o guifs o corrigiu.
Faço Parte Da:
é eu só naum entendi pra que essas correções todas...
AlexsandroUchiha- Membro Sênior
- Mensagens : 412
Re: Chat de party
Bom pessoal eu so fiz akilo,pq achei que o thales queria deixa como o sistema de chat de party do eeb que +"espaço" e a mensagem,por isso akilo,mais é opcional tanto faz "+" ou "+ ",usa quem quer,eu so acho mais bem colocado e mais estruturado com o "+ "
guifs- Membro Vitalicio
- Mensagens : 561
Re: Chat de party
aki o HandleDataSub(CPartyChatMsg) = GetAddress(AddressOf HandlePartyChatMsg)
deu complier error variable not define
deu complier error variable not define
kiritor- Novato
- Mensagens : 25
Re: Chat de party
aki o HandleDataSub(CPartyChatMsg) = GetAddress(AddressOf HandlePartyChatMsg)
deu complier error variable not define
deu complier error variable not define
kiritor- Novato
- Mensagens : 25
Tópicos semelhantes
» A party nao da exp Eclipse 4.5
» [TE][EE]Party por CommandButton
» Party Origins 1.5.0
» Party Exp Ajuda
» Ajuda Party
» [TE][EE]Party por CommandButton
» Party Origins 1.5.0
» Party Exp Ajuda
» Ajuda Party
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos
|
|
Dom 08 Abr 2018, 18:40 por JorgeZinhoo002
» Ojkjeeeee
Seg 10 Out 2016, 23:19 por Frozen
» Naruto Great Ninja Batle
Dom 09 Out 2016, 14:29 por GuiinhoLP
» Recrutamento de um Designer para jogo de CDZ.
Sex 23 Set 2016, 18:37 por newbie123
» Serviços de suporte maker( Programação , Design , PixelArt ) E Vendas de Jogos
Qui 22 Set 2016, 20:11 por Eduardo
» Serviços de suporte maker( Programação , Design , PixelArt ) E Vendas de Jogos
Qui 22 Set 2016, 20:11 por Eduardo
» Serviços de suporte maker( Programação , Design , PixelArt ) E Vendas de Jogos
Qui 22 Set 2016, 20:09 por Eduardo
» Projeto Dbz
Qua 31 Ago 2016, 23:46 por 157
» Avaliação - Sprites Naruto
Qua 31 Ago 2016, 17:09 por 157
» [Sprites] DBZ (Plix)
Qua 31 Ago 2016, 14:13 por 157
» Super Pack - Bleach V.2
Qua 31 Ago 2016, 13:02 por 157
» [PEDIDO][PROJETO][RECRUTAMENTO] DYNISTYGAMES
Ter 30 Ago 2016, 10:04 por 157
» [PEDIDO][PROJETO][RECRUTAMENTO] DYNISTYGAMES
Ter 30 Ago 2016, 10:03 por 157
» [PEDIDO][PROJETO][RECRUTAMENTO] DYNISTYGAMES
Ter 30 Ago 2016, 10:02 por 157
» [Pedido] Contador de resets na FrmMain
Sáb 13 Ago 2016, 17:45 por killers97
» [Recrutamento]
Qua 10 Ago 2016, 23:09 por Monsters
» Ajuda erro no Cliente e Servidor do EEB 2.6!
Qua 20 Jul 2016, 19:53 por Binholx
» Como criar tilesets para Eclipse Origins 3.0 (POKÉMON)
Qua 29 Jun 2016, 19:46 por Sir Aaron
» Recursos Pokemons
Qua 29 Jun 2016, 19:34 por Sir Aaron
» erro frm flash
Qua 25 maio 2016, 13:51 por vava123
» Pedido - Pack de star wars
Qui 19 maio 2016, 05:06 por edsonpet
» [Ajuda] Sobre como por o servidor on por ip fixo
Ter 17 maio 2016, 16:14 por vava123
» Illusion Dimension - O Misterio do ID: BETA TESTE ONLINE
Sex 06 maio 2016, 20:02 por LksFlorencio
» [NSME] Naruto Shinobi Maker Engine
Qua 23 Mar 2016, 15:11 por luana1457
» Script /base,/casa Igual DBZ Forces
Dom 21 Fev 2016, 07:34 por JorgeZinhoo002
» [Pedido]Colar Tsunade item sprite eclipse origin
Qui 21 Jan 2016, 07:38 por lawllietbr
» [Pedido] Elysium
Sáb 19 Dez 2015, 11:31 por luana1457
» Naruto - Recruta
Ter 15 Dez 2015, 18:40 por Uchiha ~
» [Avaliação] - Kirito from Sword Art Online; Red and Pikachu from Pokemon.
Qua 25 Nov 2015, 13:43 por Thanakii
» [Avaliação] - Kenpachi Zaraki from Bleach; Libra Shiryu From Saint Seiya.
Qua 25 Nov 2015, 12:55 por Thanakii
» Demonstração de Sprites (Á VENDA!)
Qua 25 Nov 2015, 12:40 por Thanakii
» [Sistema de Reset]Para Eclipse .
Ter 24 Nov 2015, 16:51 por VithorUchi
» Cada Guild Nascer em Certo Mapa
Qui 12 Nov 2015, 06:13 por fabiofeijó_HIT
» Dragon Ball z Fusion A Grande Volta
Qui 29 Out 2015, 15:17 por fabiofeijó_HIT
» Ajuda com Ip fixo
Seg 26 Out 2015, 16:07 por GalaxyHells15
» Como Fazer um GUI no Eclipse Origins
Dom 18 Out 2015, 22:10 por Jeanleee
» Shisui Susanoo
Dom 18 Out 2015, 20:23 por Jeanleee
» Fantasy Art Online
Dom 18 Out 2015, 16:41 por daviih123
» Ajuda !!
Seg 05 Out 2015, 12:13 por andersonzika
» como passar o usuário e senha para o MainMenu?
Seg 28 Set 2015, 22:03 por Bëzerk
» Ru time ero 13 Type mismatch
Seg 28 Set 2015, 09:08 por andredarle
» Jarvis 1.3 Download
Qua 23 Set 2015, 18:42 por soares125
» [Avaliação/Disponibilização]Árvore 64x64
Qua 23 Set 2015, 15:15 por Over~
» Mlk's Zikas Signatures
Ter 22 Set 2015, 21:15 por Aikawa Reborn'
» Pedido de Sistemas
Dom 20 Set 2015, 18:05 por cleyton_05
» [AjudaEEB]Gerador de EXP
Qua 16 Set 2015, 14:04 por Over~
» [Avaliar] Base, Humano e Goblin.
Seg 14 Set 2015, 22:51 por .iBlaz3.
» Fabrica do Tio Cronos!
Dom 13 Set 2015, 21:31 por [ADM]Cronos
» [PixelArt] Minion - Meu malvado favorito
Dom 13 Set 2015, 12:51 por [ADM]Cronos
» [Avaliar] Goku Dragon Ball Z
Qua 05 Ago 2015, 21:36 por Setrux