Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: takumi12 - Fix Message Globar Event Kanturu  (Visto 1826 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline takumi12 Posteado: February 17, 2021, 03:52:24 AM | Modificado: February 17, 2021, 07:59:47 AM by takumi12

  • MAESTRO

  • US. DE HONOR

  • LEYENDA

  • Php Coder
  • +11 puntos por ventas
  • *
  • *
  • Rank: Puto amo
  • Posts: 1.310
  • Gracias recibida: 40218
  • mx



como dice el titulo en la base mu emu viene este detalle que cuando abre la puerta de kanturu genera un aviso en general mientras que solo debería avisar a los que se encuentran dentro del mapa kanturu 1, 2, 3.

bueno en noticie.h
agregar esta funcion en la class


en noticie.cpp
crear la función


posteriormente en KanturuBattleStanby.cpp

en la función:



remplazar


por esto


y bueno listo


creditos: @takumi12


Las offset no se crea, ni se destruye, solo se transforma

Offline Peluuca #1 Posteado: February 17, 2021, 04:43:42 AM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 1.014
  • Gracias recibida: 1219
  • ar

Offline Denis Alves #2 Posteado: February 17, 2021, 08:59:09 AM | Modificado: February 17, 2021, 09:02:34 AM by Denis Alves

  • C++ Coder
  • +2 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 270
  • Gracias recibida: 6609
  • br
Só uma observação importante:

No próprio KanturuUtil.cpp/.h já tem uma função apropriada pra isso. Segue como fixei:

Em KanturuBattleStanby.cpp procure por "void CKanturuBattleStanby::SetState_NOTIFY()" e troque isso

Code: [Select]
gNotice.GCNoticeSendToAll(0,0,0,0,0,0,gMessage.GetMessage(338));

por isso

Code: [Select]
gKanturuUtil.SendMsgKanturuMapUser(gMessage.GetMessage(338));

Mas está de parabéns pelo fix! Abraço!

Gracias:


Offline hanzel #3 Posteado: February 17, 2021, 12:18:18 PM | Modificado: February 17, 2021, 10:54:59 PM by ZabiinoOo

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 9
  • Gracias recibida: 174
  • br
Una forma más sencilla de resolver esto es simplemente ir al archivo "KanturuBattleStanby.cpp" y cambiar la línea "void CKanturuBattleStanby :: SetState_NOTIFY ()" por la siguiente información.

Code: [Select]
void CKanturuBattleStanby::SetState_NOTIFY() // OK
{
LogAdd(LOG_BLACK,"[ KANTURU ][ BattleStanby ] State(%d) -> NOTIFY",this->m_BattleStanbyState);

this->SetBattleStanbyState(KANTURU_STANBY_NOTIFY);

for (int n = OBJECT_START_USER; n < MAX_OBJECT; n++) // OK
{
LPOBJ lpObj = &gObj[n];

if (this->m_BattleStanbyState == KANTURU_STANBY_NOTIFY)
{
if (lpObj->Connected == OBJECT_ONLINE) // OK
{
if (lpObj->Map >= MAP_KANTURU1 && lpObj->Map <= MAP_KANTURU3)
{
gNotice.GCNoticeSend(lpObj->Index, 0, 0, 0, 0, 0, 0, gMessage.GetMessage(338));
}
}
}
}
}

Gracias:


Offline CezarMaster #4 Posteado: February 17, 2021, 07:14:26 PM | Modificado: February 17, 2021, 07:16:11 PM by CezarMaster

  • 0 puntos por ventas
  • *
  • Rank: Liga mayor
  • Posts: 195
  • Gracias recibida: 2169
  • pe

Offline SaintZeus #5 Posteado: February 17, 2021, 07:45:03 PM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 482
  • Gracias recibida: 2808
  • ar

Gracias:


Offline nujd00 #6 Posteado: February 18, 2021, 12:11:24 AM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 354
  • Gracias recibida: 304
  • ph
share code interface <3 pleasee

NUJD RABAGO

Offline takumi12 #7 Posteado: February 18, 2021, 12:22:10 AM

  • MAESTRO

  • US. DE HONOR

  • LEYENDA

  • Php Coder
  • +11 puntos por ventas
  • *
  • *
  • Rank: Puto amo
  • Posts: 1.310
  • Gracias recibida: 40218
  • mx
share code interface <3 pleasee
NOOOOOO!  sueno


 magia2
500 dolares y te comparto xD, jajaja


Las offset no se crea, ni se destruye, solo se transforma

Offline Odisk #8 Posteado: February 18, 2021, 12:52:46 AM

  • Colaborador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 879
  • Gracias recibida: 12379
  • pr
is this included in your latest update 15 ?

one day

next generation ♥ !
https://nextmu.dev/

Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
8 Replies
6285 Views
Last post February 05, 2021, 07:52:57 PM
by yekiel
0 Replies
277 Views
Last post April 19, 2021, 04:19:43 PM
by magenta
4 Replies
536 Views
Last post May 17, 2021, 08:29:31 PM
by iFox
10 Replies
7796 Views
Last post August 31, 2023, 11:48:01 AM
by NghienMU
0 Replies
100 Views
Last post October 18, 2023, 07:36:35 AM
by drake955