I need to find this NPC
How do I do it efficiently without mousing around all the screen?
I need to find this NPC
How do I do it efficiently without mousing around all the screen?
LOL I used lots of stuff. The problem is the guards are exactly the same colour of the judge...
Here is my current code. The only problem in it is that sometimes it moves the mouse all around. I was hoping if somebody could tell me a way to find the judge at first try always.
Simba Code:procedure FindJudge;
var
tmpCTS,x ,y, I, H, bx, by: Integer;
JudgeTPA: TPointArray;
JudgeATPA: T2DPointArray;
begin
tmpCTS := GetToleranceSpeed;
SetColorToleranceSpeed(2);
SetToleranceSpeed2Modifiers(0.12, 0.89);
FindColorsSpiralTolerance(MSCX, MSCY, JudgeTPA, 2178370, MSX1, MSY1, MSX2, MSY2, 13);
SetColorToleranceSpeed(tmpCTS);
SetToleranceSpeed2Modifiers(0.02, 0.02);
JudgeATPA := TPAtoATPAEx(JudgeTPA, 30, 60);
if Length(JudgeATPA) = 0 then
begin
TerminateScript;
end;
H := High(JudgeATPA);
for I := 0 to H do
begin
if High(JudgeATPA[I]) > 40 then
begin
MiddleTPAEx(JudgeATPA[I], bx, by);
MMouse(bx, by, 3, 3);
GetMousePos(x, y);
if IsUpText('mpetitio') then
begin
ClickMouse2(false);
WaitOption('ompete', 100);
Wait(RandomRange(300, 500));
PressKey(31);
Break;
end;
end;
end;
end;
Use TPA, right click, if you don't have the correct option in the submenu, do a check to make sure you are in position? ObjDTM?
the problem is that the judge keeps moving and sometimes it is kinda hidden so it would only find some pixels of that colors, and if I reduce the amount of pixels needed it would mouse around the trees and stuff.
Plus, I want to make this less botlike as possible so I dont want it to mouse around brown stuff until it reaches the judge.
oh oh, i remember, I think runaway (?) came up with a TPA function that you can search for multiple groups of colours but it only returns true if they are within a defined distance of each other. Here ill find the link
http://villavu.com/forum/showthread.php?t=83397
edit: and this:
http://villavu.com/forum/showthread.php?t=82580
I haven't done RS object finding in a while, but my idea is:
1. Find the yellow dot on the MM that is closest to the player's square (if that's always the judge, otherwise get MM angle and change the point it has to be closest to)
2. Use MMToMS
3. Find the judge's colors/DTM around the result
4. Use MMouse, uptext and GetOptions
5. WIN
Though I don't know how far the judge and the guards move.
Sort the atpa from you..
There are currently 1 users browsing this thread. (0 members and 1 guests)