SRL Archive - General Botting Help

Issue with "SetColorSpeed2Modifiers"


reu

2014-03-25 00:49:33

This is for an RSPS and I'm now able to include SRL-6 (thanks Foundry! :))

So sadly, I was hoping for my first post to be this auto-fighter (but only for a single monster, I've only been coding for 3 days now lol), now I have to look like a retard posting what's probably a really simple issue :\

I'm having an issue with setting my CTS2 modifiers.

I've used TPA's before and I've never had this issue and have no idea how to fix it, nor do I see a logical reason why I'm getting it!

Exception in Script: Unknown declaration "SetColorSpeed2Modifiers" at line 119, column 3

function Fighting: boolean;

var
tmpCTS, i, r, counter: integer;
IceQueenTPA, HPRed, HPBlue: TPointArray;
IceQueenATPA: T2DPointArray;
IceQueenBox: TBox;

begin
tmpCTS := GetToleranceSpeed;
SetColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0.04, 0.55);

if FindColorsTolerance(IceQueenTPA, 9654091, 5, 5, 510, 330, 27) then
begin
IceQueenATPA := SplitTPAEx(IceQueenTPA, 20, 20);
SortATPASize(IceQueenTPA, true);
for i := 0 to high(IceQueenATPA) do
begin
IceQueenBox := GetTPABounds(IceQueenATPA[i]);
SetColorSpeed2Modifiers(0.10, 0.44);
if FindColorsTolerance(FullIQ, 11499112, IceQueenBox.x1, IceQueenBox.y1, IceQueenBox.x2, IceQueenBox.y2, 38) then
WriteLn('Found it! Continue coding');
result := True;
break;
if i = high(IceQueenATPA) then
begin
WriteLn('you done did fuck up somewhere, check your colors!');
TerminateScript;
end;
end;
SetColorToleranceSpeed(tmpCTS);
SetColorSpeed2Modifiers(0.02, 0.02);
end;
end;

Obviously this function isn't finished yet, but I have a bad habit of testing things as I go…

Resolved: Dropped a nuke in the gopher hole by just assigning two extended variables for my h/sMods and using "GetColorSpeed2Modifiers" -.-

Foundry

2014-03-25 00:57:09

If you are using SRL-6 then the new (and easier) way to do that can be found here in the documentation. Here is an example:

nvm

reu

2014-03-25 00:59:40

Oops, should have mentioned this was for an RSPS :\ sorry guys (and yes, I'm aware that HPRed/Blue are not used and I will get errors), Also, SRL-6 constantly gets errors whenever I try to include it (I have tried updating, overriding updates, downloading the SRL include and putting it in it's correct spot… I just gave up) so I tend to just steer away from it and make my own functions (:

Foundry

2014-03-25 01:09:52

From: reu
Oops, should have mentioned this was for an RSPS :\ sorry guys (and yes, I'm aware that HPRed/Blue are not used and I will get errors), Also, SRL-6 constantly gets errors whenever I try to include it (I have tried updating, overriding updates, downloading the SRL include and putting it in it's correct spot… I just gave up) so I tend to just steer away from it and make my own functions (:


Here, this should compile fine. Just extract to your includes folder and add {$include srl6\srl-6.simba} to the top.

[ATTACH]23122[/ATTACH]

E: To clarify that is a 2 or 3 month old version of SRL6 with no RS related stuff in it.

reu

2014-03-25 01:19:13

From: Foundry
Here, this should compile fine. Just extract to your includes folder and add {$include srl6\srl-6.simba} to the top.

[ATTACH]23122[/ATTACH]

E: To clarify that is a 2 or 3 month old version of SRL6 with no RS related stuff in it.


Thanks man! (: fixxed that issue (no idea why the newest version wasn't working when I did that)