Sources Fix Summon Party closes the CS Gate (MuEMU)

Publicado por Dakosmu, Mar 03, 2025, 04:10 AM

Tema anterior - Siguiente tema

Dakosmu

Sources Fix Summon Party closes the CS Gate (MuEMU)



Hoje a equipe inteira resolveu deixar o sócio triste.

Trago pra vocês este fix da UPDATE 20 de meu sócio.

Este é para que não seja permitido usar as skills de teleport próximo aos portões do CS.

Los visitantes no pueden visualizar imágenes en los mensajes, por favor Regístrate o Inicia Sesión


Adicione as verificações abaixo nas funções gObjSummonAlly, gObjTeleportMagicUse.

Código:

#if(GAMESERVER_TYPE==1)
//-> Teleport Closes CS Gate (1)
if(lpObj->Map == 30 && lpObj->X >= 54 && lpObj->Y >= 111 && lpObj->TX <= 127 && lpObj->TY <= 118)
{
gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,"You cannot use this skill near this location.");
gObjTeleport(lpObj->Index,30,67,105);
}

//-> Teleport Closes CS Gate (2)
if(lpObj->Map == 30 && lpObj->X >= 67 && lpObj->Y >= 158 && lpObj->TX <= 118 && lpObj->TY <= 164)
{
gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,"You cannot use this skill near this location.");
gObjTeleport(lpObj->Index,30,93,148);
}

//-> Teleport Closes CS Gate (3)
if(lpObj->Map == 30 && lpObj->X >= 79 && lpObj->Y >= 201 && lpObj->TX <= 105 && lpObj->TY <= 207)
{
gNotice.GCNoticeSend(lpObj->Index,1,0,0,0,0,0,"You cannot use this skill near this location.");
gObjTeleport(lpObj->Index,30,93,192);
}
#endif

Créditos: Emershow
Bon Dia

🡱 🡳