SRL Archive - Help and Support

PrisonPete


Dynamite

2010-01-25 15:29:29

How can I analyze what Animal is on the screen when you pull the lever?

Cheers

Wanted

2010-01-25 16:06:03

Pete_AnalyzeAnimal(Animal, RunescapeHDC);

Not sure how well this works, Pete_FindAnimal works great though. It's nearly impossible to develop test the the animal screen window since you only have 14 minutes from the time when you get the random to when it ends. If you do get it, make sure to take lots of screen shots of all the animals at all angles. in true32bit color and save them as 32bit in photoshop as bmps with those options. The best way would to either look at the source for Pete_FindAnimal and possibly fix the colors if they aren't working already, I'm pretty sure it scans the object for a little while while it rotates and finds the averages color count/density of colors of the box it's in and compares them with InRange using record arrays of the min/max for that animal.

Really though, I made prisonpete.scar, and it works fine… it might not be fully functional but thats something that would only require 'fixes' not an entire routine rewrite.

Dynamite

2010-01-25 16:09:27

Yeh I just got told it works, BUT, I would like to see how my method compares :)

Cheers for your help :)

Sir R. M8gic1an

2010-01-25 16:23:26

have a look at the pluggin? Duh.

~RM

Iroki

2010-01-25 16:48:14

Yeah i was thinking about rewriting my plugin but i dont have time… i made simple soulution:
1 download attached file blah blah blah…
2 Pete_analyzeanimal2'll return string, if you guys wanna to halp me if any of yours acc is in random run program with new function, post results here and tell me what animal was on screen, i mean somethink like: dog - Colored …. Max… Min … :P

Colored …. Max… Min …'ll be result of function :P

~ Iroki