Kation
10.10.2007, 01:56
I didnt see that someone share any fix for this stupid exploit, (u can teleport to olypmiad stadion and kill/heal/buff or do what u want there). Here is simple fix:
int TeleportStatus[1000000];
or
#include <hash_map>
using namespace stdext;
hash_map<int, int> TeleportStatus;
.
.
.
switch ( _pBufferHeader )
{
//BypassToServer
case 0x21:
{
pBuffer = GetAddress(pBuffer,33); //switch to -130 part
TempDword = (DWORD) *pBuffer;
// BypassToServer:menu_select?ask=-130&reply=1
// ask=-130 -> teleport to olympiad stadion reply=X - where x is number of stadion
if(TempDword == 0x0031002D)
{
pBuffer = GetAddress(pBuffer, 4);
if(TempDword = 0x00300033) // -130 = 2D 00 31 00 33 00 30 00
{
TeleportStatus[*pUserSocket]=1; //Set TeleportStatus to 1 - Request watching olympiad
}
}
break;
}
//Appearing - send after teleport when player is spawning
case 0x30:
{
TeleportStatus[*pUserSocket]=2; // if player is spawned somewhere ex. in olympiad stadion set TeleportStatus = 2
break;
}
//ExOlympiadObserveEnd - Request return from olympiad stadion
case 0xD0:
{
TempDword = (DWORD) pBuffer; //jump header to ExPacket
TempDword++;
pBuffer = (DWORD *) TempDword;
TempWord = (WORD) *pBuffer;
if(TempWord == 0x0012) //Player pressed Return Button
{
if(TeleportStatus[*pUserSocket] != 2) //If player wasn't spawned in olympiad stadion and pressed Return button
{
CSocket::Send(pSocket, FormatLogoutOk, 0x7E); //it will instantly close cheater's client
console.report("Illegal Action Detected (OlympiadTeleportCheat) Socket: %d Account: %s", *pUserSocket, pAccountName); //put here something to log this action
};
}
break;
}
}
pUserSocket in this code is the socket which l2server shows (Menu Report->User).
It's one of many ways to fix that, hope it helps someone.
Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 10 October 2007, 01:56. Открыть источник (https://web.archive.org/web/20071222120246id_/http://www.postpacific.com:80/forums/archive/index.php/t-8810.html).
int TeleportStatus[1000000];
or
#include <hash_map>
using namespace stdext;
hash_map<int, int> TeleportStatus;
.
.
.
switch ( _pBufferHeader )
{
//BypassToServer
case 0x21:
{
pBuffer = GetAddress(pBuffer,33); //switch to -130 part
TempDword = (DWORD) *pBuffer;
// BypassToServer:menu_select?ask=-130&reply=1
// ask=-130 -> teleport to olympiad stadion reply=X - where x is number of stadion
if(TempDword == 0x0031002D)
{
pBuffer = GetAddress(pBuffer, 4);
if(TempDword = 0x00300033) // -130 = 2D 00 31 00 33 00 30 00
{
TeleportStatus[*pUserSocket]=1; //Set TeleportStatus to 1 - Request watching olympiad
}
}
break;
}
//Appearing - send after teleport when player is spawning
case 0x30:
{
TeleportStatus[*pUserSocket]=2; // if player is spawned somewhere ex. in olympiad stadion set TeleportStatus = 2
break;
}
//ExOlympiadObserveEnd - Request return from olympiad stadion
case 0xD0:
{
TempDword = (DWORD) pBuffer; //jump header to ExPacket
TempDword++;
pBuffer = (DWORD *) TempDword;
TempWord = (WORD) *pBuffer;
if(TempWord == 0x0012) //Player pressed Return Button
{
if(TeleportStatus[*pUserSocket] != 2) //If player wasn't spawned in olympiad stadion and pressed Return button
{
CSocket::Send(pSocket, FormatLogoutOk, 0x7E); //it will instantly close cheater's client
console.report("Illegal Action Detected (OlympiadTeleportCheat) Socket: %d Account: %s", *pUserSocket, pAccountName); //put here something to log this action
};
}
break;
}
}
pUserSocket in this code is the socket which l2server shows (Menu Report->User).
It's one of many ways to fix that, hope it helps someone.
Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 10 October 2007, 01:56. Открыть источник (https://web.archive.org/web/20071222120246id_/http://www.postpacific.com:80/forums/archive/index.php/t-8810.html).