SRL Archive - OSR Help

Colour choose


MrHooky

2013-09-17 08:14:53

I've read that i must post only MY scripts, but this is really simple thing that i can't understand…

How do i change npc to kill color? Can't remember who's script lol.

  FindColorsSpiralTolerance(204, 188, TPA, 8942188, 108, 114, 136, 140, 143); // Enter the Color and Tolerance Here at the Right place. 

I need to put this colour :
6379341 - RGB:77,87,97

Hoodz

2013-09-17 08:27:57

From: MrHooky
I've read that i must post only MY scripts, but this is really simple thing that i can't understand…

How do i change npc to kill color? Can't remember who's script lol.

  FindColorsSpiralTolerance(204, 188, TPA, 8942188, 108, 114, 136, 140, 143); // Enter the Color and Tolerance Here at the Right place. 

I need to put this colour :
6379341 - RGB:77,87,97

why dont you use aca?

riwu

2013-09-17 08:46:14

The 4th argument is the color, just change that.
You can type the method name to the function list / use code hint to see the parameters.

b0bzilla

2013-09-17 09:07:54

Where you installed simba there is a "documentation" folder with a PDF that tells you what the function parameters are.

function FindColorsSpiralTolerance(x, y: Integer; var pts: TPointArray; col, x1, y1, x2, y2, tol: Integer)

In your example the # 8942188 is the color. Replace with your color.