SRL Archive - First Scripts

[In Progress] Shilo Village Fly Fisher


brandon8081

2012-02-21 21:51:29

Over the next couple weeks I will be developing a Shilo Village fly fisher. This will be my first script I am writing, I've watched tutorials and I think I am ready. If anyone has some tips, please let me know.

RISK

2012-02-21 22:02:52

Read Flight's tutorial on pixel shift detection. It'll help you a lot with detecting if you are fishing or not. Then read up on how to use SPS and such to make it easier for you to start out.

brandon8081

2012-02-21 22:05:31

From: RISK
Read Flight's tutorial on pixel shift detection. It'll help you a lot with detecting if you are fishing or not. Then read up on how to use SPS and such to make it easier for you to start out.


Thanks for the advice, I will start reading up.

Flight

2012-02-21 22:27:10

Heya, best of luck to ya bud. :) I've found pixelshift won't work so well for detecting something low-scale like pole-fishing. In my newest Barb Fly-Fisher I made a simple way for detecting fishing by looking for our player's pole in a very specific spot.

Here's mine for detecting pole-fishing if the camera is west: (west only)

Function IsPoleFishing: Boolean;
var
CTS,i: Integer;
TPA: TPointArray;
PColors,Tols: TIntegerArray;
HMods,SMods: Array of Extended; //An array of extended intergers, like a boss...
begin
CTS := GetColorToleranceSpeed;

PColors := [727590, 727848, 793897, 793897];
HMods := [0.26, 0.21, 0.15, 0.16];
SMods := [0.50, 1.39, 0.47, 0.78];
Tols := [2, 2, 3, 5];

for i := 0 to High(PColors) do
begin
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(HMods[i], SMods[i]);
FindColorsSpiralTolerance(257, 200, TPA, PColors[i], 250, 190, 273, 225, Tols[i]);
ColorToleranceSpeed(CTS);
Result := (Length(TPA) > 0);

if Result then Exit;

end;

end;

brandon8081

2012-02-21 23:01:45

Thanks for everything! I have been at this for an hour and I am getting stuck a lot. Flight, I have no idea how you put scripts together so fast.

drfreshtacular

2012-02-22 02:35:55

I just put out my first script as well :). Let me know if you'd like some help as Im currently just sitting around running Ghouler haha

brandon8081

2012-02-22 03:40:35

yeah dude, I need to know where you started. I'm having an unbelievably hard time.