Battle of Immortals Bot

06/16/2010 16:55 Muffel2k#586
Quote:
Originally Posted by My420Time View Post
Code:
                    if (LocalGlobals.Char_Crusade_KillCount >= 60)
                    {
                        Thread.Sleep(20000); //wait for thing to complete, sometimes it lags
                        BoI_UseBagSlot(LocalGlobals.Char_Crusade_BagSlot);
                        LocalGlobals.Char_Crusade_KillCount = 0;
                        Thread.Sleep(12000); //wait for dialog
                        BoI_HitButton(Keys.Escape); //gets rid of dialog
                    }

Where shall I add this?

EDIT
nvm ... found it inside "Bot_Session.cs"
06/16/2010 17:23 Jian Wu#587
Hi,
So I search for the exe file thats on BIOBB3\bin\Release\BIOBB3.Exe and I right click BIOBB3.EXe there is no run as admin option. Am I doing something wrong? Do i have to place some of the file somewhere else because my BIOBB3 winrar file is on my desktop. somehow can't find character....

THANKS A LOT!!
06/16/2010 17:26 Jian Wu#588
NVM disregard my last message got the admin hahaha
06/16/2010 17:39 e2x#589
Quoting Decode.

"why counting the kills if you can just send the message to click scroll every few seconds and achieve the same?"
-Because the dialog that pops up after using the scroll requires an "enter" to continue which if i continuously pressed "enter" the bot wouldn't work.
* guess screen recognition works for this, since i search for the DONE buton, then i click enter/esc.. maybe if any memory adress changes when the DONE screen shows up.. this could fix the problem of grouping and not counting kills correctly. brainstorming here..


"dont try to reinvent the weel people"
-i disagree with this statement to an extent because you learn a lot from doing so.
* I agree with you, but i was referring to the fact that there is no need to invent a complicated solution when easier things are available.

"If i could find a way to do that on autoit.."
-Autoit can call win api functions, so anything is possible.
* downside, autoit is not threaded.. emulating threads on autoit3 its just nor reliable.

"so far i made all screen recognition for poseidon/crusade.. working well so far."
-Good job maybe you could release it? As for pixel based bots i never set out to make one, it's not like i have anything against them it's just that i wanted to try and make a memory based bot.
* Not ready for it yet.. just a bunch of functions for screen recognition for objects on the ground, checking for buffs, autoloot feathers, things like that.
All can be done with memory handling im sure, its just i went for the easy way this time.. maybe we can take my ideas and turn them into your way ?
06/16/2010 19:36 richardb13#590
Hmm i tried everything mentioned in this thread and it still wont auto start a new scroll for me.
Dont get any errors while running the bot, hp/mp food and anything else works just fine.
Im running the game on Vista, downloaded en installed Visual C++ 2010 Runtimes, runed program as admin and used 1st bag spot for scrolls and put nr 0 in bot as bag slot, so did i miss anything or could Vista be giving problems
06/16/2010 20:01 pwntatochips#591
BIOBBR3 contained a malware detected by Kaspersky Internet Security 2010
Even better, check the other screen shot of other scanners! (or click the link either or [Only registered and activated users can see links. Click Here To Register...] )
06/16/2010 20:31 SensaCool#592
Code:
void MapAutoRoute(int MapID, float X, float Y)
{
	float X_Map_Coord = X * (float)(25.0/16.0);
	float Y_Map_Coord = Y * (float)(25.0/16.0);

	int Function_Addr = [B]0x006EFD90[/B];//
	__asm
	{
		//magic stuff
		mov eax, [B]0x00E555F8[/B]
		mov ecx, [B]0x00E555F8[/B]
		mov edx, 0x00000000 //huh?
		mov ebx, [B]0x00000078[/B] //changes, but dont know why
							//96 = 150,160
							//AA = 170,160
							//B4 = 180,160
							//96 = 180,150
							//A0 = 180,160
		mov esi, [B]0x010B1048[/B]
		mov edi, [B]0x010B0B18[/B]

		push Y_Map_Coord
		Push X_Map_Coord 	//float Y Coord
		Push MapID			//Map Id
		Call [Function_Addr]
	}
}
Code:
void UseBagItem(int SlotIndex) 
{
	int Function_Addr = [B]0x0056A970[/B];
	__asm
	{
		mov eax, 0x00000000
		mov ecx, [B]0x010C04C0[/B]
		mov edx, [B]0x100BE208[/B] //diff
		mov ebx, SlotIndex	//slot number

		mov esi, [B]0x0A8B42A0[/B]//diff
		mov edi, 0x010C7930

		push 1
		push SlotIndex 	//slot number
		push 0				//Something, but idk what

		call [Function_Addr]
	}
}
Please help me how to find memory address is highlighted above
i don't know how to find the function address.
:confused::confused:
06/16/2010 21:12 zeronoob#593
Quote:
Originally Posted by pwntatochips View Post
BIOBBR3 contained a malware detected by Kaspersky Internet Security 2010
Even better, check the other screen shot of other scanners! (or click the link either or [Only registered and activated users can see links. Click Here To Register...] )
most antivirus programs detect Bots as maleware/virus/trojan
because bots most time interact with windows api and read/write process memory.
so dont care about it until ALL virus programs dectect a virus :D
06/16/2010 23:38 My420Time#594
Quote:
Originally Posted by oOldsqL View Post
i can verify this ^^
Sometimes the Dialog wont disappear, so the bot stops working ^^ But in general, the Crusade Quest option works.

btw, when stack of C-Quests runs out and a new item gets looted, the bot throws out an dialogbox(wrong item or something like this) and sometimes game.exe crashes ;)

ps: i dont like the Food images :P but it is useful, to see your current HP in the BIOBB3 window. maybe this could be included in the official release or you could do some work together ;)
I need to stop being lazy and just find the offset for it. That way we don't have to simulate a key press to dismiss the dialog. Were you running more than 1 character btw? Also, I will put some confirmation into the crusade quests so it doesn't crash. Shouldn't be hard to have it detail whats in that slot.
06/16/2010 23:38 Piecake2442#595
Quote:
Originally Posted by My420Time View Post
Tested mine with a stack of 20 crusade orders and had no issues. Everything works pretty well in this version. Need to fix a few visual things. Attached the bot and a picture.
Thanks so much for the bot, the hp / pots work really well. Only thing I have noticed is the Zone not working to well. I set the range to 10 and it wanders off pretty far and never really comes back to the starting point it seems. Anyone have any ideas for that?

Btw I also get the 2 error messages at the beginning when I click start but if I just hit ok both times the bot still works fine.
06/17/2010 03:19 tskitz#596
can someone please exdaplin how to even use this program? ._.
06/17/2010 05:00 zeronoob#597
Quote:
Originally Posted by My420Time View Post
I need to stop being lazy and just find the offset for it. That way we don't have to simulate a key press to dismiss the dialog. Were you running more than 1 character btw? Also, I will put some confirmation into the crusade quests so it doesn't crash. Shouldn't be hard to have it detail whats in that slot.
my ideas to fix this:
1.)
if the killcount dont increase in X msec (set by the user) press the ESC key again.

2.)
you can also record the X and Y Position of the "Done-Button" for each game window by the user once.
because the dialog is always on the same position if the user dont change the resolution.
then send a mouseclick to the X and Y position like this:
Code:
PostMessage(wnd, WM_MOUSEMOVE , 0 , MakeLParam(DoneX, DoneY));
PostMessage(wnd, WM_LBUTTONDOWN, MK_LBUTTON, MakeLParam(DoneX, DoneY));
PostMessage(wnd, WM_LBUTTONUP , 0 , MakeLParam(DoneX, DoneY));
only until you find the right adress.

i'm only programming in pascal and dont really know C# :D
06/17/2010 05:54 My420Time#598
Updated my source to Decodes test version. Played with the crusade stuff alittle more too.
06/17/2010 11:40 adamwilk#599
hey! i used your bot and everything worked correctly untill i installed Windows 7. Bot worked on Xp but no respondes on 7 ;(. I can run bot but no characters on character list. Any ideas how to fix it? (srry for bad english ;))

edit when i click refresh. i got that
[Only registered and activated users can see links. Click Here To Register...]
06/17/2010 11:41 .Dispersion#600
Wow THX