this tut is awesome, + rep
Not sure if anyone looks at this but how many significant figures do you keep on the Satmod's and huemod's? My numbers have like 20 digits :S I just can't seem to get this to work *sigh* I'll keep at it.
I'm trying so hard to understand these I think I overcomplicate things though ); but I'll keep trying I guess I can't visualize what TPA's are used for like on runescape... Are TPA's like those blue boxes you see around npc's when u use narcles fast fighter?
My Soul Wars Scipt Proggress:[100%....]Probably won't release though I like it for myself
No that's on screen Debugging.
TPAs from my understanding find a colour set with tolerances created from the TPA Tool.
For example this is my findyew function using tpa.
See where is says SetColorSpeed2Modifiers(0.14, 0.043);. The numbers are calculated using the tool. They can only be used for the yews as thats where i picked the colour from.
FindColorsSpiralTolerance(MSCX, MSCY, TPA, 3819340, MSX1, MSY1, MSX2, MSY2,6); Is the colour finding part. As the name says it will search for that colour spiraling out from the middle with a tolerance of 6. This number is found using the tool also.
MMouse(x, y, 0, 0);
If WaitUpTextMulti(['ew', 'yew'], 250) then
This part is pretty straight forward.
GetMousePos(x, y); // Records the x, y position of where it found the colour and uptext.
Break; // Ends the colour searching part.
I use this functions like this.
ISimba Code:If FindYew(x ,y) then
begin
Mouse(x, y, 0, 0, True);
Simba Code:function FindYew(var x, y: Integer) :Boolean;
var
CTS, I: Integer;
TPA: TPointArray;
ATPA: Array of TPointArray;
begin
If Not LoggedIn then exit;
Antirandoms;
CTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0.14, 0.043);
FindColorsSpiralTolerance(MSCX, MSCY, TPA, 3819340, MSX1, MSY1, MSX2, MSY2,6);
aTPA := TPAToATPAEx(TPA, 20, 20);
For I := 0 to High(ATPA) do
begin
MiddleTPAEx(ATPA[i], x, y);
MMouse(x, y, 0, 0);
If WaitUpTextMulti(['ew', 'yew'], 250) then
begin
Result := True;
GetMousePos(x, y);
Break;
end;
end;
end;
Ohhhhhhhhhh gotcha it really is that simple! thanks man +rep
My Soul Wars Scipt Proggress:[100%....]Probably won't release though I like it for myself
Brilliant guide, it was the easiest for me to read out of the rest of the TPA threads in this section. I will try to use this in my scripts
Rep++
I'm glad I could help, and if you ever have any questions just post here / PM me
Thanks a ton, this has just made a nice place in my new script and I couldn't have done it with out this
I like making stuff.
Wow man, really helped me understand this stuff! Thanks!!!
Fantastic tutorial up to this day.
Previously known as "Phyaskou"
Simply a GOD beast...
My Tutorials
I am trying to add a array to my TPA func, but there are literally about 10-15 colors; It isn't working too good for me... Can someone help me out a bit please?
PM me .
Cheers!
There are currently 2 users browsing this thread. (0 members and 2 guests)