• Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • At Work
  • CodenzHub
  • Coding
  • Deejaying
  • Donating
  • Drinking
  • Eating
  • Editing
  • Hacking
  • Hate Mailing
  • Jamin'
  • Lagging
  • Live Streaming
  • Lurking
  • No Status
  • Pawning
  • PC Gaming
  • PS Gaming
  • Raging
  • Reversing
  • Sleeping
  • Steam Gaming
  • Trolling
  • TwitchStreamer
  • Vodka!
  • Watching TV/Movie
  • Xbox Gaming
  • Youtuber
  • Zombies
  • Results 1 to 4 of 4
    1. #1
      Jr.Coder
       
      Coding
       
      Heisa's Avatar
      Join Date
      Jul 2013
      Posts
      75
      Thanks (-->)
      16
      Thanks (<--)
      3

      Post Tera Online Triggerbot

      John Kittz
      Hello, I'm trying to make a tera triggerbot, with this method, where the hack should mouseclick when the distance is less than 20.

      Tera Online Triggerbot

      Now, I have found the pointer of where it says 13m, I know how it should work, but I do not know how to do it in C++.
      Somehow to read this value with ReadProcessMemory, then if its less than 20, to make a mouse click, or a hold.

      P.S. When I remove the mouse from any target, the value is always 4294967295. Any help greatly appreciated.



      EDIT: Ok, this kinda works, prints out the distance, but I can't seem to fix the CurrentDistance check, so I can insert a mouse click. Also, it prints out -1 instead of the value that Cheat Engine shows - 4294967295

      #include <tchar.h>
      #include "stdafx.h"
      #include <Windows.h>
      #include <iostream>
      #pragma comment(lib, "user32.lib")

      using namespace std;

      int _tmain(int argc, _TCHAR* argv[])
      {
      cout << "Welcome to Tera Trigger Bot" << endl;

      HWND hWnd = FindWindow(0, "TERA");
      if (hWnd == 0){
      cout << "Error, could not find Tera Window" << endl;
      }
      else {
      cout << "Found Tera Client, Running Trigger Bot" << endl;

      DWORD proc_id;
      GetWindowThreadProcessId(hWnd, &proc_id);

      HANDLE hProc = OpenProcess(PROCESS_ALL_ACCESS, FALSE, proc_id);
      if(!hProc) {
      cout << "Error, could open the process" << endl;
      }
      else {
      cout << "Process opened" << endl;

      DWORD Pointer = 0xF9717A9C;
      DWORD Pointed;
      WORD Offset = 0x0024;
      int CurrentDistance;

      while(1){
      ReadProcessMemory(hProc,(LPCVOID)(Pointer), &Pointed, 4, NULL);
      ReadProcessMemory(hProc,(LPCVOID)(Pointed+Offset), &CurrentDistance, 4, NULL);
      cout << CurrentDistance << " \rDistance: ";

      if (CurrentDistance > 1){

      if (CurrentDistance < 19)
      {
      INPUT Input={0};
      // left down
      Input.type = INPUT_MOUSE;
      Input.mi.dwFlags = MOUSEEVENTF_LEFTDOWN;
      ::SendInput(1,&Input,sizeof(INPUT));

      // left up
      ::ZeroMemory(&Input,sizeof(INPUT));
      Input.type = INPUT_MOUSE;
      Input.mi.dwFlags = MOUSEEVENTF_LEFTUP;
      ::SendInput(1,&Input,sizeof(INPUT));

      }

      }
      }
      cin.get();
      return 0;
      }

      }
      }


      EDIT 2: Ok guys, I got it working, thanks to all of you, I updated the code in this post to the working one, and made a video with it.

      https://www.youtube.com/watch?v=XJrf_DJseq4


      Once again, Thanks to all of you!
      Last edited by Heisa; 12-08-2013 at 11:58 AM.

    2. #2
      Hacker
      Learning to hack games!
       
      Pawning
       
      Fleep's Avatar
      Join Date
      May 2012
      Posts
      626
      Thanks (-->)
      208
      Thanks (<--)
      727
      Post Approved.

      Fleep

    3. Thanks Heisa thanked for this post
    4. #3
      Hacker
      shell toes yes
       
      Lagging
       
      squeenie's Avatar
      Join Date
      Mar 2013
      Posts
      717
      Thanks (-->)
      598
      Thanks (<--)
      221
      First of all you need to put your if statement inside the while loop, that's why it never gets called

    5. Thanks Heisa thanked for this post
    6. #4
      Global Moderator
      give me my colorz back
      FeelsBadMan
       
      Coding
       
      till0sch's Avatar
      Join Date
      Oct 2012
      Location
      Germany.
      Posts
      1,168
      Thanks (-->)
      179
      Thanks (<--)
      340
      Cheats'n'Trainers
      Quote Originally Posted by fureimu View Post
      Also, it prints out -1 instead of the value that Cheat Engine shows - 4294967295
      If you right click the address and click "Show signed" in cheat engine, it should also show -1...

      You should put the rest (also the distance checking) into the while loop. So if you've got the handle of the process, make while(1) define your variables, then call readprocessmemory, and before sleeping, make the <20 check.. The check I guess is never even running because of your endless loop. (as squeenie mentioned)

    7. Thanks Heisa thanked for this post

    Similar Game Hacker Threads

    1. [Help] triggerbot Online cs:go
      By rlzgh in forum GH Tutorials Help
      Replies: 6
      Last Post: 12-20-2014, 06:56 AM
    2. Aimbot & Triggerbot - Doesn't work online??.
      By noobhacky in forum Hacking Help
      Replies: 8
      Last Post: 06-03-2014, 07:08 AM
    3. Aimbot & Triggerbot Not Working Online.
      By Josho in forum Hacking Help
      Replies: 10
      Last Post: 08-14-2013, 04:13 PM
    4. The war z hacking (online) ?
      By -Tek in forum Hacking Help
      Replies: 6
      Last Post: 01-13-2013, 01:47 PM

    Tags for this Thread