Notification DoubleGoer Main 5.2 and S6 - Source Mu - Mu Server Files
 

Noticias:

SMF - Just Installed!

Menú principal

Notification DoubleGoer Main 5.2 and S6

Publicado por Dakosmu, Nov 14, 2025, 03:16 PM

Tema anterior - Siguiente tema

0 Miembros y 1 Visitante están viendo este tema.

Dakosmu

🔔 Guía: Notificación de Apertura Double Goer 5.2 y S6 🔔

Créditos: Mineiro

---

Esta modificación añade notificaciones de tiempo para el evento Double Goer. Anuncia cuando faltan minutos para que el evento inicie (respetando el tiempo de CloseTime en el archivo DoubleGoer.dat) y notifica cuando la entrada es liberada.

¿Cómo Funciona?
Una vez que los jugadores concluyen el evento, comienza la cuenta regresiva del CloseTime. Cuando este tiempo llega a cero, el evento se habilita nuevamente para la entrada.
  • El código anunciará cuando falten 3 minutos para que el evento sea liberado (Ej: "O Evento Double Goer vai começar em 3 minuto(s)!")
  • Anunciará cuando el evento abra (entrada liberada) (Ej: "O Evento Double Goer começou! Entre agora!")

Imágenes de Ejemplo:




---

Paso 1: Modificar el GameServer

Archivo: DoubleGoer.cpp

Encuentra la siguiente función:
void CDoubleGoer::ProcState_CLEAN()
Reemplaza TODO su contenido por el siguiente código (asegúrate de no perder ninguna línea):

void CDoubleGoer::ProcState_CLEAN() // OK
{
#if(GAMESERVER_UPDATE>=501)
this->CheckUser();

int remainMinutes = (this->m_RemainTime + 59999) / 60000;

if (remainMinutes >= 1 && remainMinutes <= 3)
{
static int lastAnnouncedMinute = 4;

if (remainMinutes < lastAnnouncedMinute)
{
gNotice.GCNoticeSendToAll(0, 0, 0, 0, 0, 0, gMessage.GetMessage(805), remainMinutes);
lastAnnouncedMinute = remainMinutes;
}
}

if (this->m_RemainTime > 0 && this->m_RemainTime <= 30000 && this->m_TimeCount == 0)
{
PMSG_TIME_COUNT_SEND pMsg;
pMsg.header.set(0x92, sizeof(pMsg));
pMsg.type = 19;
this->DataSendToAll((BYTE*)&pMsg, pMsg.header.size);
this->m_TimeCount = 1;
}

if (this->m_RemainTime <= 0)
{
gNotice.GCNoticeSendToAll(0, 0, 0, 0, 0, 0, gMessage.GetMessage(806));
this->SetState(DG_STATE_EMPTY);
}
#endif
}

---

Paso 2: Agregar Mensajes al MuServer

En el archivo de mensajes de tu MuServer, añade las siguientes líneas:

805 "O Evento Double Goer vai começar em %d minuto(s)!"
806 "O Evento Double Goer começou! Entre agora!"

---
¡Listo! Compila tu GameServer después de aplicar la modificación.
Bon Dia

🡱 🡳
Real Time Web Analytics