[C++] International C++ Bot: Beta Release

07/04/2011 22:52 alaor#1141
livedown bot dont work for me more... ¬¬

error in DLL injection
07/05/2011 23:59 groovyhorn#1142
READ PEOPLE DON'T BE LAZY

right i've been fidgeting around a bit trying to get things to work

IsPoseidonWindow_OpenL=17640412

what offset is this? i've been trying to find the offset for 1st item box but don't know where to place it in offsets

ty
07/07/2011 02:21 My420Time#1143
Quote:
Originally Posted by groovyhorn View Post
READ PEOPLE DON'T BE LAZY

right i've been fidgeting around a bit trying to get things to work

IsPoseidonWindow_OpenL=17640412

what offset is this? i've been trying to find the offset for 1st item box but don't know where to place it in offsets

ty
Easiest way to find this offset is with cheat engine. Have the Poseidon Quest Window open and search for a byte/4byte value of one. Once searched close the quest window and search again for 0... repeat this until you only have 3-4 values. There will be a few different values that proc for this window but the one you want is the one that only changes for the quest window. You can test this by opening the system window(esc menu) and making sure the value doesn't change.
07/07/2011 16:13 groovyhorn#1144
ty mytime, but that's not exactly what I'm asking for :p

I've got the offset(by cheat engine) for the bag emplacement(keep on splitting an item and narrow the addresses down), but i don't know where to put the addresses

Quote:
in offsets.ini
[Bot Addresses International]

PlayerName=12420816
PlayerHP=15695320
PlayerMP=15695328
PlayerRAGE=15695336
PlayerMaxEXPL=15695856
PlayerC_EXPL=15695352
PlayerMaxTechL=19581500
TargetSel=18355948
PetMaxHPL=15809556
PetMaxMPL=15810364
PetC_HPL=15809552
PetC_MPL=15810360
PlayerMaxHPL=15695376
PlayerMaxMPL=15695384
PlayerC_ZealL=15695920
PlayerC_GoldL=15695712
PlayerC_ZenL=15695888
PlayerC_SalaryL=15695720
PlayerC_XcoordL=12364480
PlayerC_YcoordL=12364484
SelectedNameP=18360660
Player_PVPEL=24911556
Double_HitL=12364700
IsSelected_ChiefL=18374888
Selected_TargetedByOtherPlayerL=18389460
IsPlayer_TalkingInChatL=15552224
IsPet_SummonedL=15805724
Selected_3StarL=18375748
Selected_4StarL=18376608
Selected_5StarL=18377468
IsPoseidonWindow_OpenL=17640412
PlayerC_TECHL=19581492

for you what is poseidon window? the shop with the quests? if yes that would be easy to find


by deduction i came to the conclusion it wasn't in there(two seperate .exe, so i went and looked in the .ini, there i found)
Quote:
in .ini
[Crusader_Poseidon Settings]
DoNotTarget_ChiefMob=true
TargetedMob_Name=
BagSlot_IndexNumber=1
the problem is, there doesn't seem to be an addresses needed/given for the bag slot

hope i made myself a bit clearer :p

P.s. i was having a look if i could change gold, get like 50kk with CE, i managed to do it, but was only display value, found out later on that you can't change values cause the info isn't on your pc, but on the servers (logical), so what exactly is on your pc that you can change use(thats useful?)
07/08/2011 08:56 Chopsquad113#1145
Awesome stuff man. Works great!
07/08/2011 17:45 My420Time#1146
Quote:
Originally Posted by groovyhorn View Post
ty mytime, but that's not exactly what I'm asking for :p

I've got the offset(by cheat engine) for the bag emplacement(keep on splitting an item and narrow the addresses down), but i don't know where to put the addresses




for you what is poseidon window? the shop with the quests? if yes that would be easy to find


by deduction i came to the conclusion it wasn't in there(two seperate .exe, so i went and looked in the .ini, there i found)


the problem is, there doesn't seem to be an addresses needed/given for the bag slot

hope i made myself a bit clearer :p

P.s. i was having a look if i could change gold, get like 50kk with CE, i managed to do it, but was only display value, found out later on that you can't change values cause the info isn't on your pc, but on the servers (logical), so what exactly is on your pc that you can change use(thats useful?)
Generally speaking most things are server-sided for obvious reason but things such as running speed and certain timers can be bypassed. IsPoseidonWindow_OpenL most likely refers to the state of the quest window being open... not sure what your trying to do with it.

As far as the bag items they are stored in an array. Which means you should have one address which points to your entire inventory(Its index based so the first item is 0). From my understanding this was never a part of the core bot but part of SuneC's DLL which is why you don't see the offset in your ini file.

SuneC's DLL Source:
[Only registered and activated users can see links. Click Here To Register...]
07/08/2011 18:21 groovyhorn#1147
i Just don't get it,

"the bot tactics anniversary", the other .exe file you download with inatheros bot, uses the bag slots, but there isn't any .ini files for that program, clearly either there has to be a .c/.cpp file, or/and .ini files for it to work

and yet the only thing that doesn't work, for that program is the bag slots so i clearly don't get it.

Is that program using the .cpp the other program?

and if there is a function for bag slots, that should mean that it worked at a time being, and that the offset is just off no?

edit:

found this on csune's site

#ifndef _CBAG_H
#define _CBAG_H

namespace CBag
{
void Init();
unsigned long GetItemIdByIndex(unsigned long index);
void UseItem(unsigned long index);
void UseItemByItemId(unsigned long itemId);

enum BagConstants
{
SlotLocked = 64017, SlotEmpty = 65535
};
};

#endif

is that what i have to change?
and where would i change it in the filess on my computer, cause i havn't seen any function that looks like this one
07/08/2011 18:26 My420Time#1148
Quote:
Originally Posted by groovyhorn View Post
i Just don't get it,

"the bot tactics anniversary", the other .exe file you download with inatheros bot, uses the bag slots, but there isn't any .ini files for that program, clearly either there has to be a .c/.cpp file, or/and .ini files for it to work

and yet the only thing that doesn't work, for that program is the bag slots so i clearly don't get it.

Is that program using the .cpp the other program?

and if there is a function for bag slots, that should mean that it worked at a time being, and that the offset is just off no?
The bot is using a compiled DLL and calling functions inside of said DLL... I gave you a link to the DLL in my last post and explained this. If you want bag items to work you will have to update SuneC's work.
07/08/2011 18:29 groovyhorn#1149
yeah edited my post there :p had a look but can't edit it online, so have to edit it somewhere? i got to have some of her files on my pc right, like the hackboy.cpp etc, but can't find the part i need
07/08/2011 19:53 My420Time#1150
Quote:
Originally Posted by groovyhorn View Post
yeah edited my post there :p had a look but can't edit it online, so have to edit it somewhere? i got to have some of her files on my pc right, like the hackboy.cpp etc, but can't find the part i need
To make Hackboy work again you need to update the signatures in Main.cpp as he isn't using offsets. He went this route to make it easier to update each patch.

Code:
Mem->AddSignature(
		"CBagPtr",
		"Game.exe",
		reinterpret_cast<byte*>("\x80\x7D\x08\x00\x74\x21\x0F\xB6\x05\x89\x1E\x1D\x01\x50\x0F\xB6\x0D\x88\x1E\x1D\x01\x51\x8B\x15\x00\x00\x00\x00\x52\xB9\x00\x00\x00\x00\xE8\x00\x00\x00\x00\xB0\x01\x8B\x4D\xF4\x64\x89\x0D\x00\x00\x00\x00\x59\x5F"),
		"xxxxxxxxxxxxxxxxxxxxxxxx????xx????x????xxxxxxxx????xx",
		+0x1E);

	Mem->AddSignature(
		"GetItemIdByIndexFunction",
		"Game.exe",
		reinterpret_cast<byte*>("\x8D\x45\xF4\x64\xA3\x00\x00\x00\x00\x89\x65\xF0\xC7\x45\x00\x00\x00\x00\x00\x8B\x89\x00\x00\x00\x00\x85\xC9\x75\x17\x66\x33\xC0\x8B\x4D\xF4\x64\x89\x0D\x00\x00\x00\x00\x59\x5F"),
		"xxxxx????xxxxx?????xx????xxxxxxxxxxxxx????xx",
		-0x1D);
You can read some basics about signatures here:
[Only registered and activated users can see links. Click Here To Register...]

07/11/2011 16:02 groovyhorn#1151
Once again, i need to be able to modify on the website, cause the files are not the same on my computer and on the website


website
Quote:
#include "Main.h"

mem::CMemory* Mem = new mem::CMemory();

void HandleCommands()
{
while(pipe->GetCommand())
{
HandleMessages(pipe->GetCommandMessage());
}
}

void MainThread()
{
while(true)
{
HandleCommands();

Sleep(1);
}
}

void Initialize()
{
Mem->AddSignature("Player X",
"Game.exe",
reinterpret_cast<byte*>("\xD9\x1D\x00\x00\x00\x00\ xD9\x81\x00\x00\x00\x00\xD9\x1D\x00\x00\x00\x00\xD 9\xEE"),
"xx????xx????xx????xx",
+2);

Mem->AddSignature("Camera X",
"Game.exe",
reinterpret_cast<unsigned char*>("\x68\x00\x00\x00\x00\xB9\x00\x00\x00\x00\x E8\x00\x00\x00\x00\x84\xC0\x74\x0C\x6A\x07\xB9\x00 \x00\x00\x00\xE8\x00\x00\x00\x00\x8A\x86\xA0\x14\x 00\x00\x3A\xC3"),
"x????x????x????xxxxxxx????x????xxxxxxxx",
+1);
computer
Quote:
#include <windows.h>
#include <direct.h>
#include "resource.h"
#include "HackBoy.h"
#include "functions.h"
#pragma comment(lib,"comctl32.lib")

HWND hWnd;
LRESULT CALLBACK DlgProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam);
//---------------------------------------------------------------------------
INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
{

InitCommonControls(); //So hotkeys and progress bars and such work
CreateExtractResource(hInstance, (LPCSTR) IDR_DLL, dllExtract, dllSize);//Extracts SuneC's HackBoy dll
DialogBox(hInstance, MAKEINTRESOURCE(IDD_DIALOG_MAIN),
hWnd, reinterpret_cast<DLGPROC>(DlgProc));//Creates main bot window
MBA(GetLastError());//If main bot window fails, displays the error code
return FALSE;
}
//---------------------------------------------------------------------------
LRESULT CALLBACK DlgProc(HWND hWndDlg, UINT Msg, WPARAM wParam, LPARAM lParam)
{
switch(Msg)
{

case WM_LBUTTONDOWN:
{
PostMessage(hWndDlg, WM_NCLBUTTONDOWN, HTCAPTION,NULL); //Wherever you click on the bot, you can move it ^^
break;
}


case WM_CLOSE:
ReadProcessMemory(hHandleHolder[ClientNumber], (void*)PlayerName, &BufferFull, 16, NULL); //Get current client's player name
GetCurrentPath(CurrentPath);//Get current directory
strcat(CurrentPath, "\\");
strcat(CurrentPath, (char*)BufferFull);
strcat(CurrentPath, ".ini");//Create CharacterName.ini
WriteSettings(CurrentPath, hWndDlg);//Save settings
GetCurrentPath(dwBuffer);//Get current directory again
strcat(dwBuffer, "\\Offsets.ini");//get offsets file
WriteVariables(dwBuffer, hWndDlg);//write variables
PostQuitMessage(0);//quit program
break;

case WM_INITDIALOG:
debugloghandle = CreateFile("Debug.log",GENERIC_READ | GENERIC_WRITE,1,NULL,CREATE_ALWAYS,FILE_ATTRIBUTE_ NORMAL,NULL);//Create debug file
DebugMessage("Debug.log_Creation - If Error Code is 0 or 183 that means successful");
InitializeTime();//Start time ticker for bot
DebugMessage("Time_Initialized - If Error Code is 0 or 1400 that means successful");
two very different main.cpp files ...

would've been so much easier if it was in c, would be able to understand everything, and modifiy anything i wanted :rtfm:
07/11/2011 17:27 My420Time#1152
Quote:
Originally Posted by groovyhorn View Post
Once again, i need to be able to modify on the website, cause the files are not the same on my computer and on the website


website


computer


two very different main.cpp files ...

would've been so much easier if it was in c, would be able to understand everything, and modifiy anything i wanted :rtfm:
Well you are comparing two completely different files. One is used by the bot and the other is used by hackboy.... You need to do an SVN checkout on hackboy and then recompile it with updated signatures/masks. Once compiled you can use it in the bot itself as a DLL.

--edit--
I personally use TortoiseSVN and have for years as it is a great client.
[Only registered and activated users can see links. Click Here To Register...]
07/12/2011 15:08 groovyhorn#1153
the ollydbg looks just like when you pass by tasm .asm tlink.obj and run td.exe in cmd ... has CS DS and SS
07/13/2011 11:25 systemx#1154
Its not working now :(
07/13/2011 11:54 zysus#1155
must update the bot