[Problema] al aceptar a alguen en el clan
2 participantes
Página 1 de 1.
[Problema] al aceptar a alguen en el clan
bueno yo estaba arreglando el bug de clanes y hise todo esto
primero fui al boton detalles del frmguilslader
le agregue esto FrmCharinfo.Show
y quedo maso menos asi
despues en el sv busque
toma sderty esto queres
primero fui al boton detalles del frmguilslader
le agregue esto FrmCharinfo.Show
y quedo maso menos asi
- Código:
Private Sub Command1_Click()
If solicitudes.ListIndex = -1 Then Exit Sub
frmCharInfo.Show
'frmCharInfo.frmType = CharInfoFrmType.frmMembershipRequests
'Call WriteGuildMemberInfo(solicitudes.List(solicitudes.ListIndex))
'Unload Me
End Sub
- Código:
Call WriteGuildAcceptNewMember(Guild_Accept_Member, Right$(Nombre.Caption, Len(Nombre.Caption) - 8))
- Código:
Private Sub Aceptar_Click()
Call WriteGuildAcceptNewMember(Nombre)
Unload frmGuildLeader
Call WriteRequestGuildLeaderInfo
Unload Me
End Sub
- Código:
GuildAcceptNewMember
- Código:
Public Sub WriteGuildAcceptNewMember(ByVal UserName As String)
- Código:
''
' Writes the "GuildAcceptNewMember" message to the outgoing data buffer.
'
' @param username The name of the accepted player.
' @remarks The data is not actually sent until the buffer is properly flushed.
Public Sub WriteGuildAcceptNewMember(ByVal UserName As String)
'***************************************************
'Author: Juan Martín Sotuyo Dodero (Maraxus)
'Last Modification: 05/17/06
'Writes the "GuildAcceptNewMember" message to the outgoing data buffer
'***************************************************
With outgoingData
Call .WriteByte(ClientPacketID.GuildAcceptNewMember)
Call .WriteASCIIString(UserName)
End With
End Sub
despues en el sv busque
- Código:
GuildAcceptNewMember
- Código:
Private Sub HandleGuildAcceptNewMember(ByVal UserIndex As Integer)
- Código:
''
' Handles the "GuildAcceptNewMember" message.
'
' @param userIndex The index of the user sending the message.
Private Sub HandleGuildAcceptNewMember(ByVal UserIndex As Integer)
'***************************************************
'Author: Juan Martín Sotuyo Dodero (Maraxus)
'Last Modification: 05/17/06
'
'***************************************************
If UserList(UserIndex).incomingData.length < 3 Then
Err.Raise UserList(UserIndex).incomingData.NotEnoughDataErrCode
Exit Sub
End If
On Error GoTo Errhandler
With UserList(UserIndex)
'This packet contains strings, make a copy of the data to prevent losses if it's not complete yet...
Dim buffer As New clsByteQueue
Call buffer.CopyBuffer(.incomingData)
'Remove packet ID
Call buffer.ReadByte
Dim errorStr As String
Dim UserName As String
Dim tUser As Integer
UserName = buffer.ReadASCIIString()
If Not modGuilds.a_AceptarAspirante(UserIndex, UserName, errorStr) Then
Call WriteConsoleMsg(1, UserIndex, errorStr, FontTypeNames.FONTTYPE_GUILD)
Else
tUser = NameIndex(UserName)
If tUser > 0 Then
Call modGuilds.m_ConectarMiembroAClan(tUser, .GuildIndex)
Call RefreshCharStatus(tUser)
End If
Call SendData(SendTarget.ToGuildMembers, .GuildIndex, PrepareMessageConsoleMsg(1, UserName & " ha sido aceptado como miembro del clan.", FontTypeNames.FONTTYPE_GUILD))
Call SendData(SendTarget.ToGuildMembers, .GuildIndex, PrepareMessagePlayWave(43, NO_3D_SOUND, NO_3D_SOUND))
End If
'If we got here then packet is complete, copy data back to original queue
Call .incomingData.CopyBuffer(buffer)
End With
Errhandler:
Dim error As Long
error = Err.Number
On Error GoTo 0
'Destroy auxiliar buffer
Set buffer = Nothing
If error <> 0 Then _
Err.Raise error
End Sub
toma sderty esto queres
- Código:
''
' Handles the "RequestCharInfo" message.
'
' @param userIndex The index of the user sending the message.
Private Sub HandleRequestCharInfo(ByVal UserIndex As Integer)
'***************************************************
'Author: Fredy Horacio Treboux (liquid)
'Last Modification: 01/08/07
'Last Modification by: (liquid).. alto bug zapallo..
'***************************************************
If UserList(UserIndex).incomingData.length < 3 Then
Err.Raise UserList(UserIndex).incomingData.NotEnoughDataErrCode
Exit Sub
End If
On Error GoTo Errhandler
With UserList(UserIndex)
'This packet contains strings, make a copy of the data to prevent losses if it's not complete yet...
Dim buffer As New clsByteQueue
Call buffer.CopyBuffer(.incomingData)
'Remove packet ID
Call buffer.ReadByte
Dim targetName As String
Dim targetIndex As Integer
targetName = Replace$(buffer.ReadASCIIString(), "+", " ")
targetIndex = NameIndex(targetName)
If .flags.Privilegios And (PlayerType.Admin Or PlayerType.Dios Or PlayerType.SemiDios) Then
'is the player offline?
If targetIndex <= 0 Then
'don't allow to retrieve administrator's info
If Not (EsDios(targetName) Or EsAdmin(targetName)) Then
Call WriteConsoleMsg(UserIndex, "Usuario offline, Buscando en Charfile.", FontTypeNames.FONTTYPE_INFO)
Call SendUserStatsTxtOFF(UserIndex, targetName)
End If
Else
'don't allow to retrieve administrator's info
If UserList(targetIndex).flags.Privilegios And (PlayerType.User Or PlayerType.Consejero Or PlayerType.SemiDios) Then
Call SendUserStatsTxt(UserIndex, targetIndex)
End If
End If
End If
'If we got here then packet is complete, copy data back to original queue
Call .incomingData.CopyBuffer(buffer)
End With
Errhandler:
Dim error As Long
error = Err.Number
On Error GoTo 0
'Destroy auxiliar buffer
Set buffer = Nothing
If error <> 0 Then _
Err.Raise error
End Sub
Zenitram- Aportes : 10
Mensajes : 65
Puntos : 130
Edad : 23
Re: [Problema] al aceptar a alguen en el clan
El problema no esta en ningunos de los Frm´s , Es porque esta codeado con el antiguo sistema de clanes.
Re: [Problema] al aceptar a alguen en el clan
toma sdety
- Código:
''
' Handles the "GuildAcceptNewMember" message.
'
' @param userIndex The index of the user sending the message.
Private Sub HandleGuildAcceptNewMember(ByVal UserIndex As Integer)
'***************************************************
'Author: Juan Martín Sotuyo Dodero (Maraxus)
'Last Modification: 05/17/06
'
'***************************************************
If UserList(UserIndex).incomingData.length < 3 Then
Err.Raise UserList(UserIndex).incomingData.NotEnoughDataErrCode
Exit Sub
End If
On Error GoTo Errhandler
With UserList(UserIndex)
'This packet contains strings, make a copy of the data to prevent losses if it's not complete yet...
Dim buffer As New clsByteQueue
Call buffer.CopyBuffer(.incomingData)
'Remove packet ID
Call buffer.ReadByte
Dim UserName As String
Dim tUser As Integer
UserName = buffer.ReadASCIIString()
Call SendData(SendTarget.ToGuildMembers, .GuildIndex, PrepareMessageConsoleMsg(1, UserName & " ha sido aceptado como miembro del clan.", FontTypeNames.FONTTYPE_GUILD))
Call SendData(SendTarget.ToGuildMembers, .GuildIndex, PrepareMessagePlayWave(43, NO_3D_SOUND, NO_3D_SOUND))
'If we got here then packet is complete, copy data back to original queue
Call .incomingData.CopyBuffer(buffer)
End With
Errhandler:
Dim error As Long
error = Err.Number
On Error GoTo 0
'Destroy auxiliar buffer
Set buffer = Nothing
If error <> 0 Then _
Err.Raise error
End Sub
Zenitram- Aportes : 10
Mensajes : 65
Puntos : 130
Edad : 23
Temas similares
» [Problema] Como ponerle el clan a los gms sin la estrella de donador
» [Problema] Carga de recursos comprimidos IAO Clon
» Problema con coverao
» [Problema] Al Ser 15 te saca de Dungeon Nw
» [ PROBLEMA ] Algun AO online :P ?
» [Problema] Carga de recursos comprimidos IAO Clon
» Problema con coverao
» [Problema] Al Ser 15 te saca de Dungeon Nw
» [ PROBLEMA ] Algun AO online :P ?
Página 1 de 1.
Permisos de este foro:
No puedes responder a temas en este foro.