GS-Zone

Viajar Castillo Ir al Indice

Moderadores: Moderadores de Argentum, Especialistas de Argentum, Especialistas de Programación

5

Nota » 20 Ene 2012 10:55

Hola yo quiero que cuando los castillos los tengas conquistados se pueda viajar Style Tpao.
Asi me parece que seria:

  1. If UCase$(Left$(rData, 10)) = "/CASTILLO " Then
  2.         rData = Right$(rData, Len(rData) - 10)
  3.      
  4.       If UserList(UserIndex).GuildIndex > 0 Then
  5.        
  6.        Select Case UCase(rData)
  7.        
  8.        Case "SUR"
  9.         If UserList(UserIndex).GuildIndex = GetVar(CastPath, "CASTILLOS", "IndexClanSur") Then
  10.          WarpUserChar UserIndex, 10, 50, 58, True
  11.          SendData SendTarget.ToIndex, UserIndex, 0, "||Has viajado al castillo sur!" & FONTTYPE_INFO
  12.         Else
  13.          SendData SendTarget.ToIndex, UserIndex, 0, "||Tu clan no tiene conquistado el castillo sur, por ende no puedes viajar a este." & FONTTYPE_INFO
  14.         End If
  15.        Case "NORTE"
  16.         If UserList(UserIndex).GuildIndex = GetVar(CastPath, "CASTILLOS", "IndexClanNorte") Then
  17.          WarpUserChar UserIndex, 12, 50, 58, True
  18.          SendData SendTarget.ToIndex, UserIndex, 0, "||Has viajado al castillo norte!" & FONTTYPE_INFO
  19.         Else
  20.          SendData SendTarget.ToIndex, UserIndex, 0, "||Tu clan no tiene conquistado el castillo norte, por ende no puedes viajar a este." & FONTTYPE_INFO
  21.         End If
  22.        Case "ESTE"
  23.         If UserList(UserIndex).GuildIndex = GetVar(CastPath, "CASTILLOS", "IndexClanEste") Then
  24.          WarpUserChar UserIndex, 9, 50, 58, True
  25.          SendData SendTarget.ToIndex, UserIndex, 0, "||Has viajado al castillo este!" & FONTTYPE_INFO
  26.         Else
  27.          SendData SendTarget.ToIndex, UserIndex, 0, "||Tu clan no tiene conquistado el castillo este, por ende no puedes viajar a este." & FONTTYPE_INFO
  28.         End If
  29.        Case "OESTE"
  30.                 If UserList(UserIndex).GuildIndex = GetVar(CastPath, "CASTILLOS", "IndexClanOeste") Then
  31.          WarpUserChar UserIndex, 11, 50, 58, True
  32.          SendData SendTarget.ToIndex, UserIndex, 0, "||Has viajado al castillo oeste!" & FONTTYPE_INFO
  33.         Else
  34.          SendData SendTarget.ToIndex, UserIndex, 0, "||Tu clan no tiene conquistado el castillo oeste, por ende no puedes viajar a este." & FONTTYPE_INFO
  35.         End If
  36.       End Select
  37.       Else
  38.       SendData SendTarget.ToIndex, UserIndex, 0, "||No perteneces a ningún clan." & FONTTYPE_INFO
  39.     End If
  40.     End If


Pero mi problema es COMO HAGO PARA QUE EN CLIENTE AL PONER /CASTILLO TE SALTE EL FORMULARIO,YO YA LO TENGO EL FORMULARIO ECHO.
Zhepelin Ao
135
Aprendiz [4]
Registrado: Años de membresía
Ubicación: San Martin
Mensajes: 339

Nota » 20 Ene 2012 11:05

ELNOMBREDELFORM.SHOW

creo
no se si era para cerrarlo o abrirlo el show
creo que para abrir porque show es mostrar xD

Osea vos pones el comando y despues de eso pones ELNOMBREDELFORM.SHOW

Yo solo te dije como se abre el form :P, xq lo del coamdno ni idea
Seguramente vas al CASE y abajo le pones ELNOMBREDELFORM.SHOW
Última edición por # gREEN CasTle el 20 Ene 2012 11:08, editado 2 veces en total

201.212.4.181:27015


Imagen
dame un kiz ♪♫
684
Oraculo [5]
Registrado: Años de membresía
Ubicación: Rearmando Seventh AO ~
Mensajes: 2291
Aportes: 26
Premios: 2
El más divertido (1) Embajador (1)

Nota » 20 Ene 2012 13:24

FrmCastillos.show , Frmmain (el FRRMAIN es para qeu no se cierre cada ves que clickias en otro lugar).

Imagen

Ilaisa
<Aprendiendo a Programar>
227
Newbie [4]
Registrado: Diciembre 2011
Mensajes: 128

Nota » 20 Ene 2012 13:34

Ilaisa escribió:FrmCastillos.show , Frmmain (el FRRMAIN es para qeu no se cierre cada ves que clickias en otro lugar).



Si esta bien pero ponele,QUE EN LA IMAGEN DIGA VIAJAR CASTILLO SUR VIAJAR CASTILLO NORTE ETC.
Que hago un Command Boton ? y que le pongo adentro para que abra lo que tiene que abrir.
Zhepelin Ao
135
Aprendiz [4]
Registrado: Años de membresía
Ubicación: San Martin
Mensajes: 339

Nota » 20 Ene 2012 13:48

Mira facil , creas un frm en el cliente le pones 4 commands bottons o 4 labels cada uno que diga Viajar a x Casti.

Desp dentro del que dice castillo sur le pones dentro del code en esa parte.

call senddata("/CASTILLO SUR").

y asi con los demas entendes?.

Imagen
Intento de Programer
306
Oraculo [1]
Registrado: Años de membresía
Mensajes: 1127
Aportes: 10


Volver a AO 0.11.5

¿Quién está conectado?

Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 0 invitados