Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Programming
You last visited: Today at 01:44

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Hey guys need some help, AHK script

Discussion on Hey guys need some help, AHK script within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
Darkyy's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 396
Received Thanks: 473
Hey guys need some help, AHK script

Sup people,
I havn't been here in ages or used AHK so i forgot some main actions with it. I'm trying to do an automatic gear shifter for a racing game I'm playing but with no success. I got the memory code of the gear and the speed and I want it to change gear up or down if it's in "X" gear at "Y" speed. So far i made something like this:

Code:
loop 
{
speed:=ReadMemoryNumber(0x00599CD8,"Synetic")   
Gear:=ReadMemoryNumber(0x00599C8A,"Synetic")   
tooltip, %speed%  %Gear% , 130, 95 ,1 
sleep 1000
}




If speed >= 25
{


if Gear = 1 
{
if ErrorLevel = 0
 {
loop
sleep 50
send A
sleep 50
send {A}
sleep 50
}


}


}









ReadMemory(MADDRESS,PROGRAM)
{
winget, pid, PID, %PROGRAM%

VarSetCapacity(MVALUE,4,0)
ProcessHandle := DllCall("OpenProcess", "Int", 24, "Char", 0, "UInt", pid, "UInt")
DllCall("ReadProcessMemory","UInt",ProcessHandle,"UInt",MADDRESS,"Str",MVALUE,"UInt",4,"UInt *",0)

Loop 4
result += *(&MVALUE + A_Index-1) << 8*(A_Index-1)

return, result 
} 

ReadMemoryText(MADDRESS,PROGRAM)
{
winget, pid, PID, %PROGRAM%
VarSetCapacity(MVALUE,22,22)
ProcessHandle := DllCall("OpenProcess", "Int", 24, "Char", 0, "UInt", pid, "UInt")
DllCall("ReadProcessMemory","UInt",ProcessHandle,"UInt",MADDRESS,"Str",MVALUE,"UInt",22,"UInt *",22)
Loop 4
result += *(&MVALUE + A_Index-1) << 8*(A_Index-1)
SetFormat, Integer, Hex
result+=0
count=1

loop 4
{
count+=2
StringMid, c, result, %count%, 2
c=0x%c%
c:=chr(c)
final=%c%%final%
}
return, final 
}

ReadMemoryNumber(MADDRESS,PROGRAM)
{
winget, pid, PID, %PROGRAM%
SetFormat, Integer, d

VarSetCapacity(MVALUE,4,0)
ProcessHandle := DllCall("OpenProcess", "Int", 24, "Char", 0, "UInt", pid, "UInt")
DllCall("ReadProcessMemory","UInt",ProcessHandle,"UInt",MADDRESS,"Str",MVALUE,"UInt",4,"UInt *",0)

Loop 4
result += *(&MVALUE + A_Index-1) << 8*(A_Index-1)

return, result 
}

On the tooltip it shows the correct speed and gear but In-game it doesn't do anything at the shown speed or gear. If someone has time and wants to help i'll be thankful.
Darkyy is offline  
Reply


Similar Threads Similar Threads
Welcome Guys After LongTime ... For The First Time HackingCase Script
02/27/2011 - CO2 PServer Guides & Releases - 5 Replies
Welcome My dear Welcome all distinguished members of the 4Botters after a long absence, i returned the strongest theme in the world in private server. Hacking Case Wihtout New CONFIG FILE !!! Now The Config File Looks Like This <?php //require_once './inc/class.captcha.php'; // Configurations $myhost='localhost'; // MySQL database address $mypass='test'; // MySQL server login
(REQUEST) guys phingi nmn ng sample n script ng kom files naedit nyo na.....
02/02/2011 - Grand Chase Philippines - 8 Replies
khit ung 1 hit lng or auto kill.........TY:p
question guys/ script editors
11/07/2009 - Grand Chase - 1 Replies
is it possible to create a script that enables you to have a perfect star hack every time and is it possible to create a script that enables you to use lvl 61 stuff when your just lvl 30 just wanting to know
[Guys] Script for AutoEnchant
08/26/2009 - Lineage 2 - 1 Replies
is there a script for enchant?.. cause its very boring to enchant T_T specially if you will enchant a bunch of items,,



All times are GMT +1. The time now is 01:45.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.