Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: Source PartySearch+Password MUEMU  (Visto 9748 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline TzCr4ck #20 Posteado: May 17, 2021, 05:10:08 PM

  • 0 puntos por ventas
  • *
  • Rank: Liga mayor
  • Posts: 185
  • Gracias recibida: 71
  • ve
Hola, buenas tardes, me funciona la source perfectamente, pero tengo una duda, como haría para que al abrir el menú de PartySearch (F8), tengo una especie de "Delay"? Porque al presionar F8 se abre y se cierra en repetidas oportunidades ya que no tiene esa condición. Gracias!


Offline louis #21 Posteado: May 18, 2021, 10:17:04 AM

  • MAESTRO

  • US. DE HONOR

  • LEYENDA

  • C++ Coder
  • +11 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 844
  • Gracias recibida: 36768
  • br
Hola, buenas tardes, me funciona la source perfectamente, pero tengo una duda, como haría para que al abrir el menú de PartySearch (F8), tengo una especie de "Delay"? Porque al presionar F8 se abre y se cierra en repetidas oportunidades ya que no tiene esa condición. Gracias!

el delay se debe a que la ventana solo se abre después de recibir la respuesta del GS, por lo que como su vps tiene un cierto tiempo para responder, esto toma un tiempo

Update 36 is ready!!!

Offline TzCr4ck #22 Posteado: May 18, 2021, 05:06:54 PM

  • 0 puntos por ventas
  • *
  • Rank: Liga mayor
  • Posts: 185
  • Gracias recibida: 71
  • ve
@louis me refiero a esto:



Crear un "Delay" Para que la ventana no se ejecute tan seguido! Cada 1 seg. por ejemplo.


Offline lstuan #23 Posteado: May 18, 2021, 07:24:04 PM

  • 0 puntos por ventas
  • *
  • Rank: Dedicado
  • Posts: 35
  • Gracias recibida: 15
  • ao
@louis me refiero a esto:



Crear un "Delay" Para que la ventana no se ejecute tan seguido! Cada 1 seg. por ejemplo.
If you set case VK_F8 in Controller.cpp then dont set case VK_F8 in inteface.cpp
In interface.cpp only set Work();
gPartySearchSettings.draw_party_settings_window();

gPartySearch.draw_party_search();

gPartySearch.draw_party_password();

Gracias:


Offline TzCr4ck #24 Posteado: May 18, 2021, 11:40:53 PM

  • 0 puntos por ventas
  • *
  • Rank: Liga mayor
  • Posts: 185
  • Gracias recibida: 71
  • ve
@louis me refiero a esto:



Crear un "Delay" Para que la ventana no se ejecute tan seguido! Cada 1 seg. por ejemplo.
If you set case VK_F8 in Controller.cpp then dont set case VK_F8 in inteface.cpp
In interface.cpp only set Work();
gPartySearchSettings.draw_party_settings_window();

gPartySearch.draw_party_search();

gPartySearch.draw_party_password();

Spanish:
No me ayudaste mucho :/
Tengo todo exactamente como en la source, incluso me funciona perfectamente.
Solo quiero solucionar lo que muestro en el video, la ventana para configurar el PartySearch se abre muchas veces al presionar F8, quiero colocar una especie de condición para que la ventana se ejecute cada 1 o 2 segundos.

English
You didn't help me much :/
I have everything as is the source.
It works perfectly for me!
I just want to fix what the video shows.
Configure party search window is displayed many times when pressing F8 key :(
I want to put a kind of condition so that the window runs every 1-2 seconds.



Offline Lude #25 Posteado: May 18, 2021, 11:59:04 PM | Modificado: May 19, 2021, 02:17:04 AM by Lude

  • MAESTRO

  • C++ Coder
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 390
  • Gracias recibida: 19334
  • us
@louis me refiero a esto:



Crear un "Delay" Para que la ventana no se ejecute tan seguido! Cada 1 seg. por ejemplo.
If you set case VK_F8 in Controller.cpp then dont set case VK_F8 in inteface.cpp
In interface.cpp only set Work();
gPartySearchSettings.draw_party_settings_window();

gPartySearch.draw_party_search();

gPartySearch.draw_party_password();

Spanish:
No me ayudaste mucho :/
Tengo todo exactamente como en la source, incluso me funciona perfectamente.
Solo quiero solucionar lo que muestro en el video, la ventana para configurar el PartySearch se abre muchas veces al presionar F8, quiero colocar una especie de condición para que la ventana se ejecute cada 1 o 2 segundos.

English
You didn't help me much :/
I have everything as is the source.
It works perfectly for me!
I just want to fix what the video shows.
Configure party search window is displayed many times when pressing F8 key :(
I want to put a kind of condition so that the window runs every 1-2 seconds.

Ese dolor de cabeza te lo quitas facil metiendo el partysearch dentro del Custom Menu y eliminando la condicion de abrirlo mediante F8

No soy fan de tener tantas funciones en diferente botones xd

Gracias:


Offline louis #26 Posteado: May 19, 2021, 12:03:12 AM

  • MAESTRO

  • US. DE HONOR

  • LEYENDA

  • C++ Coder
  • +11 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 844
  • Gracias recibida: 36768
  • br
@louis me refiero a esto:



Crear un "Delay" Para que la ventana no se ejecute tan seguido! Cada 1 seg. por ejemplo.

es muy simples crear un delay en la apertura de las ventanas, solo buscar ejemplos en otros sistemas, Custom ranking, Custom event time etc

Update 36 is ready!!!

Gracias:


Offline TzCr4ck #27 Posteado: May 19, 2021, 01:24:19 AM

  • 0 puntos por ventas
  • *
  • Rank: Liga mayor
  • Posts: 185
  • Gracias recibida: 71
  • ve
Bueno ya pude solucionar, gracias @louis por la iniciativa de mandarme a investigar xD

Lo deje de la siguiente manera:

Code: [Select]
if (GetKeyState(VK_F8) & 0x4000)
{
if((GetTickCount() - gInterface.Data[OBJECT_PARTYSETTINGS_MAIN].EventTick) < 1000 ){
return;
}
gInterface.Data[OBJECT_PARTYSETTINGS_MAIN].EventTick = GetTickCount();
gPartySearchSettings.party_search_settings_switch_state();
}

Ahora la ventana se me ejecuta cada 1 segundo (1000 ms), tal cual quería :D

La verdad no se si esta sea la mejor forma de hacer esto o la más optima, pero por lo menos me funcionó sin usar tanto código.


Offline zhangjianle865 #28 Posteado: May 19, 2021, 03:43:57 AM

  • 0 puntos por ventas
  • *
  • Rank: Avanzado
  • Posts: 126
  • Gracias recibida: 86
  • cn
https://imgur.com/gallery/z7RMup8


I have added the source correctly
But I can't join PartySearch please please please please please please


Offline Lude #29 Posteado: May 19, 2021, 05:22:19 AM

  • MAESTRO

  • C++ Coder
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 390
  • Gracias recibida: 19334
  • us
https://imgur.com/gallery/z7RMup8


I have added the source correctly
But I can't join PartySearch please please please please please please

Check Protocol.cpp in GS & Main

and check if u add the function in Controller,cpp


Offline tuyendam #30 Posteado: May 26, 2021, 01:50:12 PM | Modificado: May 26, 2021, 01:51:44 PM by tuyendam

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 20
  • Gracias recibida: 11
  • vn
I don't see the party NPC. Can you help me ?  please



Offline Pyke #31 Posteado: May 26, 2021, 04:14:20 PM

  • Colaborador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 211
  • Gracias recibida: 14093
  • pl
I don't see the party NPC. Can you help me ?  please



U added the NPC too in MonsterSetBase.txt same cords?

Gracias:


Offline zhangjianle865 #32 Posteado: May 26, 2021, 04:49:57 PM

  • 0 puntos por ventas
  • *
  • Rank: Avanzado
  • Posts: 126
  • Gracias recibida: 86
  • cn
I have added the source correctly
But I can't join PartySearch

@Pyke


Offline Pyke #33 Posteado: May 26, 2021, 05:09:10 PM

  • Colaborador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 211
  • Gracias recibida: 14093
  • pl
I have added the source correctly
But I can't join PartySearch

@Pyke

Im 99% sure, u missed in GS side Protocol.cpp case 0x13

Code: [Select]
case 0x13:
gPartySearch.RequestParty((PMSG_PARTY_REQ_REQ*)lpMsg, aIndex);
break;


Offline tuyendam #34 Posteado: May 26, 2021, 10:23:01 PM

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 20
  • Gracias recibida: 11
  • vn
I don't see the party NPC. Can you help me ?  please



U added the NPC too in MonsterSetBase.txt same cords?


I've added NPC, but I can't open the party list from NPC. Why is that?


Offline anh1pk #35 Posteado: May 26, 2021, 11:38:35 PM

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 17
  • Gracias recibida: 2
  • vn
please give me the code to call the key to display the list?
it doesn't show the group name and the list click button

https://postimg.cc/XZ6YhLPS


Offline Pyke #36 Posteado: May 26, 2021, 11:42:02 PM

  • Colaborador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 211
  • Gracias recibida: 14093
  • pl
please give me the code to call the key to display the list?
it doesn't show the group name and the list click button

https://postimg.cc/XZ6YhLPS

U missed something in Protocol.cpp, didnt? Please check again your copy paste, because this code is full and working perfect.


Offline tuyendam #37 Posteado: May 26, 2021, 11:47:39 PM

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 20
  • Gracias recibida: 11
  • vn
please give me the code to call the key to display the list?
it doesn't show the group name and the list click button

https://postimg.cc/XZ6YhLPS

U missed something in Protocol.cpp, didnt? Please check again your copy paste, because this code is full and working perfect.

me too


Offline anh1pk #38 Posteado: May 27, 2021, 12:05:34 AM

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 17
  • Gracias recibida: 2
  • vn
I have taken all of your protocol but the button to create group is not showing
https://postimg.cc/QFfrgbrJ


Offline tuyendam #39 Posteado: May 27, 2021, 12:11:03 AM

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 20
  • Gracias recibida: 11
  • vn
I have taken all of your protocol but the button to create group is not showing
https://postimg.cc/QFfrgbrJ
bác sửa chỗ nào mà lên được danh sách party thế ?


Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
14 Replies
4846 Views
Last post January 08, 2024, 10:52:13 AM
by wellwisher22
4 Replies
1099 Views
Last post April 25, 2020, 01:07:10 PM
by TMucore
2 Replies
672 Views
Last post December 27, 2020, 02:51:11 PM
by lunaticodeveloper
2 Replies
717 Views
Last post March 21, 2021, 11:38:25 PM
by Darkco
4 Replies
1298 Views
Last post October 21, 2023, 10:42:06 PM
by jamuceiba