Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Telekill()
- {
- auto ros_base = reinterpret_cast<uintptr_t>(GetModuleHandle(NULL));
- auto Ros_Client = (ClientApper*)(ros_base + OFFSET_CLIENT);
- auto mListItem = Ros_Client->m_pFirst->m_pStart;
- bool first = true;
- for (;;)
- {
- if (!first) mListItem = mListItem->m_pNext;
- first = false;
- if (mListItem == Ros_Client->m_pFirst->m_pEnd)
- break;
- auto entity_addy = (DWORD)(mListItem->m_pEntity ^ mListItem->m_EntityKey->Val);
- auto curEntity = (CEntity*)entity_addy;
- DWORD MyEntity = (DWORD)(ros_base + OFFSET_LOCAL);
- D3DXVECTOR3 MyPosition;
- if ((DWORD)curEntity == MyEntity) {
- MyPosition = GetDecryptedPos(curEntity);
- D3DXVECTOR3 EnemyPosDec;
- CPlayerBase* pBase;
- EnemyPosDec = pBase->GetDecryptedEnemyPos(curEntity);
- D3DXVECTOR3 EnemyPosEnc;
- string pMeta_str(curEntity->m_pMeta->pName);
- bool isPlayer = (std::string::npos != pMeta_str.find("Avatar"));
- DWORD Hotkey = NULL;
- if (isPlayer || curEntity->m_Table->pTable->m_HpRow->HP< 0)
- {
- if (opt.teleport.hotkey == 1) Hotkey = VK_SHIFT;
- if (opt.teleport.tele || opt.teleport.hotkey || opt.teleport.fov || opt.teleport.target || opt.teleport.lock)
- {
- if (GetAsyncKeyState(opt.teleport.hotkey) & 1)
- {
- if (GetDistance(MyPosition, EnemyPosDec, 10) < 500)
- {
- EnemyPosEnc = GetEncryptedPosition(curEntity);
- MyPosition.x = EnemyPosEnc.x;
- MyPosition.y = EnemyPosEnc.y;
- MyPosition.z = EnemyPosEnc.z;
- }
- }
- }
- }
- }
- }
- }
- void Telekill()
- {
- auto Module = reinterpret_cast<uintptr_t>(GetModuleHandle("ros.exe"));
- int World = *(int*)(Module + 0x20D8D08 + 0x410);
- int Visible = *(int*)(World + 0x270);
- int Skeleton = *(int*)(World + 0x288);
- for (int i = 0; i < Visible; i += 4)
- {
- int Model = Memory::ReadMemory<int>(Skeleton + i);
- D3DXMATRIX m_Position = Memory::ReadMemory<D3DXMATRIX>(Model + 0x3B0);
- Vector3 EnemyPos;
- EnemyPos.x = m_Position[12];
- EnemyPos.y = m_Position[13];
- EnemyPos.z = m_Position[14];
- int m_pAnimator = Memory::ReadMemory<int>(Model + 0x328);
- string m_pModelName = Memory::ReadString(Memory::ReadMemory<int>(m_pAnimator + 0x528), 16);
- string str = m_pModelName;
- bool isPlayer = findnew(str, "character");
- if (GetAsyncKeyState(VK_SHIFT) & 1)
- {
- if (isPlayer)
- {
- if (*(DWORD*)(*(DWORD*)(OFFSET_LOCAL + Module) + 0x10)); *(DWORD*)(*(DWORD*)(OFFSET_LOCAL + Module) + 0x10) = 0;
- if (*(DWORD*)(*(DWORD*)(OFFSET_LOCAL + Module) + 0x18)); *(DWORD*)(*(DWORD*)(OFFSET_LOCAL + Module) + 0x18) = 0;
- if (*(DWORD*)(*(DWORD*)(OFFSET_LOCAL + Module) + 0x20)); *(DWORD*)(*(DWORD*)(OFFSET_LOCAL + Module) + 0x20) = 0;
- if (EnemyPos.x != 0) *(float*)(*(DWORD*)(OFFSET_LOCAL + Module) + 0x10) = EnemyPos.x - 10.0f;
- if (EnemyPos.y != 0) *(float*)(*(DWORD*)(OFFSET_LOCAL + Module) + 0x18) = EnemyPos.x - 7.0f;
- if (EnemyPos.z != 0) *(float*)(*(DWORD*)(OFFSET_LOCAL + Module) + 0x20) = EnemyPos.x - 10.0f;
- }
- }
- }
- }
- //my call
- void DoTelekill(IDirect3DDevice9* pDevice)
- {
- __try {
- Telekill();
- }
- __except (EXCEPTION_EXECUTE_HANDLER) {}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement