Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[C++] Auto Pot

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
slippppppppp
Grandmaster Cheater
Reputation: 0

Joined: 08 Aug 2006
Posts: 929

PostPosted: Fri Nov 23, 2007 2:55 pm    Post subject: [C++] Auto Pot Reply with quote

Is there any way anyone can help me implement Autopot, as in give me hints. And if you tell me to read memory, i dont know what the Hp/MP addresses are.
Back to top
View user's profile Send private message AIM Address MSN Messenger
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Fri Nov 23, 2007 3:53 pm    Post subject: Re: [C++] Auto Pot Reply with quote

slippppppppp wrote:
Is there any way anyone can help me implement Autopot, as in give me hints. And if you tell me to read memory, i dont know what the Hp/MP addresses are.


Then find them? Believe it or not, you're on the forums for a program that can help you do just that.
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Fri Nov 23, 2007 4:32 pm    Post subject: Reply with quote

You can also use GetPixel() but if you want minimized botting you'll have to either use a timer or addresses.
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Fri Nov 23, 2007 4:37 pm    Post subject: Reply with quote

Use CE to scan for the addresses of the autopot, then implement code such as this:

Code:
void AP(int nLow)
{
    int * lpHealth= 0xaddress;
    for(;;SleepEx(10, FALSE)) {
        if(GetAsyncKeyState(VK_F5)) {
            for(;;SleepEx(10, FALSE)) {
                if(GetAsyncKeyState(VK_F6))
                    break;
                if(*lpHealth <= nLow)
                    PMX(Wnd, WM_KEYDOWN, 0, ((MapVirtualKey('Z',0) << 16) & 0x00FF0000));
            }
        }
    }
}


Note: That code is based upon the bold assumption that health is stored as an integer. Oh, and you will have over-potting issues with this code if you don't modify the SleepEx values properly.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites