Busca
- ElseIf EsDios(name) Then
- UserDarPrivilegioLevel = PlayerType.Dios
abajo pone
- ElseIf noble(name) Then
- UserDarPrivilegioLevel = PlayerType.noble
Busca
- Public Type UserFlags
abajo pone
- noble As Byte
busca
- Function EsDios(ByVal name As String) As Boolean
arriba pone
- Public Function noble(ByVal UserIndex As Integer) As Boolean
- noble = UserList(UserIndex).flags.noble = 1
- End Function
busca
- UserList(UserIndex).flags.Muerto = CByte(UserFile.GetValue("FLAGS", "Muerto"))
abajo pone
- UserList(UserIndex).flags.noble = CByte(UserFile.GetValue("FLAGS", "Noble"))
busca en el sub loaduserinit
- If UserList(UserIndex).flags.Muerto = 0 Then
- UserList(UserIndex).Char = UserList(UserIndex).OrigChar
- Else
- UserList(UserIndex).Char.body = iCuerpoMuerto
- UserList(UserIndex).Char.Head = iCabezaMuerto
- UserList(UserIndex).Char.WeaponAnim = NingunArma
- UserList(UserIndex).Char.ShieldAnim = NingunEscudo
- UserList(UserIndex).Char.CascoAnim = NingunCasco
- End If
abajo pone
- If UserList(UserIndex).flags.noble = 0 Or 1 Then
- UserList(UserIndex).flags.noble = UserFile.GetValue("FLAGS", "Noble")
- End If
busca en el Sub saveUser
- Call WriteVar(UserFile, "FLAGS", "Muerto", CStr(UserList(UserIndex).flags.Muerto))
abajo pone
- Call WriteVar(UserFile, "FLAGS", "Noble", CStr(UserList(UserIndex).flags.noble))
busca
- Else
- Stat = Stat & " <CIUDADANO>"
- ft = FontTypeNames.FONTTYPE_CITIZEN
- End If
- End If
abajo pone
- If UserList(UserIndex).flags.noble = 1 Then
- ft = FontTypeNames.FONTTYPE_GM
- Stat = Stat & " <Noble>"
- End If
busca en el Sub resetuserflags
- .Oculto = 0
abajo pone
- .noble = 0
busca
- Ping '/PING
abajo pone
- noble '/NOBLE
busca
- Case ClientPacketID.Ping '/PING
- Call HandlePing(UserIndex)
abajo pone
- Case ClientPacketID.noble
- Call HandleEsNoble(UserIndex)
busca
- ''
- ' Handle the "Ping" message
- '
- ' @param userIndex The index of the user sending the message
- Public Sub HandlePing(ByVal UserIndex As Integer)
- '***************************************************
- 'Author: Lucas Tavolaro Ortiz (Tavo)
- 'Last Modification: 12/24/06
- 'Show guilds messages
- '***************************************************
- With UserList(UserIndex)
- 'Remove Packet ID
- Call .incomingData.ReadByte
- Call WritePong(UserIndex)
- End With
- End Sub
abajo pone
- Public Sub HandleEsNoble(ByVal UserIndex As Integer)
- With UserList(UserIndex) 'By Frann
- 'Removemos PacketId asadsa
- Call .incomingData.ReadInteger
- If UserList(UserIndex).flags.Muerto = 1 Then
- Call WriteConsoleMsg(UserIndex, "Estás muerto", FontTypeNames.FONTTYPE_INFO)
- End If
- If UserList(UserIndex).flags.noble = 1 Then
- Call WriteConsoleMsg(UserIndex, "Ya eres un noble", FontTypeNames.FONTTYPE_INFO)
- End If
- If UserList(UserIndex).Stats.ELV > 50 Then
- Call WriteConsoleMsg(UserIndex, "Necesitas ser nivel 50 o superior", FontTypeNames.FONTTYPE_INFO)
- End If
- Dim Gemota As Obj
- Gemota.ObjIndex = 9
- Gemota.amount = 1
- If Not TieneObjetos(9, 1, UserIndex) Then
- Call WriteConsoleMsg(UserIndex, "Necesitas X para ser noble", FontTypeNames.FONTTYPE_INFO)
- End If
- Dim Gemi As Obj
- Gemi.ObjIndex = 10
- Gemi.amount = 1
- If Not TieneObjetos(10, 1, UserIndex) Then
- Call WriteConsoleMsg(UserIndex, "Necesitas X para ser noble", FontTypeNames.FONTTYPE_INFO)
- End If
- Dim gem As Obj
- gem.ObjIndex = 11
- gem.amount = 1
- If Not TieneObjetos(11, 1, UserIndex) Then
- Call WriteConsoleMsg(UserIndex, "Necesitas X para ser Noble", FontTypeNames.FONTTYPE_INFO)
- End If
- Dim geem As Obj
- geem.ObjIndex = 519
- geem.amount = 1
- If Not TieneObjetos(519, 1, UserIndex) Then
- Call WriteConsoleMsg(UserIndex, "Necesitas X para ser Noble", FontTypeNames.FONTTYPE_INFO)
- End If
- If TieneObjetos(9, 1, UserIndex) Then
- If TieneObjetos(10, 1, UserIndex) Then
- If TieneObjetos(11, 1, UserIndex) Then
- If TieneObjetos(519, 1, UserIndex) Then
- If UserList(UserIndex).flags.noble = 0 Then
- UserList(UserIndex).flags.noble = 1
- Call WriteVar(CharPath & UserList(UserIndex).name & ".chr", "FLAGS", "Noble", UserList(UserIndex).flags.noble)
- Call WriteConsoleMsg(UserIndex, "Ahora eres un noble, ¡Felicidades!", FontTypeNames.FONTTYPE_TALK)
- Call QuitarObjetos(9, 1, UserIndex)
- Call QuitarObjetos(10, 1, UserIndex)
- Call QuitarObjetos(11, 1, UserIndex)
- Call QuitarObjetos(519, 1, UserIndex)
- End If
- End If
- End If
- End If
- End If
- End With
- End Sub
CLIENTE:
Busca
- Ping '/PING
abajo pone
- noble '/NOBLE
busca
- ''
- ' Writes the "Ping" message to the outgoing data buffer.
- '
- ' @remarks The data is not actually sent until the buffer is properly flushed.
- Public Sub WritePing()
- '***************************************************
- 'Author: Juan Martín Sotuyo Dodero (Maraxus)
- 'Last Modification: 26/01/2007
- 'Writes the "Ping" message to the outgoing data buffer
- '***************************************************
- 'Prevent the timer from being cut
- If pingTime <> 0 Then Exit Sub
- Call outgoingData.WriteByte(ClientPacketID.Ping)
- ' Avoid computing errors due to frame rate
- Call FlushBuffer
- DoEvents
- pingTime = GetTickCount
- End Sub
abajo pone
- Public Sub WriteEsNoble()
- Call outgoingData.WriteInteger(ClientPacketID.noble)
- End Sub
busca
- Case "/PING"
- Call WritePing
abajo pone
- Case "/NOBLE"
- Call WriteEsNoble
Se tienen que crear un nuevo pj para loguear.
lo tenia echo para un user haci que lo libero
Faltaba 1 cosa pero no me acuerdo que, si lo implementan avisenme si surge algun error





50![Newbie [4] Newbie [4]](./images/ranks/Rango3.gif)



![Dragon Ancestral [2] Dragon Ancestral [2]](./images/ranks/Rango31.gif)

![Dragon Ancestral [1] Dragon Ancestral [1]](./images/ranks/Rango30.gif)
