Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- program EObot;
- var x, y, MageKey, HealKey, Monster, Dragon, Biter, HitCount, AntiF, Monsters,
- Direction, TargetDirection, MoveDirection, SpeedKeyOne, SpeedKeyTwo, SpeedKeyThree:Integer;
- //Key Codes
- var F1, F2, F3, F4, F5, F6, F7, F8, Num0, Num1, Num2, Num3, Num4, Num5, Num6, Num7, Num8, Num9, ArrowLeft, ArrowDown, ArrowRight, ArrowUp:Integer;
- var KsDirection:String;
- const
- CharacterNum = '1';
- DelayUserInput = 'true'; // Wait extra time at login for lag
- {***************************}//Relog settings
- Username = 'user';
- Password = 'pass';
- {***************************}
- //Settings
- TrainSpot = 'dragons'; //dragons, other
- AntiRelog = 'true'; // Makes speed last longer
- HitCountReset = 30; //Time between checking if hitting in wrong direction(Do not set too low or your char will jump around trying to turn too fast)
- AntiFReset = 85; //Time before reloging if still attacking a single monster
- MonstersReset = 8; //Amount of monsters to kill before reloging.(Gets reset if you freeze)
- Archer = 'false'; //Not added yet, but will use range if true (for bows)
- //Healing settings
- Pots = 'herbs'; // herbs, small, med, large
- HeartsToPot = 9; // When hp is down to selected heart, Mikebot will pot.(cannot be 9, only 1-8)
- HerbsForFull = 180; // Amount of herbs to use when potting
- SmallsForFull = 10; //Amount of SMALL pots to use when potting(If Pots = 'small')
- SHeal = 'false'; // Speed heal (Self)
- //Mage settings
- MageEnabled = 'true'; // Fire/Thunder etc. (Also depends on what you have in the F key you set for "MageFKey")
- SpeedMage = 'false'; // Uses your Num3 hotkey to speed up maging, very helpful for ksers.
- //Hotkey settings
- HealFKey = 'F1'; //F1-F8
- MageFKey = 'F2'; //F1-F8
- SpeedKey1 = 'F6';
- SpeedKey2 = 'F5';
- SpeedKey3 = 'F7';
- {#####Mini-Guide#####
- 1. Put your account details in the "Username" and "Password" single-quotes.(')
- 1.b. Make sure you have your Screen Resolution set to 32-bit.(Found in Control Panel)
- 2. Put the number of the character to auto with.('1', '2', '3')
- 3. Select the type of pots to use, you must have them in inv or it will log out.('herbs', 'small', 'med', 'large')
- 4. Set heal and mage to true/false if you want them on: true, off: false.
- 5. Set the Mage-F-Key and Heal-F-Key to a F key(F1-F8, "F" must be capital!)
- 6. Set your speed keys like so:
- HotKey 1: SpeedKey1 = 1 Green
- HotKey 2: SpeedKey2 = -2.29 Blue
- HotKey 3: SpeedKey3 = Any red speed(ex: +32 Red)
- Stepback etc doesn't matter, the only thing that matters is that your max speed is at least equal to the HotKey 3 speed.
- 7. If you haven't already get the "eo Client", this is needed for pots and monster finding.
- 8. Open "Date and Time Properties"(Or double-click your clock in the bottom-right corner.), set the time to 8:59:40 PM.
- 9. Open eobot client while time is still less than 9:00:00 PM, if not, change the time again.
- 10. Wait for the time to hit 9:00 PM while EO is open, then apply your EO Trainer hacks(Instant login is required for the login procedure)
- 11. Enjoy! All credits go to Renchy, nobody helped with this script, and I made it all from SCRATCH.
- Procedure ReadString(str: String);
- var i,strLength :Integer; goer: Boolean;
- begin
- i:=1
- strLength:=Length(str)
- goer:=False
- while(i<strLength+1) do
- begin
- if(GetKeyCode(StrGet(str,i))=191)then
- begin
- KeyDown(16)
- goer:=True
- i:=i+1
- end;
- KeyDown(GetKeyCode(StrGet(str,i)))
- wait(25)
- KeyUp(GetKeyCode(StrGet(str,i)))
- wait(50)
- KeyUp(GetKeyCode(StrGet(str,i)))
- wait(25)
- i:=i+1
- if(goer=True)then
- begin
- KeyUp(16)
- wait(300)
- end;
- end;
- end;
- Procedure SetMageKey;
- begin
- if(MageFKey = 'F1') then begin MageKey := F1; end
- else if(MageFKey = 'F2') then begin MageKey := F2; end
- else if(MageFKey = 'F3') then begin MageKey := F3; end
- else if(MageFKey = 'F4') then begin MageKey := F4; end
- else if(MageFKey = 'F5') then begin MageKey := F5; end
- else if(MageFKey = 'F6') then begin MageKey := F6; end
- else if(MageFKey = 'F7') then begin MageKey := F7; end
- else if(MageFKey = 'F8') then begin MageKey := F8; end
- end;
- Procedure SetHealKey;
- begin
- if(HealFKey = 'F1') then begin HealKey := F1; end
- else if(HealFKey = 'F2') then begin HealKey := F2; end
- else if(HealFKey = 'F3') then begin HealKey := F3; end
- else if(HealFKey = 'F4') then begin HealKey := F4; end
- else if(HealFKey = 'F5') then begin HealKey := F5; end
- else if(HealFKey = 'F6') then begin HealKey := F6; end
- else if(HealFKey = 'F7') then begin HealKey := F7; end
- else if(HealFKey = 'F8') then begin HealKey := F8; end
- end;
- Procedure SetSpeedKeys;
- begin
- If(SpeedKey1 = 'Num1') then begin SpeedKeyOne := Num1; end
- else if(SpeedKey1 = 'Num2') then begin SpeedKeyOne := Num2; end
- else if(SpeedKey1 = 'Num3') then begin SpeedKeyOne := Num3; end
- else if(SpeedKey1 = 'Num4') then begin SpeedKeyOne := Num4; end
- else if(SpeedKey1 = 'Num5') then begin SpeedKeyOne := Num5; end
- else if(SpeedKey1 = 'Num6') then begin SpeedKeyOne := Num6; end
- else if(SpeedKey1 = 'Num7') then begin SpeedKeyOne := Num7; end
- else if(SpeedKey1 = 'Num8') then begin SpeedKeyOne := Num8; end
- else if(SpeedKey1 = 'Num9') then begin SpeedKeyOne := Num9; end
- else if(SpeedKey1 = 'F1') then begin SpeedKeyOne := F1; end
- else if(SpeedKey1 = 'F2') then begin SpeedKeyOne := F2; end
- else if(SpeedKey1 = 'F3') then begin SpeedKeyOne := F3; end
- else if(SpeedKey1 = 'F4') then begin SpeedKeyOne := F4; end
- else if(SpeedKey1 = 'F5') then begin SpeedKeyOne := F5; end
- else if(SpeedKey1 = 'F6') then begin SpeedKeyOne := F6; end
- else if(SpeedKey1 = 'F7') then begin SpeedKeyOne := F7; end
- else if(SpeedKey1 = 'F8') then begin SpeedKeyOne := F8; end
- If(SpeedKey2 = 'Num1') then begin SpeedKeyTwo := Num1; end
- else if(SpeedKey2 = 'Num2') then begin SpeedKeyTwo := Num2; end
- else if(SpeedKey2 = 'Num3') then begin SpeedKeyTwo := Num3; end
- else if(SpeedKey2 = 'Num4') then begin SpeedKeyTwo := Num4; end
- else if(SpeedKey2 = 'Num5') then begin SpeedKeyTwo := Num5; end
- else if(SpeedKey2 = 'Num6') then begin SpeedKeyTwo := Num6; end
- else if(SpeedKey2 = 'Num7') then begin SpeedKeyTwo := Num7; end
- else if(SpeedKey2 = 'Num8') then begin SpeedKeyTwo := Num8; end
- else if(SpeedKey2 = 'Num9') then begin SpeedKeyTwo := Num9; end
- else if(SpeedKey2 = 'F1') then begin SpeedKeyTwo := F1; end
- else if(SpeedKey2 = 'F2') then begin SpeedKeyTwo := F2; end
- else if(SpeedKey2 = 'F3') then begin SpeedKeyTwo := F3; end
- else if(SpeedKey2 = 'F4') then begin SpeedKeyTwo := F4; end
- else if(SpeedKey2 = 'F5') then begin SpeedKeyTwo := F5; end
- else if(SpeedKey2 = 'F6') then begin SpeedKeyTwo := F6; end
- else if(SpeedKey2 = 'F7') then begin SpeedKeyTwo := F7; end
- else if(SpeedKey2 = 'F8') then begin SpeedKeyTwo := F8; end
- If(SpeedKey3 = 'Num1') then begin SpeedKeyThree := Num1; end
- else if(SpeedKey3 = 'Num2') then begin SpeedKeyThree := Num2; end
- else if(SpeedKey3 = 'Num3') then begin SpeedKeyThree := Num3; end
- else if(SpeedKey3 = 'Num4') then begin SpeedKeyThree := Num4; end
- else if(SpeedKey3 = 'Num5') then begin SpeedKeyThree := Num5; end
- else if(SpeedKey3 = 'Num6') then begin SpeedKeyThree := Num6; end
- else if(SpeedKey3 = 'Num7') then begin SpeedKeyThree := Num7; end
- else if(SpeedKey3 = 'Num8') then begin SpeedKeyThree := Num8; end
- else if(SpeedKey3 = 'Num9') then begin SpeedKeyThree := Num9; end
- else if(SpeedKey3 = 'F1') then begin SpeedKeyThree := F1; end
- else if(SpeedKey3 = 'F2') then begin SpeedKeyThree := F2; end
- else if(SpeedKey3 = 'F3') then begin SpeedKeyThree := F3; end
- else if(SpeedKey3 = 'F4') then begin SpeedKeyThree := F4; end
- else if(SpeedKey3 = 'F5') then begin SpeedKeyThree := F5; end
- else if(SpeedKey3 = 'F6') then begin SpeedKeyThree := F6; end
- else if(SpeedKey3 = 'F7') then begin SpeedKeyThree := F7; end
- else if(SpeedKey3 = 'F8') then begin SpeedKeyThree := F8; end
- end;
- Procedure Click(x, y :Integer);
- begin
- Movemouse(x, y);
- ClickMouse(x, y, true);
- end;
- Procedure KeyDUp(Key :Byte);
- begin
- KeyDown(Key);
- Wait(10);
- KeyUp(Key);
- end;
- procedure HitSpeed;
- begin
- if(AntiRelog = 'true') then begin
- KeyDown(SpeedKeyTwo)
- Wait(5)
- KeyUp(SpeedKeyTwo)
- wait(5)
- KeyDown(SpeedKeyThree)
- Wait(5)
- KeyUp(SpeedKeyThree)
- Wait(3000)
- end
- else begin
- KeyDown(SpeedKeyThree)
- Wait(50)
- KeyUp(SpeedKeyThree)
- Wait(2000)
- end
- end;
- Procedure KeyUpAll;
- begin
- KeyUp(17); KeyUp(SpeedKeyOne); KeyUp(SpeedKeyTwo); KeyUp(SpeedKeyThree); Wait(20); KeyDUp(SpeedKeyOne);
- end;
- Procedure Turn;
- begin
- KeyUpAll;
- Wait(300);
- KeyDown(Direction);
- Wait(30);
- KeyUp(Direction);
- end;
- Procedure Login;
- begin
- Click(109, 368); // Click "Play Game"
- if(DelayUserInput = 'true') then begin
- Wait(1200);
- end
- else begin
- Wait(300);
- end
- ReadString(Username);
- Click(416, 388); // Click password textbox
- Wait(50); ReadString(Password);
- Click(403, 431); // Click "Connect"
- Wait(500);
- if(FindColor(x, y, 151294, 371, 320, 371, 320)) then begin // Check for "Login request denied", "Connection not found", "D/C" to retry
- Click(399, 322);
- Wait(100); Login;
- end
- if(FindColor(x, y, 151294, 370, 224, 371, 225)) then begin
- Click(395, 225);
- Wait(100); Login;
- end
- else begin // Click login on the character
- Wait(1500);
- KeyDUp(SpeedKeyOne);
- repeat
- KeyDown(GetKeyCode(CharacterNum));
- Wait(10);
- KeyUp(GetKeyCode(CharacterNum));
- Wait(10);
- until(FindColor(x, y, 229629, 343, 74, 344, 75) = false)
- Wait(50);
- Click(79, 366);
- end
- // Check if stuck at login screen(Not needed until a problem)
- end;
- Procedure CheckDc;
- begin
- if(FindColor(x, y, 151294, 370, 225, 371, 226)) then begin
- KeyUpAll;
- Click(x, y);
- Login;
- end
- end;
- Procedure Logout;
- begin
- Click(599, 48);
- Click(323, 225);
- end;
- Procedure Relog;
- begin
- Logout;
- Login;
- Monsters := MonstersReset;
- AntiF := AntiFReset;
- HitCount := HitCountReset;
- end;
- Procedure SMage;
- begin
- if(TrainSpot = 'other') then begin
- if((MageEnabled = 'true') and (FindColor(x, y, 657930, 238, 34, 239, 35) = false)) then begin
- if(FindColor(x, y, Monster, 7, 34, 630, 337)) then begin
- clickmouse(80, 446, true);
- KeyDown(SpeedKeyThree);
- Wait(100);
- KeyDown(MageKey);
- Wait(60);
- KeyUp(MageKey);
- Wait(60);
- ClickMouse(x, y, true);
- Wait(4000);
- KeyUpAll;
- Wait(100);
- end
- end
- end
- else begin
- if((MageEnabled = 'true') and (FindColor(x, y, 657930, 238, 34, 239, 35) = false)) then begin
- if(FindColor(x, y, Biter, 7, 34, 630, 337)) then begin
- clickmouse(80, 446, true);
- KeyDown(SpeedKeyThree);
- Wait(100);
- KeyDown(MageKey);
- Wait(60);
- KeyUp(MageKey);
- Wait(60);
- ClickMouse(x, y, true);
- Wait(3000);
- KeyUpAll;
- Wait(100);
- end
- end
- end
- end;
- Procedure Mage;
- begin
- if(SpeedMage = 'true') then begin
- SMage;
- end
- else begin
- if(TrainSpot = 'other') then begin
- if((MageEnabled = 'true') and (FindColor(x, y, 657930, 238, 34, 239, 35) = false)) then begin
- if(FindColor(x, y, Monster, 7, 34, 630, 337)) then begin
- clickmouse(80, 446, true);
- KeyDown(MageKey);
- Wait(20);
- KeyUp(MageKey);
- Wait(10);
- MoveMouseSmooth(x, y); Wait(1); ClickMouse(x, y, true);
- Wait(1700);
- end
- end
- end
- else begin
- if((MageEnabled = 'true') and (FindColor(x, y, 657930, 238, 34, 239, 35) = false)) then begin
- if(FindColor(x, y, Biter, 7, 34, 630, 337)) then begin
- clickmouse(80, 446, true);
- KeyDown(MageKey);
- Wait(20);
- KeyUp(MageKey);
- Wait(10);
- MoveMouseSmooth(x, y); Wait(1); ClickMouse(x, y, true);
- Wait(300);
- end
- end
- end
- end
- end;
- Procedure AutoPot;//AutoHerbage
- var herbers, smalls, Xhp, TimesBy, Herts:Integer;
- begin
- herbers := HerbsForFull;
- smalls := SmallsForFull;
- Herts := HeartsToPot;
- TimesBy := 8 * Herts;
- Xhp := 128 + TimesBy;
- if(FindColor(x, y, 657930, Xhp, 33, Xhp, 34)) then begin
- Click(81, 366);
- Wait(200);
- if FindColor(x, y, 33792, 115, 365, 476, 467)then begin
- repeat
- checkDc;
- Click(x, y);Wait(30);Click(x, y);
- CheckDc;
- until ((findcolor(x,y,9408511,201,31,201,38)=true));
- CheckDc;
- end end
- end;
- Procedure AutoPots;
- Begin
- if(FindColor(x, y, 657930, 129, 33, 145, 34)) then begin
- Click(81, 366);
- Wait(200);
- if FindColor(x, y, 16711812, 115, 365, 476, 467)then begin
- Click(x, y);
- Wait(8);
- Click(x, y);
- Wait(10)
- end end
- end;
- Procedure Status;
- begin
- if(FindWindowTitlePart('endless online', false)) then begin
- activateclient;
- end
- cleardebug;
- writeln('');
- writeln('');
- writeln('Monsters: '+ inttostr(Monsters) + ' | HitCount: '+ inttostr(HitCount) + ' | AntiFreeze: ' + inttostr(AntiF));
- end;
- Procedure MonsterCounter;
- begin
- Monsters := Monsters - 1;
- Status
- if(Monsters <= 0) then begin
- KeyUpAll;
- Wait(30);
- Relog;
- end
- end;
- Procedure AntiFreeze;
- begin
- AntiF := AntiF - 1;
- Status;
- if(AntiF <= 0) then begin
- KeyUpAll;
- Wait(10);
- Relog;
- Wait(20);
- keyDown(17);
- Wait(20);
- end
- end;
- Procedure DoHitCount;
- begin
- HitCount := HitCount - 1;
- if(HitCount <= 0) then begin
- KeyUpAll; Wait(50); Direction := TargetDirection;
- Wait(500);
- if(((Direction = ArrowLeft) and FindColor(x, y, Monster, 274, 163, 298, 178)) or ((Direction = ArrowDown) and FindColor(x, y, Monster, 272, 188, 295, 197)) or ((Direction = ArrowRight) and FindColor(x, y, Monster, 332, 187, 360, 200)) or ((Direction = ArrowUp) and FindColor(x, y, Monster, 330, 160, 358, 176))) then begin
- Turn;
- HitCount := HitCountReset;
- KeyDown(17);
- end
- else if(((Direction = ArrowLeft) and FindColor(x, y, Dragon, 270, 163, 298, 178)) or ((Direction = ArrowDown) and FindColor(x, y, Dragon, 285, 200, 299, 209)) or ((Direction = ArrowRight) and FindColor(x, y, Dragon, 341, 189, 364, 208)) or ((Direction = ArrowUp) and FindColor(x, y, Dragon, 341, 162, 362, 176))) then begin
- Turn;
- HitCount := HitCountReset;
- KeyDown(17);
- end
- end
- end;
- Procedure Left;
- begin
- if(TrainSpot = 'other') then begin
- If (FindColor(x, y, Monster, 274, 163, 298, 178)) then begin
- TargetDirection := ArrowLeft;
- if((Direction = TargetDirection) = false) then begin
- Direction := ArrowLeft;
- Turn;
- end
- Wait(50);
- KeyDown(17);
- Wait(200);
- repeat
- AutoPot;
- HitSpeed;
- AntiFreeze;
- Autopots;
- DoHitCount;
- until((FindColor(x, y, Monster, 274, 163, 298, 178) = false) or (FindColor(x, y, 888, 313, 490, 313, 490)))
- HitCount := HitCountReset;
- AntiF := AntiFReset;
- KeyUpAll;
- if(FindColor(x, y, 888, 313, 490, 313, 490)) then begin // if find Not your battle! = false, begin
- KsDirection := 'Left';
- end
- else begin
- MonsterCounter;
- end
- end
- end
- else if(TrainSpot = 'dragons') then begin
- If (FindColor(x, y, Dragon, 274, 171, 294, 172)) then begin
- TargetDirection := ArrowLeft;
- if((Direction = TargetDirection) = false) then begin
- Direction := ArrowLeft;
- Turn;
- end
- Wait(50);
- KeyDown(17);
- Wait(200);
- repeat
- AutoPot;
- HitSpeed;
- AntiFreeze;
- Autopots;
- DoHitCount;
- until(FindColor(x, y, Dragon, 274, 171, 294, 172) = false)
- HitCount := HitCountReset;
- AntiF := AntiFReset;
- MonsterCounter;
- KeyUpAll;
- end
- end
- end;
- Procedure Down;
- begin
- if(TrainSpot = 'other') then begin
- If (FindColor(x, y, Monster, 272, 188, 295, 197)) then begin
- TargetDirection := ArrowDown;
- if((Direction = TargetDirection) = false) then begin
- Direction := ArrowDown;
- Turn;
- end
- Wait(50);
- KeyDown(17);
- Wait(200);
- repeat
- AutoPot;
- HitSpeed;
- AntiFreeze;
- Autopots;
- DoHitCount;
- until((FindColor(x, y, Monster, 272, 188, 295, 197) = false) or (FindColor(x, y, 888, 313, 490, 313, 490)))
- HitCount := HitCountReset;
- AntiF := AntiFReset;
- KeyUpAll;
- if(FindColor(x, y, 888, 313, 490, 313, 490)) then begin // if find Not your battle! = false, begin
- KsDirection := 'Down';
- end
- else begin
- MonsterCounter;
- end
- end
- end
- else if(TrainSpot = 'dragons') then begin
- If (FindColor(x, y, Dragon, 273, 200, 293, 203)) then begin
- TargetDirection := ArrowDown;
- if((Direction = TargetDirection) = false) then begin
- Direction := ArrowDown;
- Turn;
- end
- Wait(50);
- KeyDown(17);
- Wait(200);
- repeat
- AutoPot;
- HitSpeed;
- AntiFreeze;
- Autopots;
- DoHitCount;
- until(FindColor(x, y, Dragon, 273, 200, 293, 203) = false)
- HitCount := HitCountReset;
- AntiF := AntiFReset;
- MonsterCounter;
- KeyUpAll;
- end
- end
- end;
- Procedure Right;
- begin
- if(TrainSpot = 'other') then begin
- If (FindColor(x, y, Monster, 332, 187, 360, 200)) then begin
- TargetDirection := ArrowRight;
- if((Direction = TargetDirection) = false) then begin
- Direction := ArrowRight;
- Turn;
- end
- Wait(50);
- KeyDown(17);
- Wait(200);
- repeat
- AutoPot;
- HitSpeed;
- AntiFreeze;
- Autopots;
- DoHitCount;
- until((FindColor(x, y, Monster, 332, 187, 360, 200) = false) or (FindColor(x, y, 888, 313, 490, 313, 490)))
- HitCount := HitCountReset;
- AntiF := AntiFReset;
- KeyUpAll;
- if(FindColor(x, y, 888, 313, 490, 313, 490)) then begin // if find Not your battle! = false, begin
- KsDirection := 'Right';
- end
- else begin
- MonsterCounter;
- end
- end
- end
- else if(TrainSpot = 'dragons') then begin
- If (FindColor(x, y, Dragon, 341, 200, 362, 203)) then begin
- TargetDirection := ArrowRight;
- if((Direction = TargetDirection) = false) then begin
- Direction := ArrowRight;
- Turn;
- end
- Wait(50);
- KeyDown(17);
- Wait(200);
- repeat
- AutoPot;
- HitSpeed;
- AntiFreeze;
- Autopots;
- DoHitCount;
- until(FindColor(x, y, Dragon, 341, 200, 362, 203) = false)
- HitCount := HitCountReset;
- AntiF := AntiFReset;
- MonsterCounter;
- KeyUpAll;
- end
- end
- end;
- Procedure Up;
- begin
- if(TrainSpot = 'other') then begin
- If (FindColor(x, y, Monster, 335, 164, 358, 176)) then begin
- TargetDirection := ArrowUp;
- if((Direction = TargetDirection) = false) then begin
- Direction := ArrowUp;
- Turn;
- end
- Wait(50);
- KeyDown(17);
- Wait(200);
- repeat
- AutoPot;
- HitSpeed;
- AntiFreeze;
- Autopots;
- DoHitCount;
- until((FindColor(x, y, Monster, 335, 164, 358, 176) = false) or (FindColor(x, y, 888, 313, 490, 313, 490)))
- HitCount := HitCountReset;
- AntiF := AntiFReset;
- KeyUpAll;
- if(FindColor(x, y, 888, 313, 490, 313, 490)) then begin // if find Not your battle! = false, begin
- KsDirection := 'Up';
- end
- else begin
- MonsterCounter;
- end
- end
- end
- else if(TrainSpot = 'dragons') then begin
- If (FindColor(x, y, Dragon, 344, 168, 364, 171)) then begin
- TargetDirection := ArrowUp;
- if((Direction = TargetDirection) = false) then begin
- Direction := ArrowUp;
- Turn;
- end
- Wait(50);
- KeyDown(17);
- Wait(200);
- repeat
- AutoPot;
- HitSpeed;
- AntiFreeze;
- Autopots;
- DoHitCount;
- until(FindColor(x, y, Dragon, 344, 168, 364, 171) = false)
- HitCount := HitCountReset;
- AntiF := AntiFReset;
- MonsterCounter;
- KeyUpAll;
- end
- end
- end;
- Procedure CheckSides;
- begin
- if(KsDirection = 'Left') then begin
- Down;
- Right;
- Up;
- Left;
- end
- else if(KsDirection = 'Down') then begin
- Left;
- Right;
- Up;
- Down;
- end
- else if(KsDirection = 'Right') then begin
- Left;
- Down;
- Up;
- Right;
- end
- else begin
- Left;
- Down;
- Right;
- Up;
- end
- end;
- Procedure CheckTop;
- begin
- if(TrainSpot = 'dragons') then begin
- if(FindColor(x, y, Dragon, 307, 183, 330, 185)) then begin
- Turn;
- MoveDirection := Direction;
- Wait(1000);
- end
- end
- else begin
- if(FindColor(x, y, Monster, 309, 174, 330, 185)) then begin
- Turn;
- MoveDirection := Direction;
- Wait(500);
- end
- end
- end;
- Procedure CheckDrop;
- begin
- if(FindColor(x, y, 151294, 265, 236, 266, 237)) then begin
- Click(392, 238);
- Wait(500);
- end
- end;
- Procedure MoveHome;
- begin
- if((FindColor(x, y, Monster, 7, 34, 630, 337) = false) and (FindColor(x, y, Dragon, 7, 34, 630, 337) = false) and (FindColor(x, y, Biter, 7, 34, 630, 337) = false)) then begin
- if(MoveDirection = ArrowLeft) then begin
- Wait(1000);
- if(Direction = MoveDirection) then begin
- Turn;
- end
- else begin
- Direction := ArrowRight;
- Turn;
- Turn;
- end
- MoveDirection := 0;
- end
- else if(MoveDirection = ArrowDown) then begin
- Wait(1000);
- if(Direction = MoveDirection) then begin
- Turn;
- end
- else begin
- Direction := ArrowUp;
- Turn;
- Turn;
- end
- MoveDirection := 0;
- end
- else if(MoveDirection = ArrowRight) then begin
- Wait(1000);
- if(Direction = MoveDirection) then begin
- Turn;
- end
- else begin
- Direction := ArrowLeft;
- Turn;
- Turn;
- end
- MoveDirection := 0;
- end
- else if(MoveDirection = ArrowUp) then begin
- Wait(1000);
- if(Direction = MoveDirection) then begin
- Turn;
- end
- else begin
- Direction := ArrowDown;
- Turn;
- Turn;
- end
- MoveDirection := 0;
- end
- end
- end;
- procedure CheckTime;
- var t: TDateTime; Hour, Minutes, Seconds, FullTime:string;
- begin
- t:=time;
- FullTime:= formatdatetime('hh:mmam/pm', t);
- Hour:= formatdatetime('hham/pm', t);
- Minutes:= formatdatetime('nn', t);
- Seconds:= formatdatetime('ss', t);
- if(Hour = '11pm') then begin
- Writeln('Time needs changing, changing time and reloging(Make sure you have opened EO before 9pm!)');
- if(FindWindowTitlePart('date and time properties', false)) then begin
- activateclient;
- end
- Wait(300);
- ClickMouse(261, 239, true);
- Wait(10);
- ClickMouse(261, 239, true);
- Wait(500);
- KeyDown(GetKeyCode('9'));
- Wait(10);
- KeyUp(GetKeyCode('9'));
- Wait(500);
- ClickMouse(357, 326, true);
- Wait(300);
- Status;
- Relog;
- end
- else if((Hour = '12pm') or (Hour = '1pm') or (Hour = '2pm') or (Hour = '3pm') or (Hour = '4pm') or (Hour = '5pm') or (Hour = '6pm') or (Hour = '7pm') or (Hour = '8pm')) then begin
- Writeln('Time needs changing, changing time and reloging(Make sure you have opened EO before 9pm!)');
- if(FindWindowTitlePart('date and time properties', false)) then begin
- activateclient;
- end
- Wait(300);
- ClickMouse(261, 239, true);
- Wait(10);
- ClickMouse(261, 239, true);
- Wait(500);
- KeyDown(GetKeyCode('9'));
- Wait(10);
- KeyUp(GetKeyCode('9'));
- Wait(500);
- ClickMouse(357, 326, true);
- Wait(300);
- Status;
- Relog;
- end
- else if((Hour = '12am') or (Hour = '1am') or (Hour = '2am') or (Hour = '3am') or (Hour = '4am') or (Hour = '5am') or (Hour = '6am') or (Hour = '7am') or (Hour = '8am') or (Hour = '9am') or (Hour = '10am') or (Hour = '11am')) then begin
- Writeln('Time needs changing, changing time and reloging(Make sure you have opened EO before 9pm!)');
- if(FindWindowTitlePart('date and time properties', false)) then begin
- activateclient;
- end
- Wait(300);
- ClickMouse(261, 239, true);
- Wait(10);
- ClickMouse(261, 239, true);
- Wait(500);
- KeyDown(GetKeyCode('9'));
- Wait(10);
- KeyUp(GetKeyCode('9'));
- Wait(500);
- ClickMouse(316, 240, true);
- wait(100);
- ClickMouse(347, 233, true);
- Wait(200);
- ClickMouse(357, 326, true);
- Wait(300);
- Status;
- Relog;
- end
- end;
- Procedure CheckLoggedOut;
- begin
- if(FindColor(x, y, 8355711, 36, 66, 37, 67)) then begin
- Login;
- end
- end;
- Procedure SpeedHeal;
- begin
- if(FindColor(x, y, 657930, 187, 33, 188, 34) and (SHeal = 'true') and (FindColor(x, y, 657930, 238, 34, 239, 35) = false)) then begin
- KeyDown(SpeedKeyThree);
- Wait(100);
- KeyDown(HealKey);
- Wait(60);
- KeyUp(HealKey);
- Wait(4000);
- KeyUpAll;
- Wait(200);
- end
- end;
- Procedure Settings;
- begin
- //Do not touch anything below unless you know what you're doing
- HitCount := HitCountReset;
- AntiF := AntiFReset;
- Monsters := MonstersReset;
- Direction := 0;
- Monster := 1638350;
- Dragon := 9880721;
- Biter := 5882430;
- F1 := 112; F2 := 113; F3 := 114; F4 := 115; F5 := 116; F6 := 117; F7 := 118; F8 := 119;
- Num0 := 96; Num1 := 97; Num2 := 98; Num3 := 99; Num4 := 100; Num5 := 101; Num6 := 102; Num7 := 103; Num8 := 104; Num9 := 105;
- ArrowLeft := 37; ArrowDown := 40; ArrowRight := 39; ArrowUp := 38;
- SetMageKey;
- SetHealKey;
- SetSpeedKeys;
- end;
- // Begin Main Loop
- begin
- Settings;
- if(FindWindowTitlePart('endless online', false)) then begin
- activateclient;
- end
- else begin
- Writeln('Endless Online isn''t open or is minimized, please check and try again.');
- end
- ClearDebug;
- Writeln('eobot - By Renchy');
- Wait(1000);
- if(FindColor(x, y, 8355711, 37, 68, 38, 69)) then begin
- Login;
- end
- repeat
- CheckTime;
- CheckDc;
- AutoPot;
- Autopots;
- CheckSides;
- Mage;
- CheckTop;
- MoveHome;
- SpeedHeal;
- CheckDrop;
- CheckLoggedOut;
- Status;
- Wait(10);
- until(false)
- KeyUpAll;
- end.
Add Comment
Please, Sign In to add comment