Hey guys, I'm trying to edit my zamorak wine runner, so it would finally do some actual running
Issue with DTM :
When I do my first Walk to the temple, it finds the DTM,
but afterwards does not.
This is the code I use, and I let the script search for it 5 times.
Simba Code:
if FindDTMRotated(ChaosMM, x, y, MMX1, MMY1, MMX2, MMY2, -Pi/4, Pi/4, Pi/60, aFound) then
begin
HumanMMouse(x, y, 0, 0);
FastClick(True);
if Debug then Writeln('We are in The Chaos Temple');
end;
Also, If we were not standing next to the table (cause of lag or smthing) but further away.
Any methods so we are surely standing next to the table? (Grabs the wine faster then)
I have this from DannyRS atm (Thank you!)
but it only works if you're next to the table already.
Simba Code:
function FindTableReturnBounds:Tbox;
var
tmpCTS:integer;
CustomObjTPA:TPointArray;
CustomObjATPA:T2DPointArray;
TB:Tbox;
begin
tmpCTS := GetToleranceSpeed;
SetColorToleranceSpeed(2);
SetToleranceSpeed2Modifiers(0.03, 1.79);
FindColorsTolerance(CustomObjTPA, 7442892, MSCX-20, MSCY-50, MSCX+70, MSCY+40, 9);
SplitTPAWrap(CustomObjTPA, 13, CustomObjATPA);
SortATPASize(CustomObjATPA,True);
SetColorToleranceSpeed(tmpCTS);
SetToleranceSpeed2Modifiers(0.02, 0.02);
//return largest ATPA on screen
TB := GetTPABounds(CustomObjATPA[0]);
Result:=TB;
end;
If someone wants to help through Skype? Skypename: Sjoekeloe