SRL Archive - SRL Archives

FindScapeRune;


mat_de_b

2007-10-16 12:57:14

If you find you have a ScapeRune account please just run this before completing it and tell me if it worked…

{*******************************************************************************
function FindScapeRune: Boolean;
by: mat_de_b
Description: Checks for ScapeRune colors and the balloon animal.
if found switches player and sets the other to false.
*******************************************************************************}

function FindScapeRune: Boolean;
var Sx,Sy : integer;
begin
if(CountColorTolerance(8663688,MSX1,MSY1,MSX2,MSY2,25) > 200)then
begin
if(CountColorTolerance(4211524,594,27,688,125,25) > 3000 )then
begin
if(FindObjCustom(Sx,Sy,['Pop','alloon','nimal'],[8663688],25))then
begin
WriteLn('******** FOUND SCAPERUNE ********');
TakeScreen('ScapeRune');
Players[CurrentPlayer].Rand := 'ScapeRune';
Result := True;
LogOut;
end;
end;
end;
end;

Its above, worth including in an anti random reel? I think so :D give me feedback like if it worked etc…

Mat

EDIT: Fixed! Rikjess showed me my stupidity :D so i fixed it

n3ss3s

2007-10-16 13:35:39

Goodjob, but I think you should try detecting it by minimap, because that ones moves the mouse to the balloon animals, though thats nothing big but still…

GJ!

mat_de_b

2007-10-16 14:00:47

no, it checks for the pink color, then the grey minimap color, and then the balloon

Rikje

2007-10-16 14:00:59

to questions:
-why does it repeat until false?
-and, don't let it change player. because that will mass up people there script ;)

mat_de_b

2007-10-16 14:09:34

Crap!, sorry repeat was for testing, what do i do instead of Nexty player than?

Rikje

2007-10-16 14:11:35

ill explane:
when it logs into the next player it will just continue the script.
but if the player goes false while being in the mines. and the next player in the bank you have a problem :p.

just use : LogOut;
most poeple have above every procedure / function
if not logged in the exit :p

mat_de_b

2007-10-16 14:12:54

ahhh righty, good call :D thanks for the help

Tim0suprem0

2007-10-16 19:06:56

Now can you make it solve it please :)?

Macrosoft

2007-10-16 19:07:09

nice, i like the idea

shaunthasheep

2007-10-16 20:26:31

From: mat_de_b
Its above, worth including in an anti random reel?


Most randoms are going to be detected by game tabs and sound locations in the next SRL :), even scaperune (h)