SRL Archive - OSR Help

Methods to detect fishing spot swirls ?


NickMystre

2011-12-29 14:56:21

** Please let me know if I have erred in re-posting this here **
** I previously posted this question in SRL Public Forums/Help **

I know there are a number of fishing scripts out there (and probably very good ones), but at this stage my very limited knowledge prevents me from learning as I am swamped by everything at the moment.

If you have a moment, please can you help me (doesn't have to be coded examples) identify what are the available ways of identifying the fishing spots.

Does one look for-
  • a unique single pixel color
  • a bitmap
  • a dtm
  • a combination of these
  • other methods

Does one have to find all pixels that change (and their colors) that make up the fishing spot swirl to reliably ID them or just a few of them ?

On a separate note, especially for folk such as myself, (and here I would be prepared to compile this) would it be useful to generate a tutorial that covers briefly how to do all needed tasks in a script ? eg Find a ladder, click a sink or NPC, locate an object in your bank / inventory. Most if not all of these exist already, but compiling these into one learning doc could be very useful, I think.

Thanks!

Brandon

2011-12-29 15:13:34

Search for auto colour aid and learn how to use it.. it'll help you find almost unique colours or at least tolerances and speeds that will make them pretty unique..


Procedure FindFishSpot;
var
X, Y, CTS: Integer;
TPA: TPointArray;
begin
//Find fishing symbol here.. if you do.. walk as close to it as possible.. then.. do the following..
CTS:= GetColorToleranceSpeed;
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0.38, 1.14);

if FindColorsSpiralTolerance(X, Y, TPA, 11247769, MSX1, MSY1, MSX2, MSY2, 5) then
if(IsUptextMultiCustom(['fish', 'cage', 'spot', 'harpoon'])) then
MMouse(X, Y, 0, 0);

SetColorSpeed2Modifiers(0.2, 0.2);
ColorToleranceSpeed(CTS);
end;

NickMystre

2011-12-29 23:41:29

From: ggzz
Search for auto colour aid and learn how to use it.. it'll help you find almost unique colours or at least tolerances and speeds that will make them pretty unique..


@ggzz: Thank you for the advice. I will definitely look into that. :thumbsup: