lisa wrote:Pretty much first thing it does is check "if target == nil", target is the second argument, funny thing is target is never nil, ever. So all of the checks are pretty much stuffed from the get go.
I'm not sure I follow. "if target == nil" just makes sure the target variable has a value. The bot may always use it but it was made backward compatible by checking if it's nil and if so, create it.
This basically happens if you don't have anything targeted. The only difference I can see between doing the code in that "if" statement and not doing the code in that "if" statement is the Id and Type get changed from -1 to 0 (the purpose of the 2 values is -1 means it is newly created and not unupdated and 0 means it's updated but has no valid value or it's not a valid object anymore). I can't see anything in the code that would perform differently if those values change.
But if you were to check the target you wouldn't use race. Address is probably the best to check. And you could probably check if Id or Type changing actually causes it to work by skipping the contents of that "if" statement and just changing Id and/or Type to 0 and seeing if that still works. Eg.
Code: Select all
if target == nil or target.Address == 0 then
target.Id = 0
target.Type = 0
end
if that works then we'll have to go through the code with a more fine toothed comb to figure out why.
lisa wrote:Party wide buffs are usually geneneric when it comes to benefit to classes, they add hp or defence or magic resistance, not sure there is any that specifically benefit one type of class.
You're probably right. I think I was thinking of a "friendly" buff that helped physical attackers. Don't remember what it's called though.
lisa wrote:Now the painful part, which skills are party wide skills???
I have heard of champion skills but never played a champ so no idea there, I know of the priest and mage generic ones but I am just going to assume there is quite a few I don't know.
I dusted off an old Excel doc I have that has all the offsets and their values for me to do comparisons. Looks like offset 0xA4 is 2 for all party skills. If that turns out to be true I could rerun the program that updates this list and give you a list of all the party skills.
lisa wrote:Biggest problem I see is the P/K elite which makes grace of life to be party wide instead of target specific, so it has range set to 200. There is nothing in bot to handle it being a party wide skill, it just uses it as if it is a target specific skill and range is still 200
Do you mean it also casts on party members that are no in memory range? Can the bot check if a party member not in range has a buff?