IsoMorphic
2012-12-17 06:57:24
trying to bank at edge
OpenBankFast
OpenBank
OpenDepositBox
isn't working.
just hovers
OpenBankFast
OpenBank
OpenDepositBox
isn't working.
just hovers
2012-12-17 06:57:24
2012-12-17 08:08:29
2012-12-18 04:26:54
2012-12-18 04:30:11
From: fisherblue23
can anyone provide a banking method?
function OpenBankNPC: Boolean;
2012-12-18 05:13:25
2012-12-18 06:45:13
if(not(BankScreen)) then
begin
OpenBankNPC;
DepositAll;
CloseBank;
end;
2012-12-18 07:08:23
procedure bankin;
var
x,y:integer;
begin
if FindColorTolerance(x, y, bankercol, MSX1, MSY1, MSX2, MSY2,5) then
if WaitUpText('alk-to Banke', 1000) then
begin
//Waits 1000 ms for the uptext to be "tree"
Mouse(x, y, 10, 10, false);
WaitOption('Bank',1000);
end;
end;
2012-12-18 07:10:44
function PBankNPC: Boolean;
var
NPCBox :TBox;
Colors, NPCArray :TPointArray;
ATPA: T2DPointArray;
MSNPC, NPCPoint :TPoint;
CTS, T, ii, i :Integer;
begin
Result := (BankScreen) or (PinScreen);
if Result then
Exit;
NPCArray := GetMinimapDots('NPC');
if Length(NPCArray) < 1 then
Exit;
SortTPAFrom(NPCArray, Point(MMCX, MMCY));
for i := 0 to High(NPCArray) do
begin
NPCPoint := MMToMS(NPCArray[i]);
if NPCPoint = Point(-1, -1) then
begin
TurnToMMPoint(NPCPoint);
Wait(RandomRange(100,200));
end;
with NPCPoint do
NPCBox := IntToBox(Max(X - 80, MSX1), Max(Y - 80, MSY1), Min(X + 80, MSX2), Min(Y + 80, MSY2));
if PixelShift(NPCBox, 200) > 500 then
Continue;
CTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0.07, 0.58);
if FindColorsTolerance(Colors, 3810090, NPCBox.X1, NPCBox.Y1, NPCBox.X2, NPCBox.Y2, 10) then
begin
SetColorSpeed2Modifiers(0.2, 0.2);
ColorToleranceSpeed(CTS);
ATPA := TPAToATPAEx(Colors, 15, 20);
SortATPASize(ATPA, True);
for ii := 0 to High(ATPA) do
begin
MSNPC := MiddleTPA(ATPA[ii]);
MMouse(MSNPC.X, MSNPC.Y, 3, 3);
if WaitUpTextMulti(['ooth', 'anke'], 200) then
begin
ClickMouse2(False);
if WaitOption('ank B', 600) then
begin
MarkTime(T);
repeat
Wait(RandomRange(100, 200));
until (BankScreen) or (PinScreen) or (TimeFromMark(T) > 4500);
if (Players[CurrentPlayer].Pin <> '') then
InPin(Players[CurrentPlayer].Pin);
Result := (BankScreen) or (PinScreen);
if Result then
Exit;
end;
end;
end;
end;
end;
end;
2012-12-18 07:19:26
From: P1ng
Try this. But if you're going to release the script with this function I'd appreciate credit for itfunction PBankNPC: Boolean;
var
NPCBox :TBox;
Colors, NPCArray :TPointArray;
ATPA: T2DPointArray;
MSNPC, NPCPoint :TPoint;
CTS, T, ii, i :Integer;
begin
Result := (BankScreen) or (PinScreen);
if Result then
Exit;
NPCArray := GetMinimapDots('NPC');
if Length(NPCArray) < 1 then
Exit;
SortTPAFrom(NPCArray, Point(MMCX, MMCY));
for i := 0 to High(NPCArray) do
begin
NPCPoint := MMToMS(NPCArray[i]);
if NPCPoint = Point(-1, -1) then
begin
TurnToMMPoint(NPCPoint);
Wait(RandomRange(100,200));
end;
with NPCPoint do
NPCBox := IntToBox(Max(X - 80, MSX1), Max(Y - 80, MSY1), Min(X + 80, MSX2), Min(Y + 80, MSY2));
if PixelShift(NPCBox, 200) > 500 then
Continue;
CTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0.07, 0.58);
if FindColorsTolerance(Colors, 3810090, NPCBox.X1, NPCBox.Y1, NPCBox.X2, NPCBox.Y2, 10) then
begin
SetColorSpeed2Modifiers(0.2, 0.2);
ColorToleranceSpeed(CTS);
ATPA := TPAToATPAEx(Colors, 15, 20);
SortATPASize(ATPA, True);
for ii := 0 to High(ATPA) do
begin
MSNPC := MiddleTPA(ATPA[ii]);
MMouse(MSNPC.X, MSNPC.Y, 3, 3);
if WaitUpTextMulti(['ooth', 'anke'], 200) then
begin
ClickMouse2(False);
if WaitOption('ank B', 600) then
begin
MarkTime(T);
repeat
Wait(RandomRange(100, 200));
until (BankScreen) or (PinScreen) or (TimeFromMark(T) > 4500);
if (Players[CurrentPlayer].Pin <> '') then
InPin(Players[CurrentPlayer].Pin);
Result := (BankScreen) or (PinScreen);
if Result then
Exit;
end;
end;
end;
end;
end;
end;
2012-12-18 07:21:45
2012-12-18 07:50:40
2012-12-18 08:10:55
From: P1ng
whoops! Just copy the TurnToMMPoint function into your script above where you place this function and it should work fine.
2012-12-18 08:14:13
2012-12-18 09:36:15
2012-12-18 09:42:00
2012-12-18 10:44:58
From: xtrapsp
My suggestion = best.
My suggestion = ignored.