Guest User

Untitled

a guest
Aug 1st, 2020
239
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bool USkillCheck::HasSkillcheck() { return MemoryManager::Read<bool>(address + 0x29C); }
  2. float USkillCheck::GetProgress() { return MemoryManager::Read<float>(address + 0x2A0); }
  3. float USkillCheck::GetBonusPos() { return MemoryManager::Read<float>(address + 0x270); }
  4.  
  5. USkillCheck UPlayerInteractionHandler::GetSkillcheck() { return USkillCheck(address + 0x0278); }
  6.  
  7. if (Settings::AutoSkillcheck) {
  8.     auto skillcheck = iteractionHandler.GetSkillcheck();
  9.     while (skillcheck.HasSkillcheck()) {
  10.         auto progress = skillcheck.GetProgress();
  11.         if (progress >= skillcheck.GetBonusPos()) {
  12.  
  13.             INPUT Input = { 0 };
  14.             Input.type = INPUT_KEYBOARD;
  15.             Input.ki.wVk = VK_SPACE;
  16.             SendInput(1, &Input, sizeof(Input));
  17.             Input.ki.dwFlags = KEYEVENTF_KEYUP;
  18.             SendInput(1, &Input, sizeof(Input));
  19.         }
  20.         std::this_thread::sleep_for(std::chrono::milliseconds(1));
  21.     }
  22. }
RAW Paste Data