ogustuce
2019-07-29 09:04:53
Hi guys, i'm trying to make a lazy pvm script to help me. Like a script that will drink pray pots for me when the bar is lower than 50% and stuff like that. I made one with countcolortoletance and a bit of math but its not too stable.
I noticed theres already function for that included like actionbar.getprayerpoints, etc.i cant make it to work with my client tho. I played a bit with the offset and stuff but it doesnt work. Anyone managed to have those functions work without smart?
klamor
2019-07-29 13:29:37
I would run the actionbar.find() command all by itself to see where it's failing. I'm guessing that it can't find the actionbar, because it shouldn't have any issues grabbing percentages, unless the colors have been changed or something.
ogustuce
2019-07-29 14:16:55
Well i tried that but idk where the offsets are from. Does it find them with minimized action bar or expended?
ogustuce
2019-07-29 14:18:19
I changed the color font to match mine (i dont use legacy) and it did find the bar, but doesnt see the petcentages ( says i got 100 pray when its empty)
ogustuce
2019-07-29 15:45:14
actually i figured it out and figured why i couldnt make it work. every color by default works. what you have to change is the offset like _AB_BAR_HP_OFFSET = 84; in the actionbar include. the reason i couldnt make it work at first is when i edited the include in the open simba, i didnt save it (doh!).
so change offset, save include, try your script to see adjustements.
i reccomend saving a backup of the include before you mess around with it :)