TFishingHandler

TFishingHandler is a full color fishing bot that is highly customizable.


TFishingHandler.Setup

procedure TFishingHandler.Setup();

Resets TFishingHandler to the non fishing state. This will:

  • Pause TFishingHandler.Timer;

  • Reset TFishingHandler.CurrentSpot;

  • Set TFishingHandler.IsFishing to False;


TFishingHandler.Reset

procedure TFishingHandler.Reset();

Resets TFishingHandler to the non fishing state. This will:

  • Pause TFishingHandler.Timer;

  • Reset TFishingHandler.CurrentSpot;

  • Set TFishingHandler.IsFishing to False;


TFishingHandler.GetMMShoreLine

function TFishingHandler.GetMMShoreLine(): TPointArray;

Get the shore lines on the minimap.

Example:

ShowOnClient(TFishingHandler.GetMMShoreLine());

TFishingHandler.GetMSShoreLine

function TFishingHandler.GetMSShoreLine(): TPointArray;

Get the shore lines on the mainscreen.

Example:

ShowOnClient(TFishingHandler.GetMSShoreLine());

TFishingHandler.FindWaterDirection

function TFishingHandler.FindWaterDirection(): TRectangle;

Finds the adjacent tile that is directly close to the player that has water.

Example:

ShowOnClient(TFishingHandler.FindWaterDirection(), False);

TFishingHandler.FindSpot

function TFishingHandler.FindSpot(out atpa: T2DPointArray; waitTime: Int32 = 350): Boolean;
function TFishingHandler.FindSpot(): Boolean;  overload;

Find fishing spots on the mainscreen. Optionally return at ATPA of the found spots.

Example:

var
  atpa: T2DPointArray;
begin
  if TFishingHandler.FindSpot(atpa) then //TFishingHandler.FindSpot() returns true/false.
    ShowOnClient(atpa);
end;

TFishingHandler.WaitSpot

function TFishingHandler.WaitSpot(out atpa: T2DPointArray; waitTime: Int32 = 350): Boolean;
function TFishingHandler.WaitSpot(): Boolean;  overload;

Wait for fishing spots on the mainscreen. Optionally return at ATPA of the found spots.

Example:

var
  atpa: T2DPointArray;
begin
  if RSFishingHandler.WaitSpot(atpa) then //TFishingHandler.FindSpot() returns true/false.
    ShowOnClient(atpa);
end;

TFishingHandler.SpotMoved

function TFishingHandler.SpotMoved(out atpa: T2DPointArray): Boolean;
function TFishingHandler.SpotMoved(): Boolean;  overload;

Check if TFishingHandler.CurrentSpot moved.

Example:

WriteLn TFishingHandler.SpotMoved();

TFishingHandler._StoppedFishing

function TFishingHandler._StoppedFishing(): Boolean;

Internal helper method to check for quick things that guarantee us we are not fishing anymore.


TFishingHandler.CheckFishing

function TFishingHandler.CheckFishing(out atpa: T2DPointArray): Boolean;
function TFishingHandler.CheckFishing(): Boolean;  overload;

Check if we are still fishing. This function could give false positives but it’s extremely unlikely. To determine if we are still fishing it does the following:

  • Check if TFishingHandler.CurrentSpot (which is the last spot we clicked) has moved.

  • Check if the inventory is full.

  • Check if we leveled up.

  • Check if TFishingHandler.Timer has reached it’s end. The time lasts anywhere between 40 seconds and 70 seconds randomly and it’s reset everytime this is called and we earned XP.

Example:

WriteLn TFishingHandler.CheckFishing();

TFishingHandler.FacingWater

function TFishingHandler.FacingWater(): Boolean;

Check if we have water directly north, west, south or east of us.

Example:

WriteLn TFishingHandler.FacingWater();

TFishingHandler.ClickSpot

function TFishingHandler.ClickSpot(out atpa: T2DPointArray): Boolean;
function TFishingHandler.ClickSpot(): Boolean;  overload;

Click the closest fishing spot to the player and switches TFishingHandler to “IsFishing”. We can check if we are still fishing with TFishingHandler.CheckFishing().

Example:

TFishingHandler.ClickSpot();