Battle of Immortals Bot

06/05/2010 19:27 Biber155#421
yes I said F1 Food HP F2 MP FOOD and HP / MP Threshold 2700.
06/05/2010 19:50 hello1337#422
Quote:
Originally Posted by Biber155 View Post
yes I said F1 Food HP F2 MP FOOD and HP / MP Threshold 2700.
and the bot works fine othervise?
06/05/2010 20:13 Biber155#423
yes only dont use food
06/05/2010 21:35 Huseby#424
You might should mention in your first post where the program is located, or make a separate .rar with the program only =p
06/05/2010 21:35 0xDEC0DE#425
Quote:
Originally Posted by hello1337 View Post
did you fill in the correct keys and at which hp they should trigger?

BTW:0xDEC0DE, do you play the game yourself?
Sorta, I'm afk 95% of the time

Quote:
Originally Posted by Huseby View Post
You might should mention in your first post where the program is located, or make a separate .rar with the program only =p
Aight will do

Edit: Ok, edited it.
06/05/2010 23:39 coryneto#426
i doest seem to work at all, i cant see my character name on the side bar where is supposed to be.... any tip how i can make it work , thanks in advance....
06/05/2010 23:52 coryneto#427
nevermind it works great , thanks a lot....
06/05/2010 23:52 acid3mon#428
Well, as i don't have too much time to play the game, i'm going to start using this bot. Is it compatible with Windows 7? Do i need to download something else to the bot work?

Thanks (:
06/06/2010 00:37 SlayRAWR#429
Quote:
Originally Posted by Siion View Post
Going to adjust way you check for health to make it more prioritised
This is definitely what's needed. I've been looking over your code as well however, I'm no way near as talented as any of you. I've been doing some testing and yea the hp and mp potting is buggy. Wether that be the time between checking is too long, or BOI uses more than 1 memory location for the hp and mp. The latter doesn't seem to be the case because dc at #hp works like a charm.
06/06/2010 01:04 0xDEC0DE#430
Quote:
Originally Posted by SlayRAWR View Post
This is definitely what's needed. I've been looking over your code as well however, I'm no way near as talented as any of you. I've been doing some testing and yea the hp and mp potting is buggy. Wether that be the time between checking is too long, or BOI uses more than 1 memory location for the hp and mp. The latter doesn't seem to be the case because dc at #hp works like a charm.
Hp and mana checks don't really needs to be prioritized, they are checked every 500ms and if necessary the key is posted to the keyThread which takes about 500ms to send it to the program. I think that there is differences between how BOI is handling HP and Mana between either different Comps or different classes because it works fine for me. However i guess it could be that the keyThread isn't working right, maybe a latency issue or something.
You're free to change it how you like, if you find a difference or something tell me so i can modify the program accordingly. Also I think I'll be releasing V3 tonight if it passes this debuging session...
06/06/2010 01:13 SlayRAWR#431
That makes a lot of sense thanks as I was wondering why the threshold is say 3000 but it only kicks in at say 2800. Your logic is sound my friend however there does seem to be a bug checking the ticks as when it does not satisfy the tick condition once, for me anyway, it will never pot again in that session. I am just assuming that for some reason it doesn't record properly when it potted last, because the hp/mp check works fine.

EDIT: Sorry I forgot to address what you think the issues are. They keyThread is working fine as it attacks and everything and I don't think its a problem with hp/mp since the dc works fine. To be exact, the problem I am encountering is that it pots, then at around maybe 20-30 mins in potting just stops, it goes past threshold 1 and 2 and mp sits on 30 till the hp finally drops then the dc kicks in
06/06/2010 01:27 0xDEC0DE#432
Quote:
Originally Posted by SlayRAWR View Post
That makes a lot of sense thanks as I was wondering why the threshold is say 3000 but it only kicks in at say 2800. Your logic is sound my friend however there does seem to be a bug checking the ticks as when it does not satisfy the tick condition once, for me anyway, it will never pot again in that session. I am just assuming that for some reason it doesn't record properly when it potted last, because the hp/mp check works fine.

EDIT: Sorry I forgot to address what you think the issues are. They keyThread is working fine as it attacks and everything and I don't think its a problem with hp/mp since the dc works fine. To be exact, the problem I am encountering is that it pots, then at around maybe 20-30 mins in potting just stops, it goes past threshold 1 and 2 and mp sits on 30 till the hp finally drops then the dc kicks in
Maybe you could try removing the simulated CD on the food so change:
Code:
if (Char_Current_Hp < LocalGlobals.Char_HpFoodThresh1 && TimeSpan.FromTicks(DateTime.Now.Ticks - Start_HpFoodThresh1.Ticks).Ticks > (31000 * TimeSpan.TicksPerMillisecond))
{
BoI_HitButton(LocalGlobals.Key_Char_HpFoodThresh1);
Start_HpFoodThresh1 = DateTime.Now;
}
to something like this:
Code:
if (Char_Current_Hp < LocalGlobals.Char_HpFoodThresh1)
{
BoI_HitButton(LocalGlobals.Key_Char_HpFoodThresh1);
}
Btw: the only reason the Food CD was implemented was to prevent the spamming on the key.

EDIT: I guess the problem could be with the timer and maybe something to do with a hour change.
06/06/2010 01:33 SlayRAWR#433
Yea I gathered that, but like you I would rather it not spam keys and clog up the keyThread. I'll do some more testing and let you know if I find anything significant. Looking forward to V3 as well! Keep up the great work and thanks!
06/06/2010 01:43 hempboyrpo#434
Awesome bot just need some repairs on pot system.
ty boy.
06/06/2010 01:44 0xDEC0DE#435
Quote:
Originally Posted by SlayRAWR View Post
Yea I gathered that, but like you I would rather it not spam keys and clog up the keyThread. I'll do some more testing and let you know if I find anything significant. Looking forward to V3 as well! Keep up the great work and thanks!
Well i don't really know if it'll clog up the key thread i just kinda put it in place just in-case. As for V3, ima let it run through the hour change and see if it stops potting. I also need to test if it still works on two clients... which would be a whole new can of worms if it doesn't work the first time (which it probably won't) but I'll stop complaining...
Anyways np, and thanks for the input

P.S. Don't EVER declare a buffer as a char array, it does weird things and takes a long time to debug.

Edit: Didn't pass debug session, so no v3 tonight