Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- typedef __int64(__fastcall* t_Anticheat)(__int64 a1, __int64 a2); //hook and return a2
- typedef Vector3(__stdcall* t_WorldToScreen)(float x, float y, float z);
- typedef char(__fastcall* t_ProcessInteraction)(unsigned __int8 type, __int64 a2, int a3, int a4); //8 collect
- typedef void(__fastcall* t_PickUpAllItems)(unsigned __int8 type); //0 player, 4 or 1 servant
- t_Anticheat g_Anticheat = nullptr;
- t_WorldToScreen g_WorldToScreen = nullptr;
- t_ProcessInteraction g_ProcessInteraction = nullptr;
- t_RequestLoot g_RequestLoot = nullptr;
- t_PickUpAllItems g_PickUpAllItems = nullptr;
- uintptr_t temp = FindPatternIDA(0, "48 8B C4 48 89 58 08 57 48 81 EC ? ? ? ? 0F 29 70 E8 48 8B D9 0F 29 78 D8 0F 28 F3");
- if (temp == -1) MessageBox(0, "Failed Find WorldToScreen", "Error", MB_OK);
- else g_WorldToScreen = (t_WorldToScreen)temp;
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- temp = FindPatternIDA(0, "48 83 EC 28 0F B6 D1 48 8D 0D ? ? ? ? E8 ? ? ? ? 84 C0");
- if (temp == -1) MessageBox(0, "Failed Find ProcessInteraction", "Error", MB_OK);
- else g_ProcessInteraction = (t_ProcessInteraction)temp;
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- temp = FindPatternIDA(0, "45 33 C0 48 8B C1 48 85 D2");
- if (temp == -1) MessageBox(0, "Failed Find RequestLoot", "Error", MB_OK);
- else g_RequestLoot = (t_RequestLoot)temp;
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- temp = FindAddressFromCallOpcode(0, "E8 ? ? ? ? 48 8B CB 40 84 F6");
- if (temp == -1) MessageBox(0, "Failed Find PickUpAllItems", "Error", MB_OK);
- else g_PickUpAllItems = (t_PickUpAllItems)temp;
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- std::get<1>(limits) = FindPatternIDA(0, "42 89 B4 BF ? ? ? ?"); //player
- if (std::get<1>(limits) == -1)
- MessageBox(0, "Failed Find LimitsPlayer", "Error", MB_OK);
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- std::get<2>(limits) = FindPatternIDA(0, "41 89 84 8B ? ? ? ?"); //mount
- if (std::get<2>(limits) == -1)
- MessageBox(0, "Failed Find LimitsMount", "Error", MB_OK);
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- auto temp = FindPatternIDA(0, "33 C0 4C 8B D1 48 89 02");
- if (temp == -1)
- MessageBox(0, "Failed Find Anticheat", "Error", MB_OK);
- else if (MH_CreateHook((void*)temp, h_Anticheat, (void**)&g_Anticheat) != MH_OK || MH_EnableHook((void*)temp) != MH_OK)
- MessageBox(0, "Failed Hook Anticheat", "Error", MB_OK);
- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- LocalGameClient* localClient = Read<LocalGameClient*>(0x143F02C00);
- LocalPlayer* localPlayer = Read<LocalPlayer*>(0x143F596E0);
- uintptr_t entity_list = Read<uintptr_t>(0x143F59248);
- uintptr_t entity_list_end = Read<uintptr_t>(0x143F59250);
- if (entity_list && entity_list_end) {
- for (uintptr_t i = entity_list; i != entity_list_end; i += 0x8) {
- Actor* actor = Read<Actor*>(i);
- /*...*/
- }
- class Actor {
- public:
- char pad_0000[8]; //0x0000
- Vector3 PositionGround; //0x0008
- char pad_0014[72]; //0x0014
- int32_t Type; //0x005C
- char pad_0060[8]; //0x0060
- wchar_t* Name; //0x0068
- char pad_0070[8]; //0x0070
- int32_t Something; //0x0078
- char pad_007C[4]; //0x007C
- int32_t Id; //0x0080
- char pad_0084[908]; //0x0084
- Vector3 PositionHead; //0x0410
- };
- class ShapePhantom {
- public:
- char pad_0000[288]; //0x0000
- Vector3 Position; //0x0120
- }; //Size: 0x012C
- class PlayerData {
- public:
- char pad_0000[408]; //0x0000
- class ShapePhantom* pShapePhantom; //0x0198
- }; //Size: 0x01A0
- class AnimationControl {
- public:
- char pad_0000[1216]; //0x0000
- float AnimationSpeed[2]; //0x04C0
- }; //Size: 0x04C8
- class AnimationData {
- public:
- char pad_0000[8]; //0x0000
- int32_t AnimationID; //0x0008
- }; //Size: 0x000C
- class CharacterControl {
- public:
- char pad_0000[8]; //0x0000
- class PlayerData* pPlayerData; //0x0008
- class AnimationControl* pAnimationControl; //0x0010
- char pad_0018[32]; //0x0018
- class AnimationData* pAnimationData; //0x0038
- char pad_0040[2032]; //0x0040
- float Gravity; //0x0830
- }; //Size: 0x0834
- class LocalPlayer {
- public:
- char pad_0000[8]; //0x0000
- Vector3 PositionGround; //0x0008
- char pad_0014[84]; //0x0014
- wchar_t* Name; //0x0068
- char pad_0070[952]; //0x0070
- class CharacterControl* pCharacterControl; //0x0428
- char pad_0430[100]; //0x0430
- int32_t Stance; //0x0494
- char pad_0498[1808]; //0x0498
- int32_t MoveSpeed; //0x0BA8
- int32_t AttackSpeed; //0x0BAC
- int32_t CastSpeed; //0x0BB0
- char pad_0BB4[844]; //0x0BB4
- int32_t Rage[2]; //0x0F00
- char pad_0F08[520]; //0x0F08
- int32_t Resists[4]; //0x1110
- char pad_1120[112]; //0x1120
- int32_t Level; //0x1190
- char pad_1194[19564]; //0x1194
- Vector3 Crosshair; //0x5E00
- char pad_5E0C[4980]; //0x5E0C
- int32_t Crit; //0x7180
- int32_t CritMax; //0x7184
- int32_t Luck; //0x7188
- int32_t LuckMax; //0x718C
- int32_t Fishing; //0x7190
- int32_t FishingMax; //0x7194
- int32_t Gathering; //0x7198
- int32_t GatheringMax; //0x719C
- char pad_71A0[2344]; //0x71A0
- float Mastery[44]; //0x7AC8
- }; //Size: 0x7B78
- class LocalMount {
- public:
- char pad_0000[8]; //0x0000
- Vector3 PositionGround; //0x0008
- char pad_0014[84]; //0x0014
- wchar_t* Name; //0x0068
- char pad_0070[10920]; //0x0070
- int32_t Accel; //0x2B18
- int32_t Speed; //0x2B1C
- int32_t Turn; //0x2B20
- int32_t Brake; //0x2B24
- }; //Size: 0x2B28
- class Camera {
- public:
- char pad_0000[88]; //0x0000
- float Roll; //0x0058
- float Pich; //0x005C
- char pad_0060[8]; //0x0060
- float Yaw; //0x0068
- char pad_006C[880]; //0x006C
- float Distance; //0x03DC
- }; //Size: 0x03E0
- class LocalGameClient {
- public:
- char pad_0000[56]; //0x0000
- class Camera* pCamera; //0x0038
- }; //Size: 0x0040
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement