Battle of Immortals Bot

05/12/2010 23:13 0xDEC0DE#1
Note From Arco: This will not work without modifications! This was intended for patch 527!

**Current version should work for v527**
Version 3 this is my last planned version. Source code is similar but with some stuff added. I don't plan to update this any further so enjoy it while ya got it because if somebody doesn't update this next patch then it'll stop working. Assuming someone does update this and that they are nice enough to share it with you then you better thank their ass.

Features:
-AutoFood: when hp or mana is low
-AutoPot: when hp or mana is low
-AutoDC: when hp is low
-Attack: It attacks and with skills
-Timed Button: Hits button every so often
-Target Filter: only attack what you want it to
-Zone: Stays within a certain zone
-Statistics: simple statistics of predicted time to level
-Works with BOI screen minimized
-Supports multiple accounts, you just need to select a different name on the list and set up the options for that character.
-Crusade Quest ~might be buggy

Theory:
-The program works by using a Named Pipe Server for IPC between BIOBB3 (a C# program, which acts as the server) and an injected Dll (coded in C++ and acts as the client(s)) which then in-turn calls in-game functions in response from custom made messages sent across the Named Pipe.
The current messages format is as follows; (each being 4 bytes by default)
________________________________________________
Unique ID | Message Type | Parameter 1| Parameter 2|...

The size of a message can be up to 64 bytes, although that can be adjusted.

BIOBB3 reads game memory through readprocessmemory and according to the programmed logic it responds by either change memory address values, calling in-game functions or most commonly by using SendMessage to simulate user input.

Comments:
-Made by a person who plays berserk, it may work for other i just haven't tried
-NOTE: Doesn't Loot... idk if it ever will, never know
-NOTE: almost all of the options can be left blank if you don't need them, just mess around with it and find out what works for you
-NOTE: you probably need to run this with "run as admin"
-Requires: .Net 4.0 Framework and Microsoft visual c++ 2010 runtime

Suggestion:
-When using the bot goto a place with non-red named monsters with a decent density.

[Only registered and activated users can see links. Click Here To Register...]

Options Explained:
Current Character: The Character which you are modifying the bot settings for, also which process the bot will run on.

Character Health and Mana
Hp To DC: The maximum Hp before the bot ends the process, basically a disconnect button.
Hp Threshold: The maximum Hp before the bot hits p Food Key 1
Mp Threshold: The maximum Hp before the bot hits p Food Key 1
Hp Food Key 1: The action bar key that Hp food 1 is on
Hp Food Key 2: The action bar key that Hp food 2 is on
Hp Pot Key: The action bar key that Hp pot is on
Mp Food Key 1: The action bar key that Mp food 1 is on
Mp Food Key 2: The action bar key that Mp food 2 is on
Mp Pot Key: The action bar key that Mp pot is on

Attacking Skills
Normal Attack: The action bar key your normal attack is on
Skill Key 1-4: The action bar key your desired skill is on
Wait (ms): The amount of time (in miliseconds) to wait after engaging in a battle before using this skill
CD (ms): The Cool Down of this skill (in milliseconds), this prevents spamming of buttons, also i would suggest adding some extra time to the actual cool down to compensate for lag

Timed Buttons
Key 1-4: The desired key of timed button 1-4
Miliseconds: The amount of time to wait to hit the timed button

Zone
Center X: The X coordinate of where you want to stay around
Center Y: The Y coordinate of where you want to stay around
Range X: If your character's current X is outside of (Center X)+-(Range X) then he'll head back into it. If left blank you roam freely
Range Y: If your character's current Y is outside of (Center Y)+-(Range Y) then he'll head back into it. If left blank you roam freely
Diamond: When the bot goes out of range and heads back it'll start to attack once its back into range
Point: When the bot goes out of range and heads back it'll start to attack once it gets to the exact center of the zone.

Target Filter
Target Names: It won't attack any monster that don't match the inputed text. If nothing is in them then the bot attacks all targets.
Don't Attack Lords: The bot won't attack lords.
Don't Attack Already Tagged: The bot won't attack monsters that are already being attacked by someone else.

Pet Health and Mana
Pet Pot Key: The action bar key that pet pots is located on
Hp Threshold: The bot will hit Pet Pot key when your pet's Hp is below this
Mp Threshhold: The bot will hit Pet Pot key when your pet's mana is below this

Bot Timeout
Close BoI After X Miliseconds: The bot will end the BoI process after this many seconds

Crusade Order Quest
Bag Slot: The Slot Number of the scroll, if your not smart enough to read this then your going to put a number higher than it needs to be, its index based meaning that the first bag slot is 0 the second is 1, third is 2 and so on.
Target Name Exact: The exact target name, Case sensitive... just copy from the target name filter using the "this" button


Download
Quote:
Originally Posted by Huseby View Post
The program is located at BIOBB2\bin\Release\BIOBB2.Exe, remeber to run as admin if your on vista or win7 0.o
The rest of the files are the source code.
05/13/2010 04:20 MrCollings#2
Sweet thanks!! Anyone else try this out?
05/13/2010 06:06 Poisony#3
Hey seriously man, thank you a lot!!

Please continue with this bot! Make it more advanced etc..

I will help you with anything i can! You will be sooo famous if you keep working on this bot! Its totalt awesome!

Add my msn/mail: [Only registered and activated users can see links. Click Here To Register...]

You are AWESOME !

/ Garry
05/13/2010 08:16 0xDEC0DE#4
zaaa
05/13/2010 08:47 revolution263#5
Yo dude, this sounds like a great bot. I downloaded it, set everything up, hit start, and my game instantly closed. how did you you manage to get it working?
05/13/2010 09:41 stryterken#6
tested it, doesnt seem to work at all
05/13/2010 09:51 stryterken#7
nvm!!! just tested again and is working great thanks!
05/13/2010 09:59 erhome00#8
thanks man
05/13/2010 12:35 revolution263#9
why does mine automatically close my game client!?! lol
05/13/2010 13:46 Mastershouter#10
looks fine so far gonna test it out later, a loot function would be good for the future.
05/13/2010 15:27 jekajack#11
TNX MAN work very good bot
05/13/2010 15:47 12gaugee#12
works like a charm, a loot function would be handy tough :)

thanks alot good work.
05/13/2010 16:05 0xDEC0DE#13
well the thing about loot is that there isn't any in-game loot key so without either figuring out how to send mouse messages without the client on screen or by injecting a dll aswell as figuring out if there are items on screen and what are there locations it isn't going to happen. But with a pixel based but i suppose it would be possible. But like i said before i'll update as i figure it out.
Bug Overnight botting didn't work, seems to be a problem with the bots grab monster loop, i will look into this later today when i have a chance
05/13/2010 16:34 Poisony#14
Hey man.

I have suggestions and tips for you.

1. The Timed Button does not work.
2. Add more Timed Button.
3. Add Feed Pet Buttons etc..
4. Try to make some kind of loot-system.
5. Add more spells/skills buttons.
6. Make miliseconds into seconds instead :P

This is just some suggestion on what to make better :)

You are great man!

/ Garry
05/13/2010 18:12 Noyze#15
just use the heavenfeather for autoloot in the salaray shop !