su error era que el handle era un private, en realidad los handles siempre son public cuando son de este tipo de codigos.
Busquen:
- Private Sub HanDleHogar(ByVal UserIndex As Integer)
- With UserList(UserIndex)
- Call .incomingData.ReadByte
- If Not UserList(UserIndex).flags.Muerto = 1 Then
- Call WriteConsoleMsg(UserIndex, "¡Solo podes usar este comando estando muerto!", FontTypeNames.FONTTYPE_INFO)
- Exit Sub
- Else
- Call WarpUserChar(UserIndex, 1, 50, 50)
- Call WriteConsoleMsg(UserIndex, "Has sido transportado a la ciudad", FontTypeNames.FONTTYPE_INFO)
- Exit Sub
- End If
- End With
- End Sub
Y simplemente reemplazenlo por:
- Public Sub HanDleHogar(ByVal UserIndex As Integer)
- With UserList(UserIndex)
- Call .incomingData.ReadByte
- If Not UserList(UserIndex).flags.Muerto = 1 Then
- Call WriteConsoleMsg(UserIndex, "¡Solo podes usar este comando estando muerto!", FontTypeNames.FONTTYPE_INFO)
- Exit Sub
- Else
- Call WarpUserChar(UserIndex, 1, 50, 50)
- Call WriteConsoleMsg(UserIndex, "Has sido transportado a la ciudad", FontTypeNames.FONTTYPE_INFO)
- End If
- End With
- End Sub
edit: y de paso le saque un exit sub que tenia de mas, el handle original :p
Ahora el comando_regresar_primer_code_en_12_x_t8AK.html tenia el mismo error asi que esto:
- Private Sub HanDleRegresar(ByVal UserIndex As Integer)
- With UserList(UserIndex)
- Call .incomingData.ReadByte
- Call WarpUserChar(UserIndex, M, X, Y)
- Call WriteConsoleMsg(UserIndex, "Has regresado a la ciudad", FontTypeNames.FONTTYPE_INFO)
- Exit Sub
- End If
- End With
- End Sub
reemplazenlo por esto:
- Public Sub HanDleRegresar(ByVal UserIndex As Integer)
- With UserList(UserIndex)
- Call .incomingData.ReadByte
- Call WarpUserChar(UserIndex, M, X, Y)
- Call WriteConsoleMsg(UserIndex, "Has regresado a la ciudad", FontTypeNames.FONTTYPE_INFO)
- End With
- End Sub
cosas hechas: removi ese end if y el exit sub, ya que nunca habia usado un condicional y arregle lo del private x public.
Saludos; Luuq





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


![Oraculo [5] Oraculo [5]](./images/ranks/Rango29.gif)


![Oraculo [3] Oraculo [3]](./images/ranks/Rango27.gif)



![Dragon Ancestral [3] Dragon Ancestral [3]](./images/ranks/Rango32.gif)
![Newbie [5] Newbie [5]](./images/ranks/Rango4.gif)
