yes I said F1 Food HP F2 MP FOOD and HP / MP Threshold 2700.
Sorta, I'm afk 95% of the timeQuote:
did you fill in the correct keys and at which hp they should trigger?
BTW:0xDEC0DE, do you play the game yourself?
Aight will doQuote:
You might should mention in your first post where the program is located, or make a separate .rar with the program only =p
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.Quote:
Going to adjust way you check for health to make it more prioritised
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.Quote:
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.
Maybe you could try removing the simulated CD on the food so change:Quote:
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
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;
}
if (Char_Current_Hp < LocalGlobals.Char_HpFoodThresh1)
{
BoI_HitButton(LocalGlobals.Key_Char_HpFoodThresh1);
}
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...Quote:
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!