Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: AutoPotion Main Side  (Visto 4736 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: 2469
  • 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:

xWinns, zhongyupeng, cosmonauta, mochaso05, tutu100, mpy1, nylanpro, LastName, short, jonathadll, DjGamer, ricrenwick, bykakuv, Zeusx, Bk_Shadow, narinrak1, lucasvieira, k33n00, tangyi90, Tenente-BK, goodsfire, distuber1, delviorre, Crowley, wener1992, 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: 128
  • 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: 1782
  • 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: 5
  • Gracias recibida: 5
  • 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: 5
  • Gracias recibida: 5
  • 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: 5
  • Gracias recibida: 5
  • 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:


Offline Zeusx #7 Posteado: December 06, 2025, 08:33:57 PM

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

Alguem ajuda adicionar isso na versao 1.04e ?


Offline Creazsia #8 Posteado: December 19, 2025, 08:34:15 PM

  • 0 puntos por ventas
  • *
  • Rank: Dedicado
  • Posts: 47
  • Gracias recibida: 2
  • ph
is there any way to make it work even though the cursor are not in game windows just like how the original matrix auto potion work?
it seems after being move to other space outside the game window the auto potion stops and when typing.

just want to know if there is someone already created the same auto potion as matrix does.


Offline eraclio1 #9 Posteado: January 09, 2026, 01:52:58 PM

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 5
  • Gracias recibida: 5
  • br
is there any way to make it work even though the cursor are not in game windows just like how the original matrix auto potion work?
it seems after being move to other space outside the game window the auto potion stops and when typing.

just want to know if there is someone already created the same auto potion as matrix does.

You only need to comment out the code block that checks if the window is in the foreground.
Test this.


Offline Creazsia #10 Posteado: January 10, 2026, 03:34:29 AM

  • 0 puntos por ventas
  • *
  • Rank: Dedicado
  • Posts: 47
  • Gracias recibida: 2
  • ph
Anyone can share the Auto potion for Main 1.04e that is the same function as the Matrix Plugin auto potion?

what I mean is it keeps on doing auto potion even though you are typing and then when the cursor and not in the game window.

Thanks in Advance!


Offline Creazsia #11 Posteado: January 10, 2026, 06:16:41 AM

  • 0 puntos por ventas
  • *
  • Rank: Dedicado
  • Posts: 47
  • Gracias recibida: 2
  • ph
is there any way to make it work even though the cursor are not in game windows just like how the original matrix auto potion work?
it seems after being move to other space outside the game window the auto potion stops and when typing.

just want to know if there is someone already created the same auto potion as matrix does.

You only need to comment out the code block that checks if the window is in the foreground.
Test this.

don't know how to do it maybe you can help me?


Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
0 Replies
594 Views
Last post July 11, 2020, 01:17:03 PM
by bafta100
2 Replies
5930 Views
Last post August 20, 2023, 06:19:40 PM
by ProMD
2 Replies
4631 Views
Last post September 03, 2022, 09:38:20 PM
by redf0x
2 Replies
653 Views
Last post October 09, 2025, 10:34:46 PM
by laurentiuitk
0 Replies
459 Views
Last post January 01, 2026, 08:49:50 PM
by Macêdo