SRL Archive - SRL Bugs

Cap'n Arnav InRandom Fix


Coh3n

2010-02-09 11:54:58

The current one checks for the music playing, but the song changes every time RS is loaded (it may rotate between 4 or five songs, I'm not 100% sure). I've tested this after reloading multiple times.

{*******************************************************************************
function arnav_InRandom: Boolean;
by: Coh3n
Description: Returns true if in the Cap'n Arnav random.
*******************************************************************************}
function arnav_InRandom: Boolean;
begin
if (InRange(CountDots('npc'), 4, 5)) then // Sometimes a shark goes off the screen
if (CountColorTolerance(10010053, MMX1, MMY1, MMX2, MMY2, 25) > 300) then // The island color
Result := True;
end;
I apologize if this has already been posted somewhere (like a lot of my suggestions in the past), but I did search around.

Coh3n

Wanted

2010-02-09 14:04:00

InRange(CountDots('npc'), 4, 5)

Hmmm, I'll look at it when I get home.

Coh3n

2010-02-09 14:05:11

From: IceFire908
InRange(CountDots('npc'), 4, 5)

Hmmm, I'll look at it when I get home.

Fixed. Also, congrats on getting Dev, whenever that happened. :)

sylvawarrior

2010-06-06 23:16:02

I got the random just now, it failed to detect. It's still in the random. Want account?

bbri06

2010-06-07 00:22:31

It's amazing how no one checks the SRL Randoms bug reporting thread.

Coh3n

2010-06-07 11:16:07

From: bbri06
It's amazing how no one checks the SRL Randoms bug reporting thread.

This time of year is really bad for most of the devs as most of us have exams. Don't worry though, they'll be over soon. :)

bbri06

2010-06-07 15:55:17

That's understandable. I hope you didn't take offense to my comment I was frustrated, hungover, and just generally in a bad mood yesterday. Sorry about the rude phrasing.