SRL Archive - OSR Help

Any ideas how to go about doing this?


iCURiP

2012-01-04 08:13:33

Does anyone have any ideas as to how i could get the % full of this bar?
Its also very transparent.


Its the activity bar in soul wars, I'm currently in the process of making a soul wars script, and I want to add a feature where if you go below 'x'% activity then it will do a backup option, so for example your primary option is kill pyre-fiends, if your activity bar went below 30% then it would go to the centre and start looting bones.

Thanks, iCURiP.

Shuttleu

2012-01-04 08:26:07

you could do a check for redish colours

so do a count color with a tolerance of something like 50

then divide the length with how many pixels there would be if it was full

~shut

iCURiP

2012-01-04 08:30:16

From: Shuttleu
you could do a check for redish colours

so do a count color with a tolerance of something like 50

then divide the length with how many pixels there would be if it was full

~shut


Very good idea. Thank you.