| View previous topic :: View next topic |
| Author |
Message |
slippppppppp Grandmaster Cheater
Reputation: 0
Joined: 08 Aug 2006 Posts: 929
|
Posted: Fri Nov 23, 2007 2:55 pm Post subject: [C++] Auto Pot |
|
|
| 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 |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Fri Nov 23, 2007 3:53 pm Post subject: Re: [C++] Auto Pot |
|
|
| 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 |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Fri Nov 23, 2007 4:32 pm Post subject: |
|
|
| You can also use GetPixel() but if you want minimized botting you'll have to either use a timer or addresses.
|
|
| Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Fri Nov 23, 2007 4:37 pm Post subject: |
|
|
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 |
|
 |
|