halgboy_tbc
2012-04-08 10:35:13
Does anyone know an existing code that opens a bank at the GE please? Thanks.
OpenBankNPC; doesn't seem to be working well
OpenBankNPC; doesn't seem to be working well
2012-04-08 10:35:13
2012-04-08 10:48:34
2012-04-08 10:58:19
From: halgboy_tbc
Does anyone know an existing code
2012-04-08 11:42:14
2012-04-08 11:44:21
2012-04-08 13:50:01
2012-04-08 13:51:25
2012-04-08 13:56:06
From: abu_jwka
P.S - just make one using TPA's
2012-04-08 13:59:15
2012-04-08 14:08:42
From: abu_jwka
I did answer your question:
That's about the best answer you're going to get.
Take the time to learn and stop waiting for other people to make functions for you. You were already told you had to write it yourself but you persist in looking for existing code.
Since the time you've posted, you could have easily made the function yourself - laziness is a bad habit, get rid of it.
2012-04-08 14:17:30
From: halgboy_tbc
Why do you speculate on the motives of why people ask things: you have no clue. As my post already stated, this is fixed, and yes, I fixed it myself. It was not a problem of ability, it was an issue of time. You don't need to post anymore and try to accuse me of things you have no clue about. Please go somewhere else with your accusations. I doubt you want to help people you just don't have a better way to spend your time, but to accuse others. To say that I have a habit of laziness is absolutely absurd, you have no clue of who I am as a person. But, there are many others like you who lurk forums online, so I should in fact reprimand myself for being surprised and even wasting time in response.
2012-04-08 14:25:15
From: halgboy_tbc
Why do you speculate on the motives of why people ask things: you have no clue. As my post already stated, this is fixed, and yes, I fixed it myself. It was not a problem of ability, it was an issue of time. You don't need to post anymore and try to accuse me of things you have no clue about. Please go somewhere else with your accusations. I doubt you want to help people you just don't have a better way to spend your time, but to accuse others. To say that I have a habit of laziness is absolutely absurd, you have no clue of who I am as a person. But, there are many others like you who lurk forums online, so I should in fact reprimand myself for being surprised and even wasting time in response.
2012-04-08 16:10:23
2012-04-08 16:20:17
2012-04-08 16:51:36
function GeScreen :Boolean;
begin
Result := CountColor(39116, 145, 32, 354, 50) > 320;
end;
function OpenBankGE :Boolean;
var
TPA :TPointArray;
NPC :TPoint;
C, I, Hi :Integer;
begin
If not LoggedIn then Exit;
If GeScreen then
begin
Result := True;
Exit;
end;
TPA := GetMiniMapDots('NPC');
Hi := Length(TPA);
for I := 0 to Hi - 1 do
begin
NPC := MMtoMS(TPA[I]);
If NPC = Point(-1, -1) then Continue;
MMouse(NPC.X, NPC.Y, 1, 1);
If WaitUpTextMulti(['Clerk', 'Ex', 'change', 'rand'], 200) then
begin
ClickMouse2(False);
If WaitOptionMulti(['change G', 'ge Gr'], 600) then
begin
MarkTime(C);
Repeat
Wait(RandomRange(50, 100));
Until (GeScreen) or (PinScreen) or (TimeFromMark(C) > 4500);
if (Players[CurrentPlayer].Pin <> '') then
InPin(Players[CurrentPlayer].Pin);
Result := (GeScreen) or (PinScreen);
If Result then
Break;
end;
end;
end;
end; 2012-04-08 16:52:49
function OpenBankGE :Boolean;
var
TPA :TPointArray;
NPC :TPoint;
C, I, Hi :Integer;
begin
If not LoggedIn then Exit;
If BankScreen then
begin
Result := True;
Exit;
end;
TPA := GetMiniMapDots('NPC');
Hi := Length(TPA);
for I := 0 to Hi - 1 do
begin
NPC := MMtoMS(TPA[I]);
If NPC = Point(-1, -1) then Continue;
MMouse(NPC.X, NPC.Y, 1, 1);
If WaitUpTextMulti(['Clerk', 'Ex', 'change', 'rand'], 200) then
begin
ClickMouse2(False);
If WaitOptionMulti(['change G', 'ge Gr'], 600) then
begin
MarkTime(C);
Repeat
Wait(RandomRange(50, 100));
Until (BankScreen) or (PinScreen) or (TimeFromMark(C) > 4500);
if (Players[CurrentPlayer].Pin <> '') then
InPin(Players[CurrentPlayer].Pin);
Result := (BankScreen) or (PinScreen);
If Result then
Break;
end;
end;
end;
end; 2012-04-08 16:55:40
2012-04-08 22:31:10
From: Home
function OpenBankGE :Boolean;
var
TPA :TPointArray;
NPC :TPoint;
C, I, Hi :Integer;
begin
If not LoggedIn then Exit;
If BankScreen then
begin
Result := True;
Exit;
end;
TPA := GetMiniMapDots('NPC');
Hi := Length(TPA);
for I := 0 to Hi - 1 do
begin
NPC := MMtoMS(TPA[I]);
If NPC = Point(-1, -1) then Continue;
MMouse(NPC.X, NPC.Y, 1, 1);
If WaitUpTextMulti(['Clerk', 'Ex', 'change', 'rand'], 200) then
begin
ClickMouse2(False);
If WaitOptionMulti(['change G', 'ge Gr'], 600) then
begin
MarkTime(C);
Repeat
Wait(RandomRange(50, 100));
Until (BankScreen) or (PinScreen) or (TimeFromMark(C) > 4500);
if (Players[CurrentPlayer].Pin <> '') then
InPin(Players[CurrentPlayer].Pin);
Result := (BankScreen) or (PinScreen);
If Result then
Break;
end;
end;
end;
end;
I just made it to loop through NPC's no colors needed.
~Home
2012-04-08 22:40:43
From: m34tcode
Relys on the accuracy of mmToMS though. Is it accurate enough? o.O
2012-04-08 23:17:46