- Katılım
- 8 Şub 2022
- Konular
- 110
- Mesajlar
- 675
- Online süresi
- 2mo 19d
- Reaksiyon Skoru
- 767
- Altın Konu
- 5
- Başarım Puanı
- 175
- Yaş
- 29
- MmoLira
- 16,253
- DevLira
- 0
ROHAN2 WORLD 1-120 TR TİPİ OFFICIAL YOHARA, BALATHOR VE AMON! 80. GÜNÜNDE! +10.000 ONLİNE! HİLE VE BOT %100 ENGELLİ HEMEN TIKLA!
[CODE lang="cpp" title="memory" highlight="mem"]template <typename T>
T ReadMemory(DWORD_PTR address, T* value = nullptr, bool isWrite = false) {
if (isWrite) {
if (!IsBadWritePtr(reinterpret_cast<void*>(address), sizeof(T))) {
*(T*)address = *value;
return *value;
}
}
else {
if (!IsBadReadPtr(reinterpret_cast<void*>(address), sizeof(T))) {
return *(T*)address;
}
}
T def{};
return def;
}
namespace driver
{
template <typename T>
bool ReadMemory(DWORD moduleHandle, DWORD baseClient, DWORD addr, DWORD offsets, T& value)
{
DWORD off1, off2;
if (!ReadProcessMemory(MEMORY, (LPCVOID)(moduleHandle + baseClient), &off1, sizeof(DWORD), NULL))
return false;
if (!ReadProcessMemory(MEMORY, (LPCVOID)(off1 + addr), &off2, sizeof(DWORD), NULL))
return false;
if (!ReadProcessMemory(MEMORY, (LPCVOID)(off2 + offsets), &value, sizeof(T), NULL))
return false;
return true;
}
}
[/CODE]
[CODE lang="cpp" title="Boost Main"]#define DEG2RAD(x) ( (float)(x) * (float)(M_PI / 180.f) )
#define M_PI 3.14159265358979323846f
DWORD WINAPI MoveSpeedBoost(HMODULE hModule)
{
while (true)
{
try
{
if (Keyboard::C_MoveBoost)
{
if (GetAsyncKeyState(VK_SHIFT) & 0x8000)
{
static int BoostCount = 0;
float playerRotation = -DEG2RAD(c_players.Rotation - 180);
float deltaX = 180.0f * sin(playerRotation);
float deltaY = 180.0f * cos(playerRotation);
float deltaZ = 0.0f;
c_players.x += deltaX;
c_players.y += deltaY;
c_players.z += deltaZ;
uintptr_t Feature_X = ReadMemory<uintptr_t>(ReadMemory<uintptr_t>(Ez_game_base + metin2client::C_LocalPlayer) + metin2client::C_LocalAddr) + metin2client::C_CoordsX;
ReadMemory<float>(Feature_X, &c_players.x, true);
uintptr_t Feature_Y = ReadMemory<uintptr_t>(ReadMemory<uintptr_t>(Ez_game_base + metin2client::C_LocalPlayer) + metin2client::C_LocalAddr) + metin2client::C_CoordsY;
ReadMemory<float>(Feature_Y, &c_players.y, true);
uintptr_t Feature_Z = ReadMemory<uintptr_t>(ReadMemory<uintptr_t>(Ez_game_base + metin2client::C_LocalPlayer) + metin2client::C_LocalAddr) + metin2client::C_CoordsZ;
ReadMemory<float>(Feature_Z, &c_players.z, true);
}
}
Sleep(Keyboard::C_MoveBoost_Value);
}
catch (...)
{
}
}
}
[/CODE]
T ReadMemory(DWORD_PTR address, T* value = nullptr, bool isWrite = false) {
if (isWrite) {
if (!IsBadWritePtr(reinterpret_cast<void*>(address), sizeof(T))) {
*(T*)address = *value;
return *value;
}
}
else {
if (!IsBadReadPtr(reinterpret_cast<void*>(address), sizeof(T))) {
return *(T*)address;
}
}
T def{};
return def;
}
namespace driver
{
template <typename T>
bool ReadMemory(DWORD moduleHandle, DWORD baseClient, DWORD addr, DWORD offsets, T& value)
{
DWORD off1, off2;
if (!ReadProcessMemory(MEMORY, (LPCVOID)(moduleHandle + baseClient), &off1, sizeof(DWORD), NULL))
return false;
if (!ReadProcessMemory(MEMORY, (LPCVOID)(off1 + addr), &off2, sizeof(DWORD), NULL))
return false;
if (!ReadProcessMemory(MEMORY, (LPCVOID)(off2 + offsets), &value, sizeof(T), NULL))
return false;
return true;
}
}
[/CODE]
[CODE lang="cpp" title="Boost Main"]#define DEG2RAD(x) ( (float)(x) * (float)(M_PI / 180.f) )
#define M_PI 3.14159265358979323846f
DWORD WINAPI MoveSpeedBoost(HMODULE hModule)
{
while (true)
{
try
{
if (Keyboard::C_MoveBoost)
{
if (GetAsyncKeyState(VK_SHIFT) & 0x8000)
{
static int BoostCount = 0;
float playerRotation = -DEG2RAD(c_players.Rotation - 180);
float deltaX = 180.0f * sin(playerRotation);
float deltaY = 180.0f * cos(playerRotation);
float deltaZ = 0.0f;
c_players.x += deltaX;
c_players.y += deltaY;
c_players.z += deltaZ;
uintptr_t Feature_X = ReadMemory<uintptr_t>(ReadMemory<uintptr_t>(Ez_game_base + metin2client::C_LocalPlayer) + metin2client::C_LocalAddr) + metin2client::C_CoordsX;
ReadMemory<float>(Feature_X, &c_players.x, true);
uintptr_t Feature_Y = ReadMemory<uintptr_t>(ReadMemory<uintptr_t>(Ez_game_base + metin2client::C_LocalPlayer) + metin2client::C_LocalAddr) + metin2client::C_CoordsY;
ReadMemory<float>(Feature_Y, &c_players.y, true);
uintptr_t Feature_Z = ReadMemory<uintptr_t>(ReadMemory<uintptr_t>(Ez_game_base + metin2client::C_LocalPlayer) + metin2client::C_LocalAddr) + metin2client::C_CoordsZ;
ReadMemory<float>(Feature_Z, &c_players.z, true);
}
}
Sleep(Keyboard::C_MoveBoost_Value);
}
catch (...)
{
}
}
}
[/CODE]
- Katılım
- 11 Mar 2014
- Konular
- 34
- Mesajlar
- 612
- Online süresi
- 5d 7h
- Reaksiyon Skoru
- 20
- Altın Konu
- 0
- TM Yaşı
- 12 Yıl 2 Ay 28 Gün
- Başarım Puanı
- 109
- MmoLira
- 1,196
- DevLira
- 3
ne işe yariyor bu tam olarak
- Katılım
- 8 Şub 2022
- Konular
- 110
- Mesajlar
- 675
- Online süresi
- 2mo 19d
- Reaksiyon Skoru
- 767
- Altın Konu
- 5
- Başarım Puanı
- 175
- Yaş
- 29
- MmoLira
- 16,253
- DevLira
- 0
normall movement speed'in calısmadıgı yerlerde bu movement speed görevi görüyor tr gibine işe yariyor bu tam olarak
- Katılım
- 11 Mar 2014
- Konular
- 34
- Mesajlar
- 612
- Online süresi
- 5d 7h
- Reaksiyon Skoru
- 20
- Altın Konu
- 0
- TM Yaşı
- 12 Yıl 2 Ay 28 Gün
- Başarım Puanı
- 109
- MmoLira
- 1,196
- DevLira
- 3
discort varmıdır dostum bir konu hakkinda görüşmek istiyorum
Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)
Benzer konular
Metin2 Hile İstek
Metin2 GF SendItemPickupPacket
- Cevaplar
- 10
- Görüntüleme
- 771
- Cevaplar
- 18
- Görüntüleme
- 5K
- Cevaplar
- 3
- Görüntüleme
- 334
- Cevaplar
- 8
- Görüntüleme
- 1K


