Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: AutoPotion Main Side  (Visto 3578 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline joaovithor1 Posteado: May 25, 2024, 02:02:29 PM

  • 0 puntos por ventas
  • *
  • Rank: Dedicado
  • Posts: 53
  • Gracias recibida: 2397
  • br
Gostaria de compartilhar com vocês um código de auto-potion que desenvolvi para o lado do cliente.
Esse codigo e compativel com a 1.02R
AutoPotion.cpp

AutoPotion.h


Main.cpp



Credits:@My, @Denis Alves

Gracias:

tffmtt, roie, babait, m4965, cachorroquente, stark98, hungngok9x, GG-Bond, conter, DRAKX, beecubin, 1732313, zHammer, Matt1995, matheusgomesb, lavangty, coolgepds, vietbang, daimer, nelson, calibur, jampi0910, BkxDarkxD, estiguar, @Violent, gumay, bongpu2018, matan3599, MADRUGA, annulie, HazzdeN, guhhperes, AlmaFuerteGM, mau123, wpneto99, wallisonsb, DeveloperMU, ellite3, faelm, bbbbcccc, PKIURY, ssmunet, bananna0, Lotto4K4k, bigrealtk92, rando, mateus2255, Creazsia, powerpatic, candido, football, iRvX, shigamer, 0911300989, cuongnm, muphantom, tucumanito, paulo7474, Davi, akumaxis, manugaby1, Smudevelop, gabit4nk, usuario01, allhoy, amawaoi999, jeuzinn, iCoder, bhramabr, samsunggon, hoangtammedia, muatrack, whisky123, SPK, Hoangtu34, pnicacio, mohamerda22, monk, kimera, Ravoc, kizl01, jhonneduard, hieu95, rivaldo123, tacabalarj, Powe11, Domedica, zurect, nicopiti, redf0x, skrt1996, NghienMU, wenleiady, muzin, ta6akus7, Greenland, gambasoxd, Xingaw, OBBY, ailsoncost, Macêdo, leonardofcruz, agusavila0, xeru00, glmmlg, Dieguinho, Zike, thziin, carper, Genius05, lucasiron, stenersilva, elitingo, Bladimir1, RifleMaN_, stonegameplay, hyonzinho666, hungngok94, okilove23, truongtienhp, dreamboy7, victorrz17, hatchet, VERNERON, boypost, haziel, Mizuki, lehuuducmjnh, lucasaraujo2002, rodrigoo22, Pecan, herjuni, LTP Team, mugloves99, lstuan, iSh4dow, Mineiro, MuyMeonGaymes, knight.php, GoldSun, Amarilofx, djagripnos, thangnvv92, thangnvv92, z348870672, kimrubi, Keko, Shellshock, frenzo2009, lechianh88, mos02673, nsynecs, dainam, quyanxu, atakkk, phuongcuongmsqm, MUXP, eraclio1, animator, mael55, Ketamine, Andre1981, SHILDKING, InFamous, emersonx13, dedicadobk, korron, zhujianhui, Hoangsy99, Ga4umy4u, dkservermus6, stopk, dahouzi, nhantac, Viper, Juninsj22, birdy491, c4nhsatcodong, zhangjianle865, projectmu, Xenos, Ryzenn, CorsarioDgx, tcbaoanh, komandirbk, GabrielDev, npt.formu, Rindy, Kenpachi Zaraki, spartacus, Denis Alves, disan1992, Darckz, kaiocnx, mundomuc, andreyzz, dakosmu, Batux, mustx1, usersa, tammadall, lkt22, dizzys, antoniodel, saske98, Murilo

Offline antoniodel #1 Posteado: May 25, 2024, 02:14:21 PM

  • 0 puntos por ventas
  • *
  • Rank: Destacado
  • Posts: 81
  • Gracias recibida: 127
  • br
Top, vou só procurar os offset do Main 1.04j pra por no meu projetinho.


Offline Rindy #2 Posteado: May 25, 2024, 05:32:16 PM

  • 0 puntos por ventas
  • *
  • Rank: Destacado
  • Posts: 80
  • Gracias recibida: 1767
  • gb
1.04e
Controller.cpp


.cpp



Offline eraclio1 #3 Posteado: May 26, 2024, 06:48:36 PM | Modificado: November 18, 2025, 10:04:19 AM by eraclio1

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 4
  • Gracias recibida: 2
  • br

Gracias:


Offline @Violent #4 Posteado: November 15, 2025, 04:56:44 PM | Modificado: November 15, 2025, 04:59:50 PM by @Violent

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 4
  • Gracias recibida: 1
  • br
1.04e
Controller.cpp 
.cpp 

Onde adicionar a segunda parte do codigo para versao 1,04e?


Offline eraclio1 #5 Posteado: November 18, 2025, 06:35:01 AM

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 4
  • Gracias recibida: 2
  • br
1.04e
Controller.cpp
.cpp

Onde adicionar a segunda parte do codigo para versao 1,04e?

Cria um novo .cpp e .h

Ou adiciona em algum cpp ja pronto


Offline eraclio1 #6 Posteado: November 18, 2025, 10:02:57 AM

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 4
  • Gracias recibida: 2
  • br
1.04J

AutoPotion.cpp
Code: [Select]
#include "StdAfx.h"
#include "AutoPotion.h"


CPotion gPotion;

CPotion::CPotion()
{
this->m_AutoPotion = 0;
}

CPotion::~CPotion()
{

}

DWORD WINAPI CPotion::AutoPotionThread(LPVOID lpParam)
{
while (true)
{
Sleep(200);

if (GetForegroundWindow() == pGameWindow)
{
if (*(DWORD*)(MAIN) > 4)
{
if (pChatWindow == 0)
{
if (gPotion.m_AutoPotion)
{

keybd_event(0x51, 0, 0, 0);
keybd_event(0x57, 0, 0, 0);
keybd_event(0x45, 0, 0, 0);
Sleep(200);
keybd_event(0x51, 0, KEYEVENTF_KEYUP, 0);
keybd_event(0x57, 0, KEYEVENTF_KEYUP, 0);
keybd_event(0x45, 0, KEYEVENTF_KEYUP, 0);
}
}
}
}
}
}

AutoPotion.h

Code: [Select]
#pragma once
#include "StdAfx.h"

#define pGameWindow *(HWND*)0x007AFEE84
#define MAIN 0x0077EBAC
#define pChatWindow *(BYTE*)0x76EFC9

class CPotion
{
public:
CPotion();
virtual ~CPotion();
static DWORD WINAPI AutoPotionThread(LPVOID lpParam);
bool m_AutoPotion;
};

extern CPotion gPotion;


Main.cpp
KeyBoardProc:

Code: [Select]
if (wParam == VK_DELETE)
{
if (pChatWindow == 0)
{
if (gPotion.m_AutoPotion == 0)
{
gPotion.m_AutoPotion = 1;
pDrawMessage("POT ON", 1);
}
else if (gPotion.m_AutoPotion == 1)
{
gPotion.m_AutoPotion = 0;
pDrawMessage("POT OFF", 1);
}
}
}

EntryProc:

Code: [Select]
CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)gPotion.AutoPotionThread, 0, 0, 0);


Gracias:


Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
0 Replies
798 Views
Last post May 27, 2020, 05:24:30 PM
by fugitivo20
0 Replies
571 Views
Last post July 11, 2020, 01:17:03 PM
by bafta100
2 Replies
5572 Views
Last post August 20, 2023, 06:19:40 PM
by ProMD
2 Replies
4487 Views
Last post September 03, 2022, 09:38:20 PM
by redf0x
2 Replies
471 Views
Last post October 09, 2025, 10:34:46 PM
by laurentiuitk