Tailor Made Tools/Programs for You - AHK

05/14/2009 20:03 ookamocka#481
Quote:
Originally Posted by legolas77744 View Post
hi man can you make a bot that trains the poisen of a ninja automaticly?
So a bot that can sit automaticly and when stamina bar is full it use the poisen skill and than sit again.
errr... there are a lot of these...

[Only registered and activated users can see links. Click Here To Register...]
05/17/2009 12:34 ace_heart#482
Evan when i test AutoPot when low HP in war i faced problem sometimes i feel it's slow and end my Trojan die, can make it more fast !!!
05/17/2009 18:54 Evan Lim#483
ace_heart@
decrease the settimer number or sleep number
which script u are using?
05/17/2009 20:23 Tanis~#484
evan if u can can u fix cotobo so it can be used in the new co or a simple bot that handles items ,speed, aim,training and hunting maybe something that dc/s on blinkers .one that doesnt charge a monthly would be truley nice,and something that could be set how u like
and a +1 finder would be nice as well the coding doesnt really matter to me but i would like it to be confidential
ty Tanis~
05/17/2009 20:28 Evan Lim#485
Tanis~@
cant
nope
05/18/2009 11:03 ace_heart#486
Code:
msgbox, Ctrl + Q to pause
settimer, checkhp, 500

checkhp:
IfWinActive, [Conq
{
PixelSearch, , , 10, 720, 60, 720, 0x0B098F, 10, Fast
if ErrorLevel
{
send {F1}
sleep 1000
}
}
return
^q::pause
05/18/2009 11:25 Evan Lim#487
ace_heart@
its already checking ur hp every 0.5 second
well, i dont think making it anything less than that will matters
but if u want, just change the below line
Code:
settimer, checkhp, 250
05/18/2009 19:18 Alexios#488
Hi Evan!
Before some days you have made a program for me that reads memory address.
I am trying to make an XP skill lvler which will only click when it needs.

Code:
msgbox,4097,, Select client and press OK to continue
WinGet,id, ID, [C

;some other code which decides which x,y will give at XP skill function

XPSkillFunction(x,y,id)
{
Loop
{
CharXP:=ReadMemoryNumber(0x5DB364,"[Conquer2.0]")
If (CharXP = "100")
{
ControlClick, x%x% y%y%,ahk_id %id%,,right
Sleep,400
}
else
break

}

}

ReadMemoryNumber(MADDRESS,PROGRAM)
{
winget, pid, PID, %PROGRAM%
SetFormat, IntegerFast, 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 
}
That is the part of XP skill lvler, including your code for reading memory.
It works perfect, if one client is opened. But if I have 2 clients opened, it reads the XP bar of the client I play on, but I want it to read the memory address of the other client.
All I want to do is... hook/select one client and read the memory address only from it.
Help me when you can.

Thanks in advance,
Alexios

P.S. How did you do with your exams?
05/18/2009 20:08 Evan Lim#489
Alexios@
maybe something like this
Code:
msgbox, active first client and press OK
winget, pid1, PID, [Conquer2.0]
msgbox, active second client and press OK
winget, pid2, PID, [Conquer2.0]

CharXP1:=ReadMemoryNumber(0x5DB364, pid1)
CharXP2:=ReadMemoryNumber(0x5DB364, pid2)

ReadMemoryNumber(MADDRESS, pid)
{
SetFormat, IntegerFast, 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 
}
05/18/2009 20:53 Alexios#490
Works perfectly!
Thanks!
05/19/2009 14:49 Darkyy#491
Hey Evan I was looking around the programing section and I saw this thread [Only registered and activated users can see links. Click Here To Register...]. I was wondering if you could make the same thing but with AHK. Thanks
05/19/2009 17:56 Evan Lim#492
Darkyy@
but the point is why u need to convert?
u can just simply read both from memory address without converting
its fast and accurate
then if u want the program follow a path, it can be done even easier, as shown in my programs
tell me what u are trying to make, maybe we can find some better ways

-edit-
probably i misunderstand his program, can u tell what exactly is the difference?
05/19/2009 18:44 Darkyy#493
Quote:
Originally Posted by Evan Lim View Post
Darkyy@
but the point is why u need to convert?
u can just simply read both from memory address without converting
its fast and accurate
then if u want the program follow a path, it can be done even easier, as shown in my programs
tell me what u are trying to make, maybe we can find some better ways

-edit-
probably i misunderstand his program, can u tell what exactly is the difference?
with his program where you put your mouse over it says the co'ords on the server map not the screen co'ords. I was trying to make something like an autofollower. I found a way to find a persons co'ords (different than the char I'm on) but I don't know how to send those co'ords server based so the noob can follow my main or something like that. I'm just doing it to learn different things atm.

@ps Do you know why Cheat Engine or any memory based bots aint working for my pc? On my sisters laptop everything I made worked really good loaded CO with CE but on my PC i get some error" Error while opening process"

Even this doesn't work. Nothing at all

Code:
Loop
{
x:=ReadMemory(0x005DAE2C,"[Conquer2.0]")
y:=ReadMemory(0x005DAD24,"[Conquer2.0]")
potency:=ReadMemory(0x005DB710,"[Conquer2.0]")
cash:=ReadMemory(0x005DB90C,"[Conquer2.0]")
mentorstone:=ReadMemory(0x005DBAA0,"[Conquer2.0]")
ping:=ReadMemory(0x005DEBF8,"[Conquer2.0]")
hp:=ReadMemory(0x01F4C6B8,"[Conquer2.0]")
cp:=ReadMemory(0x005DB910,"[Conquer2.0]")
xp:=ReadMemory(0x005DB364,"[Conquer2.0]")
donation:=ReadMemory(0x005DB8C8,"[Conquer2.0]")
Attpoints:=ReadMemory(0x005Db690,"[Conquer2.0]")
Vit:=ReadMemory(0x005DB35C,"[Conquer2.0]")
quiz:=ReadMemory(0x03853118,"[Conquer2.0]")
tooltip,|%x% %y%||Pot%potency%| |Cash: %cash%| |stone %mentorstone%||Nobility: %donation%| |Ping: %ping%| |Hp-%hp%| |CPs- %cp%||Vit-%Vit%||Att points %Attpoints%| |XP- %XP%||%quiz%|, 130, 300 ,1
}

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 
}

@ps if u want u can add me on msn [Only registered and activated users can see links. Click Here To Register...]
05/19/2009 20:30 Evan Lim#494
Darkyy@
ok u mean that if i move my mouse around the client, it will show if i click on that point, i will go to a certain coordinate, correct?
CE: probably admin rights or anti virus
05/19/2009 21:00 Darkyy#495
Quote:
Originally Posted by Evan Lim View Post
Darkyy@
ok u mean that if i move my mouse around the client, it will show if i click on that point, i will go to a certain coordinate, correct?
CE: probably admin rights or anti virus
Yes, the mouse shows the co'ords the char will be after clicking on them server-wise.
CE: Tried without anti-virus and what do you mean by admin rights? I installed the same CE on my sisters laptop and it worked fine.


@edit fixed my problem with CE but i still cant use memory based programs :S