Element17
2012-06-25 02:42:50
It is late and I'm sure I'm missing something simple. Sorry but I'm driving myself to a massive head ache. I swear the points on the loadstone screen are changing. I made mouseboxes but the points are always off after I go to test them and I don't see how.
**Yes I have MMouse instead of mousebox because I couldn't get either or to work…
Function TeleportTo(Which: string): Boolean;
Var
Color, i, x, y: integer;
Coords: TIntegerArray;
Loc: string;
Clan: boolean;
Begin
If(Not(LoggedIn)) Then Exit;
Case lowercase(Which) Of
'Cath':
Begin
Color := 11567676;
Coords := [223, 181] ;
Loc := 'Catherby';
End;
'Fally': //explorer ring inv
Begin
GameTab(tab_EQUIP);
If WaitColor(725, 564, 8881791, 5, 5000) Then
Begin
Color := 8881791;
Coords := [705, 551, 732, 577];
Loc := 'Cabbage Patch';
End;
End;
'Adru':
Begin
Color := 1447231;
Coords := [175, 385, 194, 411];
Loc := 'Ardougne';
End;
End;
FindNormalRandoms;
AntiBan;
Writeln('Teleporting to '+ Loc);
GameTab(tab_magic);
If GameTab(tab_magic) Then
Result := True;
If Result Then
Begin
If FindHomeTeleport(x, y) Then
HumanMMouse(x, y, 2, 2); //Moves mouse to click home telepore
ClickMouse2(True);
If DidRedClick Then
Begin
Wait(500+Random(250));
Writeln('Clicked Home Teleport...');
End;
If LodestoneScreen Then
Begin
WriteLn('Lodestone Network screen is open!');
Wait(1000);
for i := 0 to 1 do
MMouse(Coords[i].x, Coords[i].y, 2, 2);
Writeln('Found Color');
GetMousePos(x, y);
HumanMMouse(x, y, 0,0);
ClickMouse2(True);
//MarkTime(z);
// Repeat //Random Fact generator here maybe
Writeln('Waiting till we are done teleporting..');
Wait(2500+Random(2000));
Writeln('Still teleporting..');
Wait(2000+Random(2500));
Writeln('Boo!~!');
//Until(TimeFromMark(z) > 16000);
//If Idle Then //Get idle pixelshift
Begin
//Writeln('Yay Teleported to' + Loc +);
GameTab(tab_Inv);
End;
End;
End;
End; **Yes I have MMouse instead of mousebox because I couldn't get either or to work…