Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //=================================================================================================================================================//
- //====================================================== All of This shit is Typed by Aimar Adhitya ===============================================//
- //=================================================================================================================================================//
- #include "stdafx.h"
- #include "Class.h"
- #include "HackShop.h"
- #include "Class2.h"
- #include "Function.h"
- #include "CMemory.h"
- #include "Definitions.h"
- #include "Option.h"
- #include "CTimer.h"
- #include "CLog.h"
- #include "CTools.h"
- //=================================================================================================================================================//
- bool bIsAlreadyInGame = false;
- sGameHacks GameHacks = {0};
- DWORD WINAPI GameHack(LPVOID Arg)
- {
- for(int i = 0; i < 16; i++)
- {
- szPartyPassword[i] = 0;
- szPlazaPassword[i] = 0;
- }
- while(1){
- try
- {
- Sleep(47);
- // ================================================================================== //
- CMyInfo* Info = CMyInfo::GetMyInfo();
- CHeroInfo* Hero = CHeroInfo::GetHeroInfo();
- CInventory* Invent = CInventory::GetInventory();
- CBattleRoomMgr* Room = CBattleRoomMgr::GetBattleRoomMgr();
- CExcavationManager* Relic = CExcavationManager::GetExcavationManager();
- CRecharge* Enchance = CRecharge::GetRecharge();
- // ================================================================================== //
- if(Info && Hero && Invent && Room && Relic && Enchance){
- if(!bIsAlreadyInGame){
- if(Info->m_pNick){
- if(Info->m_pNick->m_pNick){
- bIsAlreadyInGame = true;
- } else bIsAlreadyInGame = false;
- } else bIsAlreadyInGame = false;
- }
- }
- if(GameHacks.Special.DropItem)
- {
- if(!memcmp((void*)(ResultDropItem), (PBYTE)"\x8B", 1)){
- Memory->WriteJump(ResultDropItem, (DWORD)hkDropItem, 9);
- }
- switch(GameHacks.Special.DropItemItem)
- {
- case 0:dropItemCode = 400316;break;
- case 1:dropItemCode = 400364;break;
- case 2:dropItemCode = 211000;break;
- case 3:dropItemCode = 401001;break;
- case 4:dropItemCode = 401003;break;
- case 5:dropItemCode = 401004;break;
- case 6:dropItemCode = 500001;break;
- case 7:dropItemCode = 400303;break;
- case 8:dropItemCode = 400304;break;
- case 9:dropItemCode = 400305;break;
- case 10:dropItemCode = 400370;break;
- case 11:dropItemCode = 400322;break;
- case 12:dropItemCode = 400301;break;
- case 13:dropItemCode = 11011;break;
- case 14:dropItemCode = 400312;break;
- case 15:dropItemCode = 400321;break;
- case 16:dropItemCode = 400335;break;
- case 17:dropItemCode = 400337;break;
- case 18:dropItemCode = 400359;break;
- case 19:dropItemCode = 400341;break;
- case 20:dropItemCode = 400352;break;
- case 21:dropItemCode = 400351;break;
- case 22:dropItemCode = 311262;break;
- case 23:dropItemCode = 311306;break;
- case 24:dropItemCode = 111229;break;
- case 25:dropItemCode = 211217;break;
- case 26:dropItemCode = 311215;break;
- case 27:dropItemCode = 211216;break;
- case 28:dropItemCode = 211214;break;
- case 29:dropItemCode = 311242;break;
- case 30:dropItemCode = 311248;break;
- case 31:dropItemCode = 311270;break;
- case 32:dropItemCode = 311278;break;
- case 33:dropItemCode = 311282;break;
- case 34:dropItemCode = 400302;break;
- case 35:dropItemCode = 400343;break;
- case 36:dropItemCode = 400348;break;
- case 37:dropItemCode = 400353;break;
- case 38:dropItemCode = 400354;break;
- case 39:dropItemCode = 400362;break;
- default:dropItemCode = 400316;break;
- }
- }
- // ================================================================================== //
- // HS 330 ITEM
- if(!memcmp((void*)(ResultHackShopItem), (PBYTE)"\xE9", 1) == false)
- Memory->WriteJump(ResultHackShopItem, (DWORD)hkHackShopItem, 8);
- if(!memcmp((void*)(ResultHackShopCash), (PBYTE)"\xE9", 1) == false)
- Memory->WriteJump(ResultHackShopCash, (DWORD)hkHackShopCash, 8);
- if(!memcmp((void*)(ResultHackShopPeso), (PBYTE)"\xE9", 1) == false)
- Memory->WriteJump(ResultHackShopPeso, (DWORD)hkHackShopPeso, 9);
- // ================================================================================== //
- if(bIsAlreadyInGame){
- // ================================================================================== //
- if(GameHacks.Bingo.BingoCoupon){
- for(int i = 0; i < 500; i++){
- if(CQuest::GetQuest(i)){
- CQuest::GetQuest(i)->Complete();
- }
- }
- }
- // ================================================================================== //
- static int LoadGetQuest = 0;
- if(GameHacks.Simple.SkipQuest && !LoadGetQuest){
- for(int i = 1500; i > 50; i--){
- if(CQuest::GetQuest(i)){
- CQuest::GetQuest(i)->Complete();
- }
- }
- LoadGetQuest = 1;
- }
- // ================================================================================== //
- if(GameHacks.Others.SkipQuest100Days == 1){
- Function_3(ResultBaseMenu, (DWORD)0x330, (DWORD)0x4, 0x0, (DWORD)0xC, 2150);
- Function_3(ResultBaseMenu, (DWORD)0x330, (DWORD)0x4, 0x0, (DWORD)0x10, 1);
- }
- if(GameHacks.Others.SkipQuest100Days == 2){
- Function_3(ResultBaseMenu, (DWORD)0x330, (DWORD)0x4, 0x0, (DWORD)0xC, 2151);
- Function_3(ResultBaseMenu, (DWORD)0x330, (DWORD)0x4, 0x0, (DWORD)0x10, 1);
- }
- // ================================================================================== //
- static int LoadGetQuest365Days = 0;
- if(GameHacks.Others.SkipQuest365Days && !LoadGetQuest365Days){
- for(int i = 890; i <= 890;){
- if(CQuest::GetQuest(i)){
- CQuest::GetQuest(i)->Complete();
- }
- }
- LoadGetQuest365Days = 1;
- }
- // ================================================================================== //
- // Quest Hero
- if(GameHacks.Others.HeroQuest){
- if(GetAsyncKeyState(VK_HOME) & 0x1){
- int id = 0;
- if(GameHacks.Others.HeroQuestSelect < 99)
- id = 1010 + (10* GameHacks.Others.HeroQuestSelect);
- else
- id = 5000 + (6* (GameHacks.Others.HeroQuestSelect-99));
- CQuest::GetQuest(0)->SetID(id+3);
- CQuest::GetQuest(0)->Complete();
- CQuest::GetQuest(1)->SetID(id+4);
- CQuest::GetQuest(1)->Complete();
- CQuest::GetQuest(2)->SetID(id+5);
- CQuest::GetQuest(2)->Complete();
- CQuest::GetQuest(3)->SetID(id+6);
- CQuest::GetQuest(3)->Complete();
- CQuest::GetQuest(4)->SetID(id+7);
- CQuest::GetQuest(4)->Complete();
- Beep(800, 100);
- Hero->m_pLoading = 2;
- }
- }
- // Quest Hero 0
- if(GameHacks.Others.HeroQuest1 == 1){
- if(GetAsyncKeyState(VK_HOME) & 0x1){
- int id = 0;
- if(GameHacks.Others.HeroQuestSelect < 99)
- id = 1011 + (10* GameHacks.Others.HeroQuestSelect1);
- else
- id = 5001 + (6* (GameHacks.Others.HeroQuestSelect1-99));
- CQuest::GetQuest(0)->SetID(id+3);
- CQuest::GetQuest(0)->Complete();
- CQuest::GetQuest(1)->SetID(id+4);
- CQuest::GetQuest(1)->Complete();
- CQuest::GetQuest(2)->SetID(id+5);
- CQuest::GetQuest(2)->Complete();
- CQuest::GetQuest(3)->SetID(id+6);
- CQuest::GetQuest(3)->Complete();
- CQuest::GetQuest(4)->SetID(id+7);
- CQuest::GetQuest(4)->Complete();
- Beep(800, 100);
- Hero->m_pLoading = 2;
- }
- }
- // Quest Hero 20
- if(GameHacks.Others.HeroQuest2 == 1){
- if(GetAsyncKeyState(VK_HOME) & 0x1){
- int id = 0;
- if(GameHacks.Others.HeroQuestSelect < 99)
- id = 1012 + (10* GameHacks.Others.HeroQuestSelect2);
- else
- id = 5002 + (6* (GameHacks.Others.HeroQuestSelect2-99));
- CQuest::GetQuest(0)->SetID(id+3);
- CQuest::GetQuest(0)->Complete();
- CQuest::GetQuest(1)->SetID(id+4);
- CQuest::GetQuest(1)->Complete();
- CQuest::GetQuest(2)->SetID(id+5);
- CQuest::GetQuest(2)->Complete();
- CQuest::GetQuest(3)->SetID(id+6);
- CQuest::GetQuest(3)->Complete();
- CQuest::GetQuest(4)->SetID(id+7);
- CQuest::GetQuest(4)->Complete();
- Beep(800, 100);
- Hero->m_pLoading = 2;
- }
- }
- // Quest Hero 40
- if(GameHacks.Others.HeroQuest3 == 1){
- if(GetAsyncKeyState(VK_HOME) & 0x1){
- int id = 0;
- if(GameHacks.Others.HeroQuestSelect < 99)
- id = 1013 + (10* GameHacks.Others.HeroQuestSelect3);
- else
- id = 5003 + (6* (GameHacks.Others.HeroQuestSelect3-99));
- CQuest::GetQuest(0)->SetID(id+3);
- CQuest::GetQuest(0)->Complete();
- CQuest::GetQuest(1)->SetID(id+4);
- CQuest::GetQuest(1)->Complete();
- CQuest::GetQuest(2)->SetID(id+5);
- CQuest::GetQuest(2)->Complete();
- CQuest::GetQuest(3)->SetID(id+6);
- CQuest::GetQuest(3)->Complete();
- CQuest::GetQuest(4)->SetID(id+7);
- CQuest::GetQuest(4)->Complete();
- Beep(800, 100);
- Hero->m_pLoading = 2;
- }
- }
- // Quest Hero 60
- if(GameHacks.Others.HeroQuest4 == 1){
- if(GetAsyncKeyState(VK_HOME) & 0x1){
- int id = 0;
- if(GameHacks.Others.HeroQuestSelect < 99)
- id = 1014 + (10* GameHacks.Others.HeroQuestSelect4);
- else
- id = 5004 + (6* (GameHacks.Others.HeroQuestSelect4-99));
- CQuest::GetQuest(0)->SetID(id+3);
- CQuest::GetQuest(0)->Complete();
- CQuest::GetQuest(1)->SetID(id+4);
- CQuest::GetQuest(1)->Complete();
- CQuest::GetQuest(2)->SetID(id+5);
- CQuest::GetQuest(2)->Complete();
- CQuest::GetQuest(3)->SetID(id+6);
- CQuest::GetQuest(3)->Complete();
- CQuest::GetQuest(4)->SetID(id+7);
- CQuest::GetQuest(4)->Complete();
- Beep(800, 100);
- Hero->m_pLoading = 2;
- }
- }
- // ================================================================================== //
- if(GameHacks.Hero.Hero > 0){
- CHero::GetHeroBySlotIdx(GameHacks.Hero.Slot)->SetWeapon(EpicWeaponID[GameHacks.Hero.Hero]);
- CHero::GetHeroBySlotIdx(GameHacks.Hero.Slot)->SetArmor(EpicArmorID[GameHacks.Hero.Hero]);
- CHero::GetHeroBySlotIdx(GameHacks.Hero.Slot)->SetHelmet(EpicHelmetID[GameHacks.Hero.Hero]);
- CHero::GetHeroBySlotIdx(GameHacks.Hero.Slot)->SetCloak(EpicCloakID[GameHacks.Hero.Hero]);
- }
- // ================================================================================== //
- if(GameHacks.Hero.Weapon > 0){
- CHero::GetHeroBySlotIdx(GameHacks.Hero.Slot)->SetWeapon(EpicWeaponID[GameHacks.Hero.Weapon]);
- }
- // ================================================================================== //
- if(GameHacks.Hero.Armor > 0){
- CHero::GetHeroBySlotIdx(GameHacks.Hero.Slot)->SetArmor(EpicArmorID[GameHacks.Hero.Armor]);
- }
- // ================================================================================== //
- if(GameHacks.Hero.Helmet > 0){
- CHero::GetHeroBySlotIdx(GameHacks.Hero.Slot)->SetHelmet(EpicHelmetID[GameHacks.Hero.Helmet]);
- }
- // ================================================================================== //
- if(GameHacks.Hero.Cloak > 0){
- CHero::GetHeroBySlotIdx(GameHacks.Hero.Slot)->SetCloak(EpicCloakID[GameHacks.Hero.Cloak]);
- }
- // ================================================================================== //
- static int PatchNick = 0;
- static char szNick[51];
- if(GameHacks.Others.HckNick && !PatchNick)
- {
- strcpy(szNick, Info->m_pNick->m_pNick);
- strcpy(Info->m_pNick->m_pNick, "[GM]EmptyHack");
- PatchNick = 1;
- }
- else
- if(!GameHacks.Others.HckNick && PatchNick)
- {
- strcpy(Info->m_pNick->m_pNick, szNick);
- PatchNick = 0;
- }
- // ================================================================================== //
- static BYTE SavedFunc[512];
- static bool PatchFunc = false;
- static bool LoadFunc = false;
- if(GameHacks.Others.RemoveFocus && !PatchFunc)
- {
- DWORD pHeadInsertToModalList = (DWORD)(GetProcAddress(GetModuleHandleA("io3DEngine.dll"), "?HeadInsertToModalList@ioWnd@@IAEXXZ"));
- if(pHeadInsertToModalList)
- {
- if(LoadFunc == false)
- for(int i = 0; i < 5; i++){
- SavedFunc[i] = *(BYTE*)(pHeadInsertToModalList+i); LoadFunc = true;}
- Memory->WriteJump(pHeadInsertToModalList, (DWORD)AlwaysReturnTrue, 5);
- PatchFunc = true;
- }
- }
- else
- if(!GameHacks.Others.RemoveFocus && PatchFunc)
- {
- DWORD pHeadInsertToModalList = (DWORD)(GetProcAddress(GetModuleHandleA("io3DEngine.dll"), "?HeadInsertToModalList@ioWnd@@IAEXXZ"));
- for(int i = 0; i < 5; i++)
- *(BYTE*)(pHeadInsertToModalList+i) = SavedFunc[i];
- PatchFunc = false;
- }
- if(GameHacks.Helper.AutoReward)
- {
- static DWORD dwTickCount[2] = {0};
- if(dwTickCount[0] < GetTickCount()){
- Hero->m_pKey->F4 = 2;
- dwTickCount[0] = GetTickCount() + 1500;
- }
- Hero->m_pClick = 256, Sleep(3);
- Hero->m_pClick = 65536, Sleep(3);
- Hero->m_pClick = 0, Sleep(3);
- }
- if(GameHacks.Helper.AutoESC == 1){
- Hero->m_pKey->ESCAPE = 2;
- }
- // ================================================================================== //
- switch(GameHacks.Gear.Enable){
- case 1:GameHacks.Gear.Amount = 10;break;
- case 2:GameHacks.Gear.Amount = 50;break;
- case 3:GameHacks.Gear.Amount = 100;break;
- case 4:GameHacks.Gear.Amount = 300;break;
- case 5:GameHacks.Gear.Amount = 500;break;
- }
- // ================================================================================== //
- static int PatchLockWnd = 0;
- if(GameHacks.Bingo.LockWnd && PatchLockWnd==0)
- {
- DWORD IoWndHideWnd = (DWORD)GetProcAddress(GetModuleHandleA("io3DEngine.dll"), "?HideWnd@ioWnd@@QAEXXZ");
- if(IoWndHideWnd)
- {
- *(BYTE*)(IoWndHideWnd+0x38) = 1;
- PatchLockWnd = 1;
- }
- }
- else
- if(GameHacks.Bingo.LockWnd==0 && PatchLockWnd==1)
- {
- DWORD IoWndHideWnd = (DWORD)GetProcAddress(GetModuleHandleA("io3DEngine.dll"), "?HideWnd@ioWnd@@QAEXXZ");
- if(IoWndHideWnd)
- {
- *(BYTE*)(IoWndHideWnd+0x38) = 0;
- PatchLockWnd = 0;
- }
- }
- // ================================================================================== //
- if(GameHacks.Simple.PermCostume)
- {
- for(int i = 0; i < 64; i++)
- {
- CCostumeInven* Costume = (CCostumeInven*)((DWORD)(Info->m_pCostumeInven)+(DWORD)(i* 0x40));
- if(!IsBadReadPtr(Costume->m_pCostumeName, 4) && !IsBadReadPtr(Costume->m_pCostumePack, 4))
- Costume->m_pStatus = 1;
- }
- }
- // ================================================================================== //
- //TimerDG
- static bool HookedDG = false;
- if(!HookedDG)
- {
- if(Memory->IfNotBadPtr(ResultGetTimerDungeon))
- {
- if(Memory->Read<WORD>(ResultGetTimerDungeon) != 0x0000)
- {
- Memory->WriteJump(ResultGetTimerDungeon, (DWORD)hkTimerDG, 6);
- HookedDG = true;
- }
- }
- }
- // ================================================================================== //
- //SeeRoomPassword
- static bool Done1 = false;
- if(Memory->IfNotBadPtr(ResultPartyInfoWndOnRender) && Done1 == false){
- Memory->WriteJump(ResultPartyInfoWndOnRender, (DWORD)hkPartyInfoWnd, 7);
- Done1 = true;
- }
- static bool Done2 = false;
- if(Memory->IfNotBadPtr(ResultPlazaInfoWndOnRender) && Done2 == false){
- Memory->WriteJump(ResultPlazaInfoWndOnRender, (DWORD)hkPlazaInfoWnd, 7);
- Done2 = true;
- }
- // ================================================================================== //
- if(GameHacks.Special.RoomPassword.Active){
- if(GameHacks.Special.RoomPassword.Active == 1){
- if(szPartyPassword){
- char szTemp[512];
- sprintf(szTemp, "[%s] | [Len: %d]", szPartyPassword, strlen(szPartyPassword));
- strcpy(GameHacks.Special.RoomPassword.szPassword, szTemp);
- }
- }
- if(GameHacks.Special.RoomPassword.Active == 2){
- if(szPlazaPassword){
- char szTemp[512];
- sprintf(szTemp, "[%s] | [Len: %d]", szPlazaPassword, strlen(szPlazaPassword));
- strcpy(GameHacks.Special.RoomPassword.szPassword, szTemp);
- }
- }
- }
- // ================================================================================== //
- if(GameHacks.Special.AntiSniff){
- srand(GetTickCount());
- string alphaKey = "aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsSuUvVwWxXyYzZ";
- char szRand[16];
- for(int i = 0; i < 4; i++)
- szRand[i] = alphaKey[rand() % alphaKey.size()];
- strcpy(Room->m_pPassword->m_pPassword, szRand);
- }
- // ================================================================================== //
- static int PatchFreezeRelic = 0;
- if(GameHacks.Relic.Freeze == 1){
- if(PatchFreezeRelic == 0){
- Memory->WriteJump(ResultSetExcavationDelay, (DWORD)hkFreezeDelayExcavationON, 8);
- PatchFreezeRelic = 1;
- }
- } else
- if(GameHacks.Relic.Freeze == 0 && PatchFreezeRelic == 1){
- Memory->WriteJump(ResultSetExcavationDelay, (DWORD)hkFreezeDelayExcavationON, 8);
- PatchFreezeRelic = 0;
- }
- // ================================================================================== //
- static int PatchFastRelic = 0;
- if(GameHacks.Relic.Fast == 1){
- if(PatchFreezeRelic == 0){
- Memory->WriteJump(ResultSubExcavationDelay, (DWORD)hkFastDelayExcavationON, 6);
- PatchFreezeRelic = 1;
- }
- } else
- if(GameHacks.Relic.Fast == 0 && PatchFastRelic == 1){
- Memory->WriteJump(ResultSubExcavationDelay, (DWORD)hkFastDelayExcavationON, 6);
- PatchFastRelic = 0;
- }
- // ================================================================================== //
- if(GameHacks.Relic.Rate == 1){
- Relic->m_pRate = 99; // Success Rate
- Relic->m_pMaxRate = 1000; // Success Rate Max
- }
- // ================================================================================== //
- if(GameHacks.Relic.Location == 1){
- Relic->m_pLastSpot1 = 0;
- Relic->m_pLastSpot2 = 0;
- Relic->m_pResetSpot = 0;
- }
- // ================================================================================== //
- /*if(GameHacks.Relic.Auto == 1){
- Hero->Key->D = 2;
- }*/
- // ================================================================================== //
- if(GameHacks.Special.HeroUp == 1){
- EncryptValue(&Info->m_pUpgradeHack, 1000);
- }
- // ================================================================================== //
- if(GameHacks.Others.RefreshLoading) {
- if(GetAsyncKeyState(VK_END) & 0x1)
- Hero->m_pLoading = 2;
- }
- if(GameHacks.Others.RefreshLoading2) {
- if(GetAsyncKeyState(VK_END) & 0x1)
- {
- Function_3(ResultBaseMenu, (DWORD)0x330, (DWORD)0x4, 0x0, (DWORD)0x4C, -1);
- Function_3(ResultBaseMenu, (DWORD)0x330, (DWORD)0x4, 0x0, (DWORD)0x50, -1);
- Function_3(ResultBaseMenu, (DWORD)0x330, (DWORD)0x4, 0x0, (DWORD)0x88, 100);
- Function_3(ResultBaseMenu, (DWORD)0x330, (DWORD)0x4, 0x0, (DWORD)0x130, -1);
- Function_3(ResultBaseMenu, (DWORD)0x330, (DWORD)0x4, 0x0, (DWORD)0x134, -1);
- Hero->m_pLoading = 2;
- }
- }
- // ================================================================================== //
- if(GameHacks.Gear.NoLimitEnhance == 1){
- Enchance->m_pMaxUpToUpgrade = 1000;
- }
- // ================================================================================== //
- if(GameHacks.Helper.AutoHit == 1){
- // DirectInput::SetKeyboardState(DIK_D, 1);
- }
- // ================================================================================== //
- if(GameHacks.Helper.AutoClick == 1){
- Hero->m_pClick = 256, Sleep(3);
- Hero->m_pClick = 65536, Sleep(3);
- Hero->m_pClick = 0, Sleep(3);
- }
- // ================================================================================== //
- if(GameHacks.Helper.AutoSpace == 1){
- Hero->m_pKey->Space = 1;
- }
- // ================================================================================== //
- static int BingoResetRestore = 0;
- if(GameHacks.Bingo.ResetBingo == 1 && BingoResetRestore == 0) {
- Memory->WriteJump(ResultSetEndBingo, (DWORD)hkBingoSetEnd_ON, 5);
- BingoResetRestore = 1;
- } else if(GameHacks.Bingo.ResetBingo == 0 && BingoResetRestore == 1){
- Memory->WriteJump(ResultSetEndBingo, (DWORD)hkBingoSetEnd_OFF, 5);
- BingoResetRestore = 0;
- }
- // ================================================================================== //
- static int FakeRespawnRestore = 0;
- if(GameHacks.Special.FakeRespawn == 1 && FakeRespawnRestore == 0) {
- Memory->WriteJump(ResultFakeRespawn, (DWORD)hkFakeRespawn_ON, 6);
- FakeRespawnRestore = 1;
- } else if(GameHacks.Special.FakeRespawn == 0 && FakeRespawnRestore == 1){
- Memory->WriteJump(ResultFakeRespawn, (DWORD)hkFakeRespawn_OFF, 6);
- FakeRespawnRestore = 0;
- }
- // ================================================================================== //
- if(GameHacks.Simple.NoAfk == 1){
- for(int i = 0xA; i <= 0xFA; i += 0x30){
- Memory->Write<BYTE>(Memory->Read<DWORD>(ResultBaseAFK) + i, 0x5, 1);
- }
- }
- // ================================================================================== //
- if(GameHacks.Gear.Enable > 0 && GameHacks.Gear.Sell == 1){
- for(int i = 0; i < GameHacks.Gear.Amount; i++){
- CGearInven* pGear = (CGearInven*)((DWORD)Info->m_pGearInven+(DWORD)(0x48* i));
- pGear->m_pStatus = 0;
- }
- }
- // ================================================================================== //
- if(GameHacks.Gear.Enable > 0 && GameHacks.Gear.Permanent == 1){
- for(int i = 0; i < GameHacks.Gear.Amount; i++){
- CGearInven* pGear = (CGearInven*)((DWORD)Info->m_pGearInven+(DWORD)(0x48* i));
- pGear->m_pStatus = 1;
- }
- }
- // ================================================================================== //
- if(GameHacks.Gear.NoPesoEnhance == 1){
- Enchance->m_pDecreaseUp = 30;
- }
- // ================================================================================== //
- if(GameHacks.Gear.Enable > 0 && GameHacks.Gear.AutoSeal == 1){
- for(int i = 0; i < GameHacks.Gear.Amount; i++){
- CGearInven* pGear = (CGearInven*)((DWORD)Info->m_pGearInven+(DWORD)(0x48* i));
- pGear->m_pSealStatus = 2;
- }
- }
- // ================================================================================== //
- if(GameHacks.Pet.EXP){
- for(int i = 0; i < 20; i++){
- CPet* pPet = (CPet*)((DWORD)Info->m_pPet+(DWORD)(0x38* i));
- pPet->m_pExp = 999;
- }
- }
- // ================================================================================== //
- if(GameHacks.Pet.Level){
- for(int i = 0; i < 20; i++){
- CPet* pPet = (CPet*)((DWORD)Info->m_pPet+(DWORD)(0x38* i));
- pPet->m_pLevel = 100;
- }
- }
- // ================================================================================== //
- if(GameHacks.Pet.Rank){
- for(int i = 0; i < 20; i++){
- CPet* pPet = (CPet*)((DWORD)Info->m_pPet+(DWORD)(0x38* i));
- pPet->Rank = 5;
- }
- }
- // ================================================================================== //
- if(GameHacks.Room.KickPingBattle == 1){
- Hero->m_pFaction->m_pKickPing = 0;
- }
- // ================================================================================== //
- if(GameHacks.Room.AutoStartLadder == 1){
- Hero->m_pFaction->m_pStartState = 0;
- }
- // ================================================================================== //
- if(GameHacks.Simple.SlotHero){
- Info->m_pSlotHero1 = 200;
- Info->m_pSlotHero2 = 200;
- }
- // ================================================================================== //
- static int PatchNoToken = 0;
- if(GameHacks.GB.NoToken && !PatchNoToken){
- Memory->WriteJump(ResultOnUseMonsterCoin, ResultOnUseMonsterCoinJMP, 6);
- Memory->WriteJump(ResultOnUseMonsterCoin2, ResultOnUseMonsterCoinJMPTest, 6);
- Memory->WriteJump(ResultOnUseMonsterCoinTest, ResultOnUseMonsterCoinJMPTest, 6);
- PatchNoToken = 1;
- }
- else
- if(!GameHacks.GB.NoToken && PatchNoToken){
- Memory->Write(ResultOnUseMonsterCoin, "\x0F\x84\x02\x01\x00\x00", 6);
- Memory->Write(ResultOnUseMonsterCoin2, "\xEB\x3E\x8B\x4D\x10\x51", 6);
- Memory->Write(ResultOnUseMonsterCoinTest, "\x0F\x84\xCD\x00\x00\x00", 6);
- PatchNoToken = 0;
- }
- // ================================================================================== //
- static int PatchCadetUP = 0, ValueCadetUP = 0;
- if(GameHacks.Simple.CadetUp && !PatchCadetUP){
- ValueCadetUP = Info->m_pGrade;
- Info->m_pGrade = 54;
- PatchCadetUP = 1;
- } else if(!GameHacks.Simple.CadetUp && PatchCadetUP){
- Info->m_pGrade = ValueCadetUP;
- PatchCadetUP = 0;
- }
- // ================================================================================== //
- static int PatchStyleHack = 0;
- if(GameHacks.Hero.StyleHack == 1 && PatchStyleHack == 0){
- for(int i = 0; i < 179; i++){
- CHeroData* pHero = (CHeroData*)((DWORD)Info->m_pHeroData+(DWORD)(0x10* i));
- if(pHero->m_pHeroSize == Info->m_pHeroData->m_pHeroSize){
- pHero->m_pLevel = 100;
- }
- }
- PatchStyleHack = 1;
- }
- else
- if(GameHacks.Hero.StyleHack == 0 && PatchStyleHack == 1){
- PatchStyleHack = 0;
- }
- // ================================================================================== //
- if(GameHacks.Simple.NoPesoPenalty == 1){
- EncryptValue(&Info->m_pPenalty, 0);
- }
- // ================================================================================== //
- if(GameHacks.Others.UnlimitedInventory == 1){
- Invent->m_pMaxItem = 5000;
- }
- // ================================================================================== //
- if(GameHacks.Room.Custom == 1){
- EncryptValue(&Room->m_pCustomMode, 1);
- }
- // ================================================================================== //
- if(GameHacks.Room.KickPingBattle == 1){
- Room->m_pKickPing = 0;
- }
- // ================================================================================== //
- if(GameHacks.Room.Slot8 == 1){
- Room->m_pSlotBlue = 8;
- Room->m_pSlotRed = 8;
- }
- // ================================================================================== //
- if(GameHacks.Room.Size8 == 1){
- Room->m_pSizeBlue = 8;
- Room->m_pSizeRed = 8;
- }
- // ================================================================================== //
- if(GameHacks.Simple.CustomLadder){
- if(GetAsyncKeyState(VK_F8) & 0x1){
- Hero->m_pFaction->m_pRoomType = 0;
- }
- }
- // ================================================================================== //
- if(GameHacks.Hero.Sell == 1){
- CHero::GetHeroBySlotIdx(GameHacks.Hero.Slot)->m_pStatus = 0;
- }
- // ================================================================================== //
- if(GameHacks.Hero.Permanent == 1){
- //Info->m_pHero->GetHeroBySlotIdx(GameHacks.Hero.Slot)->SetHeroStatus(1);
- }
- // ================================================================================== //
- static int PatchNoFemale = 0;
- if(GameHacks.HackShop.Female && !PatchNoFemale){
- if(CShop::GetShopByIndex(STYLESHOPINDEX))
- {
- CShop::GetShopByIndex(STYLESHOPINDEX)->GetItemByIndex(1)->m_pItemCode = CShop::GetShopByIndex(STYLESHOPINDEX)->GetItemByIndex(0)->m_pItemCode;
- CShop::GetShopByIndex(STYLESHOPINDEX)->GetItemByIndex(1)->m_pItemName = CShop::GetShopByIndex(STYLESHOPINDEX)->GetItemByIndex(0)->m_pItemName;
- CShop::GetShopByIndex(STYLESHOPINDEX)->GetItemByIndex(1)->m_pItemRsrc = CShop::GetShopByIndex(STYLESHOPINDEX)->GetItemByIndex(0)->m_pItemRsrc;
- }
- PatchNoFemale = 1;
- }
- // ================================================================================== //
- static int PatchNoCosu = 0;
- if(GameHacks.HackShop.SpecialCosuMixer && !PatchNoCosu){
- if(CShop::GetShopByIndex(COSTUMESHOPINDEX))
- {
- CShop::GetShopByIndex(COSTUMESHOPINDEX)->GetItemByIndex(0)->m_pItemCode = CShop::GetShopByIndex(STYLESHOPINDEX)->GetItemByIndex(0)->m_pItemCode;
- CShop::GetShopByIndex(COSTUMESHOPINDEX)->GetItemByIndex(0)->m_pItemName = CShop::GetShopByIndex(STYLESHOPINDEX)->GetItemByIndex(0)->m_pItemName;
- CShop::GetShopByIndex(COSTUMESHOPINDEX)->GetItemByIndex(0)->m_pItemRsrc = CShop::GetShopByIndex(STYLESHOPINDEX)->GetItemByIndex(0)->m_pItemRsrc;
- }
- PatchNoCosu = 1;
- }
- // ================================================================================== //
- if(GameHacks.Hero.Beyond == 1){
- //Info->m_pHero->GetHeroBySlotIdx(GameHacks.Hero.Slot)->SetBeyond(705101525);
- }
- // ================================================================================== //
- if(GameHacks.Hero.Stat == 1){
- //Info->m_pHero->GetHeroBySlotIdx(GameHacks.Hero.Slot)->SetWeaponUpgrade(30);
- //Info->m_pHero->GetHeroBySlotIdx(GameHacks.Hero.Slot)->SetArmorUpgrade(30);
- //Info->m_pHero->GetHeroBySlotIdx(GameHacks.Hero.Slot)->SetHelmetUpgrade(30);
- //Info->m_pHero->GetHeroBySlotIdx(GameHacks.Hero.Slot)->SetCloakUpgrade(30);
- }
- // ================================================================================== //
- if(GameHacks.Simple.PesoCash == 1){
- Info->m_pPeso = 99999999;
- Info->m_pCash = 99999999;
- }
- // ================================================================================== //
- static int PatchBounceKiller = 0, ValueBounceKiller = 0;
- if(GameHacks.Hard.Bounce && !PatchBounceKiller){
- ValueBounceKiller = *(DWORD*)(ResultBounceKiller);
- Memory->Write(ResultBounceKiller, 3244, 4);
- PatchBounceKiller = 1;
- } else if(!GameHacks.Hard.Bounce && PatchBounceKiller){
- Memory->Write(ResultBounceKiller, ValueBounceKiller, 4);
- PatchBounceKiller = 0;
- }
- // ================================================================================== //
- if(GameHacks.Kick.Zombie)
- {
- CHero::GetHeroBySlotIdx(0)->SetWeapon(11011);
- CHero::GetHeroBySlotIdx(0)->SetArmor(111011);
- CHero::GetHeroBySlotIdx(0)->SetHelmet(211011);
- CHero::GetHeroBySlotIdx(0)->SetCloak(311011);
- }
- // ================================================================================== //
- /*if(!Framework::BattleManager()->IsInBattle()){
- if(GameHacks.Ladder.MeGb == 1 || GameHacks.Ladder.MeBot == 1){
- Hero->m_pKey->Space = 1;
- if(GameHacks.Ladder.AutoReady == 1){
- if(Hero->m_pFaction->StartState == 0){
- Hero->MouseX = 650;
- Hero->MouseY = 500;
- if(Hero->MouseX == 650 && Hero->MouseY == 500){
- Hero->Click = 256, Sleep(3);
- Hero->Click = 65536, Sleep(3);
- Hero->Click = 0, Sleep(3);
- }
- }
- }
- }
- }*/
- if(IsInBattle()){
- // ================================================================================== //
- /*if(GameHacks.Ladder.MeGb == 1){
- CPlayer* m_pPlayer = Framework::BattleManager()->GetMyChara();
- if(m_pPlayer){
- if(m_pPlayer->m_pMap){
- if(m_pPlayer->m_pMap->m_pLocalPos){
- for(int i = 0; i < 32; i++){
- BattleContext* pBot = PlayerManager->GetPlayerByIdx(i);
- if(pBot){
- if(pBot->m_pMap){
- if(pBot->m_pMap->m_pLocalPos){
- m_pPlayer->m_pMap->m_pLocalPos->X = pBot->m_pMap->m_pLocalPos->X;
- m_pPlayer->m_pMap->m_pLocalPos->Z = pBot->m_pMap->m_pLocalPos->Z + 100.0f;
- }
- }
- }
- }
- Hero->m_pKey->Down = 3;
- Hero->m_pKey->D = 2;
- }
- }
- }
- }
- if(GameHacks.Ladder.MeBot == 1){
- CPlayer* m_pPlayer = Framework::BattleManager()->GetMyChara();
- if(m_pPlayer){
- m_pPlayer->HP = 0;
- }
- }*/
- // ================================================================================== //
- CGamePlayerManager* PlayerManager = CGamePlayerManager::GetPlayerManager();
- CPlayer* LocalPlayer = PlayerManager->GetMyPlayer();
- CBattle* LocalBattle = CBattle::GetBattle();
- if(PlayerManager == NULL || LocalPlayer == NULL || LocalBattle == NULL) continue;
- int PlayerCount = LocalBattle->m_pTotalSizePlayer;
- // ================================================================================== //
- if(GameHacks.Special.Maddness.Active == 1){
- static int LastSlot = GameHacks.Special.Maddness.Slot, SetLastSlot = 0;
- CPlayer* m_pPlayer = PlayerManager->GetPlayerByIdx(GameHacks.Special.Maddness.Slot);
- if(GameHacks.Special.Maddness.Slot != LastSlot){
- SetLastSlot = GameHacks.Special.Maddness.Maddness = 0;
- }
- if(SetLastSlot == 0){
- LastSlot = GameHacks.Special.Maddness.Slot;
- SetLastSlot = 1;
- }
- if(m_pPlayer){
- strcpy(GameHacks.Special.Maddness.szNick, m_pPlayer->m_pNick->m_pNick);
- if(m_pPlayer->IsMe() == false){
- if(GameHacks.Special.Maddness.Maddness){
- m_pPlayer->m_pControl = 1;
- }
- }
- } else {
- strcpy(GameHacks.Special.Maddness.szNick, "<Unknown>");
- }
- }
- // ================================================================================== //
- static int LoadMyKillEnemy = 0;
- if(GameHacks.Special.KillEnemy.Active == 1){
- static int LastSlot = GameHacks.Special.KillEnemy.Slot, SetLastSlot = 0;
- CPlayer* m_pPlayer = PlayerManager->GetPlayerByIdx(GameHacks.Special.KillEnemy.Slot);
- if(GameHacks.Special.KillEnemy.Slot != LastSlot){
- SetLastSlot = GameHacks.Special.KillEnemy.Kill = 0;
- }
- if(SetLastSlot == 0){
- LastSlot = GameHacks.Special.KillEnemy.Slot;
- SetLastSlot = 1;
- }
- if(m_pPlayer){
- strcpy(GameHacks.Special.KillEnemy.szNick, m_pPlayer->m_pNick->m_pNick);
- if(LocalPlayer){
- if(LocalPlayer->m_pTeam > 0){
- LocalPlayer->m_pControl = 0;
- }
- if(m_pPlayer->IsMe() == false){
- if(GameHacks.Special.KillEnemy.Kill){
- if(m_pPlayer->m_pHPReal > 0.0f)
- {
- m_pPlayer->m_pControl = 1;
- m_pPlayer->m_pAction = 0;
- EncryptValue(&m_pPlayer->m_pHP, 0);
- if(m_pPlayer->m_pMap){
- if(m_pPlayer->m_pMap->m_pPos){
- m_pPlayer->m_pMap->m_pPos->vPos.y = 0;
- }
- }
- m_pPlayer->m_pAction = 0;
- Sleep(10);m_pPlayer->m_pControl = 0;
- }
- }
- }
- LocalPlayer->m_pControl = 1;
- }
- LoadMyKillEnemy = 1;
- } else {
- strcpy(GameHacks.Special.KillEnemy.szNick, "<Unknown>");
- }
- }else if(GameHacks.Special.KillEnemy.Active == 0 && LoadMyKillEnemy == 1){
- if(LocalPlayer)
- {
- for(int i = 0; i < 32; i++){
- CPlayer* m_pPlayer = PlayerManager->GetPlayerByIdx(i);
- if(m_pPlayer) {
- if(m_pPlayer->IsEnemy()){
- m_pPlayer->m_pControl = 0;
- }
- }
- }
- if(LocalPlayer) {
- if(LocalPlayer->m_pTeam > 0){
- if(LocalPlayer->m_pControl == 0){
- LocalPlayer->m_pControl = 1;
- }
- }
- }
- LoadMyKillEnemy = 0;
- }
- }
- // ================================================================================== //
- static int LoadMyKiller = 0;
- if(GameHacks.Special.FastKiller.Active){
- if(GameHacks.Special.FastKiller.Kill){
- if(LocalPlayer){
- if(LocalPlayer->m_pTeam > 0){
- if(LocalPlayer->m_pControl == 1){
- LocalPlayer->m_pControl = 0;
- }
- }
- LoadMyKiller = 1;
- for(int i = 0; i < PlayerCount; i++){
- if(CPlayer* m_pPlayer = PlayerManager->GetPlayerByIdx(i)) {
- if(GameHacks.Special.FastKiller.Team == 1){
- if(m_pPlayer->IsTeam()){
- continue;
- }
- }
- if(m_pPlayer->IsEnemy()){
- if(LoadMyKiller == 1){
- m_pPlayer->m_pControl = 1;
- m_pPlayer->m_pAction = 0;
- EncryptValue(&m_pPlayer->m_pHP, 0);
- if(m_pPlayer->m_pMap){
- if(m_pPlayer->m_pMap->m_pPos){
- m_pPlayer->m_pMap->m_pPos->vPos.y = 0;
- }
- }
- m_pPlayer->m_pAction = 0;
- Sleep(10);m_pPlayer->m_pControl = 0;
- }
- if(LocalPlayer->m_pTeam > 0){
- if(LocalPlayer->m_pControl == 0){
- LocalPlayer->m_pControl = 1;
- }
- }
- }
- }
- }
- }
- }
- } else if(GameHacks.Special.FastKiller.Kill == 0 && LoadMyKiller == 1){
- if(LocalPlayer){
- for(int i = 0; i < PlayerCount; i++){
- if(CPlayer* m_pPlayer = PlayerManager->GetPlayerByIdx(i)) {
- if(m_pPlayer->IsEnemy()){
- m_pPlayer->m_pControl = 0;
- }
- }
- }
- if(LocalPlayer->m_pTeam > 0){
- if(LocalPlayer->m_pControl == 0){
- LocalPlayer->m_pControl = 1;
- }
- }
- strcpy(GameHacks.Special.FastKiller.szNick, "<None>");
- LoadMyKiller = 0;
- }
- }
- // ================================================================================== //
- static int PatchControlKick = 0;
- if(GameHacks.Kick.Control)
- {
- if(CPlayer* m_pPlayer = PlayerManager->GetAliveEnemy())
- {
- if(LocalPlayer->m_pTeam > 0){
- if(LocalPlayer->m_pControl == 1){
- LocalPlayer->m_pControl = 0;
- }
- }
- if(m_pPlayer)
- {
- m_pPlayer->m_pAction = 0;
- m_pPlayer->m_pControl = 1;
- PatchControlKick = 1;
- }
- }
- }
- else
- if(!GameHacks.Kick.Control && !PatchControlKick)
- {
- if(LocalPlayer){
- for(int i = 0; i < PlayerCount; i++){
- if(CPlayer* m_pPlayer = PlayerManager->GetPlayerByIdx(i)) {
- if(m_pPlayer->IsEnemy()){
- m_pPlayer->m_pControl = 0;
- }
- }
- }
- if(LocalPlayer->m_pTeam > 0){
- if(LocalPlayer->m_pControl == 0){
- LocalPlayer->m_pControl = 1;
- }
- }
- PatchControlKick = 0;
- }
- }
- // ================================================================================== //
- if(GameHacks.Player.Delay == 1) {
- if(LocalPlayer){
- if(LocalPlayer->m_pGear){
- if(LocalPlayer->m_pGear->m_pWeapon) EncryptValue(&LocalPlayer->m_pGear->m_pWeapon->m_pDelay, 100.0f);
- if(LocalPlayer->m_pGear->m_pArmor) EncryptValue(&LocalPlayer->m_pGear->m_pArmor->m_pDelay, 100.0f);
- if(LocalPlayer->m_pGear->m_pHelmet) EncryptValue(&LocalPlayer->m_pGear->m_pHelmet->m_pDelay, 100.0f);
- if(LocalPlayer->m_pGear->m_pCloak) EncryptValue(&LocalPlayer->m_pGear->m_pCloak->m_pDelay, 100.0f);
- }
- }
- }
- // ================================================================================== //
- if(GameHacks.GB.TimerTeleport)
- {
- if(TimerDungeon > 0)
- {
- if(TimerDungeon >= ((GameHacks.GB.Hour * 86400000) + (GameHacks.GB.Min * 60000) + (GameHacks.GB.Sec * 1000)))
- {
- if(LocalPlayer){
- if(LocalPlayer->m_pMap){
- if(LocalPlayer->m_pMap->m_pPos){
- if(Room->m_pMode == 17){
- LocalPlayer->m_pMap->m_pPos->vPos.x = 7531.0f;
- LocalPlayer->m_pMap->m_pPos->vPos.z = -73.0f;
- }
- if(Room->m_pMode == 18){
- LocalPlayer->m_pMap->m_pPos->vPos.x = 8918.0f;
- LocalPlayer->m_pMap->m_pPos->vPos.z = -1180.0f;
- }
- if(Room->m_pMode == 19){
- LocalPlayer->m_pMap->m_pPos->vPos.x = 4663.0f;
- LocalPlayer->m_pMap->m_pPos->vPos.z = 358.0f;
- }
- if(Room->m_pMode == 22){
- LocalPlayer->m_pMap->m_pPos->vPos.x = 1708.0f;
- LocalPlayer->m_pMap->m_pPos->vPos.z = 3243.0f;
- }
- }
- }
- for(int i = 0; i < 64; i++)
- {
- SetForegroundWindow(GetActiveWindow());
- Hero->m_pKey->Right = 3;
- }
- for(int i = 0; i < 64; i++)
- {
- LocalPlayer->m_pAction = 0x5;
- LocalPlayer->m_pHitAction = 256;
- }
- // if fail, try alternative one
- for(int i = 0; i < 64; i++)
- {
- SetForegroundWindow(GetActiveWindow());
- Hero->m_pKey->D = 2;
- }
- }
- }
- }
- }
- // ================================================================================== //
- if(GameHacks.Player.HP == 1){
- if(LocalPlayer){
- EncryptValue(&LocalPlayer->m_pHP, 251.0f);
- }
- }
- // ================================================================================== //
- if(GameHacks.Player.Refill == 1){
- if(LocalPlayer){
- if(GetAsyncKeyState('R'))
- {
- if(LocalPlayer->m_pHPReal < 250.0f)
- {
- float NextHP = LocalPlayer->m_pHPReal + 2.5f;
- EncryptValue(&LocalPlayer->m_pHP, NextHP);
- }
- else
- {
- EncryptValue(&LocalPlayer->m_pHP, 251.0f);
- }
- }
- }
- }
- // ================================================================================== //
- if(GameHacks.Player.NPC == 1){
- for(int i = 0; i < PlayerCount; i++){
- CPlayer* Bot = PlayerManager->GetPlayerByIdx(i);
- if(Bot){
- if(Bot->IsBot()){
- Bot->m_pHP = 0;
- }
- }
- }
- }
- // ================================================================================== //
- if(GameHacks.Player.BotKill == 1){
- if(LocalPlayer){
- LocalPlayer->m_pAction = 0;
- }
- }
- // ================================================================================== //
- static int RestoreViewMode = 0;
- if(GameHacks.Player.ViewMode == 1) {
- if(LocalPlayer){
- LocalPlayer->m_pAction = 0x24;
- RestoreViewMode = 1;
- }
- } else if(GameHacks.Player.ViewMode == 0 && RestoreViewMode == 1){
- if(LocalPlayer){
- LocalPlayer->m_pAction = 0;
- RestoreViewMode = 0;
- }
- }
- // ================================================================================== //
- if(GameHacks.Player.Invicible == 1){
- if(LocalPlayer){
- LocalPlayer->m_pMaxBuff = -1;
- }
- }
- // ================================================================================== //
- if(GameHacks.Player.Speed){
- if(LocalPlayer){
- if(GameHacks.Player.Speed == 1){
- EncryptValue(&LocalPlayer->m_pSpeed, 353.0f* 2);
- }
- if(GameHacks.Player.Speed == 2){
- EncryptValue(&LocalPlayer->m_pSpeed, 353.0f* 3);
- }
- if(GameHacks.Player.Speed == 3){
- EncryptValue(&LocalPlayer->m_pSpeed, 353.0f* 5);
- }
- if(GameHacks.Player.Speed == 4){
- EncryptValue(&LocalPlayer->m_pSpeed, 353.0f* 10);
- }
- }
- }
- // ================================================================================== //
- if(GameHacks.Player.FastHit == 1){
- if(LocalPlayer){
- LocalPlayer->m_pTimerHitEnd = 150;
- }
- }
- // ================================================================================== //
- if(GameHacks.Hard.AttackMove == 1){
- if(LocalPlayer){
- LocalPlayer->m_pStayAttackSize = LocalPlayer->m_pStayAttack;
- }
- }
- // ================================================================================== //
- if(GameHacks.Helper.AutoJump == 1){
- if(LocalPlayer){
- LocalPlayer->m_pIsJump = 0x44960000;
- }
- }
- // ================================================================================== //
- if(GameHacks.Hard.InfinityJump == 1){
- if(GetAsyncKeyState(0x41) & 0x1){
- if(LocalPlayer){
- LocalPlayer->JumpHigh = 0;
- }
- }
- }
- // ================================================================================== //
- if(GameHacks.Special.AirDash == 1)
- {static __int32 oVal = 0; static bool LoadVal = false;
- if(!LoadVal){
- if(LocalPlayer){
- oVal = LocalPlayer->m_pAirDash;
- LoadVal = true;
- }
- }
- if(LocalPlayer){
- LocalPlayer->m_pAirDash = oVal;
- }
- }
- // ================================================================================== //
- if(GameHacks.Player.FastGetUp == 1){
- if(LocalPlayer){
- LocalPlayer->m_pMSToWakeUP = 0;
- }
- }
- // ================================================================================== //
- if(GameHacks.Player.MaxCombo == 1){
- if(LocalPlayer){
- LocalPlayer->m_pCombo = 100;
- }
- }
- // ================================================================================== //
- if(GameHacks.Player.BossMode){
- if(LocalPlayer){
- LocalPlayer->m_pBoss = 1;
- }
- }
- // ================================================================================== //
- if(GameHacks.GB.TeleportDungeon == 1){
- if(GetAsyncKeyState(VK_CAPITAL) & 0x1){
- if(LocalPlayer){
- if(LocalPlayer->m_pMap){
- if(LocalPlayer->m_pMap->m_pPos){
- if(Room->m_pMode == 17){
- LocalPlayer->m_pMap->m_pPos->vPos.x = 7531.0f;
- LocalPlayer->m_pMap->m_pPos->vPos.z = -73.0f;
- }
- if(Room->m_pMode == 18){
- LocalPlayer->m_pMap->m_pPos->vPos.x = 8918.0f;
- LocalPlayer->m_pMap->m_pPos->vPos.z = -1180.0f;
- }
- if(Room->m_pMode == 19){
- LocalPlayer->m_pMap->m_pPos->vPos.x = 4663.0f;
- LocalPlayer->m_pMap->m_pPos->vPos.z = 358.0f;
- }
- if(Room->m_pMode == 22){
- LocalPlayer->m_pMap->m_pPos->vPos.x = 1708.0f;
- LocalPlayer->m_pMap->m_pPos->vPos.z = 3243.0f;
- }
- }
- }
- }
- }
- }
- // ================================================================================== //
- if(GameHacks.GB.FreezeDungeon == 1){
- for(int i = 0; i < PlayerCount; i++){
- CPlayer* Bot = PlayerManager->GetPlayerByIdx(i);
- if(Bot){
- if(Bot->IsBot()){
- Bot->m_pSpeed = 0;
- if(Bot->m_pGear->m_pWeapon) Bot->m_pGear->m_pWeapon->m_pDelay = 0;
- if(Bot->m_pGear->m_pArmor) Bot->m_pGear->m_pArmor->m_pDelay = 0;
- if(Bot->m_pGear->m_pHelmet) Bot->m_pGear->m_pHelmet->m_pDelay = 0;
- if(Bot->m_pGear->m_pCloak) Bot->m_pGear->m_pCloak->m_pDelay = 0;
- }
- }
- }
- }
- // ================================================================================== //
- if(GameHacks.Player.EndAction == 1){
- if(GetAsyncKeyState(VK_LSHIFT) || GetAsyncKeyState(VK_RSHIFT)){
- if(LocalPlayer){
- LocalPlayer->m_pAction = 0x25;
- }
- }
- }
- // ================================================================================== //
- /*if(GameHacks.Hard.AntiFall == 1){
- if(LocalPlayer){
- if(LocalPlayer->m_pAction == ACT_FALLING){
- for(int i = 0; i < 32; i++){
- CPlayer* m_pPlayer = PlayerManager->GetPlayerByIdx(i);
- if(m_pPlayer){
- if(Framework::BattleManager()->IsMe(m_pPlayer) == false){
- LocalPlayer->m_pMap->m_pLocalPos->X = m_pPlayer->m_pMap->m_pLocalPos->X;
- LocalPlayer->m_pMap->m_pLocalPos->Y = m_pPlayer->m_pMap->m_pLocalPos->Y;
- LocalPlayer->m_pMap->m_pLocalPos->Z = m_pPlayer->m_pMap->m_pLocalPos->Z;
- LocalPlayer->Action = ACT_IDLE;
- break;
- }
- } else continue;
- }
- }
- }
- }*/
- // ================================================================================== //
- if(GameHacks.GB.MagnetCSD == 1){
- for(int i = 0; i < PlayerCount; i++){
- CPlayer* Bot = PlayerManager->GetPlayerByIdx(i);
- if(Bot){
- if(Bot->IsBot()){
- Bot->m_pMap->m_pPos->vPos = LocalPlayer->m_pMap->m_pPos->vPos;
- }
- }
- }
- }
- // ================================================================================== //
- if(GameHacks.Simple.ZeroLadder == 1){
- if(GetAsyncKeyState(VK_ESCAPE) & 0x1){
- Beep(900, 100);
- BYTE pByteZeroLadder[] = { 0x00, 0x54, 0x66, 0xB2, 0x01, 0x08, 0x00, 0x01, 0x00, 0xCF, 0x00, 0x00, 0x00, 0xC4, 0x62, 0xB1, 0x01, 0xC0, 0x7D, 0x00, 0x00, 0xB8, 0x0F, 0x00, 0x00, 0xF4, 0x37, 0x38, 0x00, 0x9B, 0x4A, 0x5D, 0x68, 0xAB, 0x83, 0x27, 0x65, 0x1E, 0xC6, 0xC6, 0x90, 0x00, 0x0C, 0xF2, 0x27, 0x00, 0x00, 0x00, 0x00, 0x4C, 0xDF, 0xA0, 0x01, 0x06, 0x00, 0x04, 0x00, 0xC0, 0x00, 0x00, 0x00, 0x54, 0x92, 0x9B, 0x01, 0x80, 0x15, 0x00, 0x00, 0xB0, 0x02, 0x00, 0x00, 0x25, 0x26, 0x92, 0x00, 0x08, 0x68, 0x13, 0x91, 0x5C, 0xE1, 0x13, 0x6E, 0xF9, 0x33, 0xE2, 0xF1, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x90, 0x9F, 0xBF, 0x01, 0x00, 0x00, 0x00, 0x00, 0x2E, 0x3F, 0x41, 0x55 };
- Memory->Write(ResultNoLose2, pByteZeroLadder, sizeof(pByteZeroLadder));
- }
- }
- // ================================================================================== //
- if(GameHacks.GB.TeleportFloor == 1){
- if(Room->m_pMode == 10){
- if(Room->m_pMap > 1){
- Hero->m_pBattle->m_pPlayerContext->m_pFloorState1 = 1000;
- Hero->m_pBattle->m_pPlayerContext->m_pFloorActive = 1176256512;
- Hero->m_pBattle->m_pPlayerContext->m_pFloorState2 = 30000;
- }
- }
- }
- // ================================================================================== //
- if(GameHacks.Player.Ghost == 1){
- if(LocalPlayer){
- LocalPlayer->m_pCurTransparacy = 0;
- LocalPlayer->m_pGhost = 0x1EACFA54;
- }
- }
- // ================================================================================== //
- if(GameHacks.Player.Level == 1){
- if(LocalPlayer){
- LocalPlayer->m_pLevel = 100;
- }
- }
- // ================================================================================== //
- if(GameHacks.Skill.Skill == 1){
- if(LocalPlayer){
- LocalPlayer->SetWeaponValue(0x1A5C, 3, 99);
- LocalPlayer->SetWeaponValue(0x1A5C, 50003, 99);
- LocalPlayer->SetWeaponValue(0x1ABC, 60003, 99);
- LocalPlayer->SetWeaponValue(0x1A5C, 10, 99);
- LocalPlayer->SetWeaponValue(0x1A2C, 11, 9999);
- LocalPlayer->SetWeaponValue(0x1A5C, 18, 99);
- LocalPlayer->SetWeaponValue(0x1A5C, 50018, 99);
- LocalPlayer->SetWeaponValue(0x1AA4, 22, 99);
- LocalPlayer->SetWeaponValue(0x1AA4, 32, 99);
- LocalPlayer->SetWeaponValue(0x1AA4, 30032, 99);
- LocalPlayer->SetWeaponValue(0x19D4, 26, 99);
- LocalPlayer->SetWeaponValue(0x16F4, 70036, 9999.0f);
- LocalPlayer->SetWeaponValue(0x1C5C, 54, 9999.0f);
- LocalPlayer->SetWeaponValue(0x1B34, 57, 9999.0f);
- LocalPlayer->SetWeaponValue(0x1A70, 64, 9999.0f);
- LocalPlayer->SetWeaponValue(0x1A70, 50064, 9999.0f);
- LocalPlayer->SetWeaponValue(0x1A70, 60064, 9999.0f);
- LocalPlayer->SetWeaponValue(0x1A70, 70064, 9999.0f);
- LocalPlayer->SetWeaponValue(0x1B70, 62, 9999.0f);
- LocalPlayer->SetWeaponValue(0x19D0, 63, 9999.0f);
- LocalPlayer->SetWeaponValue(0x1D4C, 65, 9999.0f);
- LocalPlayer->SetWeaponValue(0x1E8C, 66, 9999.0f);
- LocalPlayer->SetWeaponValue(0x1A48, 67, 9999.0f);
- LocalPlayer->SetWeaponValue(0x1EB0, 75, 9999.0f);
- LocalPlayer->SetWeaponValue(0x1DBC, 79, 9999);
- LocalPlayer->SetWeaponValue(0x1E24, 81, 9999.0f);
- LocalPlayer->SetWeaponValue(0x1A8C, 83, 99);
- LocalPlayer->SetWeaponValue(0x200C, 85, 9999.0f);
- LocalPlayer->SetWeaponValue(0x1F08, 86, 9999.0f);
- LocalPlayer->SetWeaponValue(0x1DEC, 88, 9999.0f);
- LocalPlayer->SetWeaponValue(0x1D60, 89, 9999.0f);
- LocalPlayer->SetWeaponValue(0x1B34, 90, 9999.0f);
- LocalPlayer->SetWeaponValue(0x1E18, 91, 9999.0f);
- LocalPlayer->SetWeaponValue(0x1DD0, 92, 9999.0f);
- LocalPlayer->SetWeaponValue(0x1C60, 94, 99);
- LocalPlayer->SetWeaponValue(0x1DD0, 92, 9999.0f);
- }
- }
- } else
- {
- if(strcmp(GameHacks.Special.Maddness.szNick, "<Unknown>")){
- strcpy(GameHacks.Special.Maddness.szNick, "<Unknown>");
- }
- if(strcmp(GameHacks.Special.KillEnemy.szNick, "<Unknown>")){
- strcpy(GameHacks.Special.KillEnemy.szNick, "<Unknown>");
- }
- if(strcmp(GameHacks.Special.FastKiller.szNick, "<Unknown>")){
- strcpy(GameHacks.Special.FastKiller.szNick, "<Unknown>");
- }
- }
- }
- Sleep(10);
- }
- catch(...)
- {
- }
- }
- return (0);
- }
- DWORD HackShopOn(LPVOID Arg)
- {
- while (1)
- {
- Sleep(10);
- // ================================================================================== //
- // HS 314 ITEM
- if(!memcmp((void*)(HackShop3), (PBYTE)"\x89", 1)){
- DetourCreate((PBYTE)HackShop7, (PBYTE)Ok_OK6, 5); //Price Peso
- DetourCreate((PBYTE)HackShop6, (PBYTE)Ok_OK5, 5); //Price Gcash
- DetourCreate((PBYTE)HackShop5, (PBYTE)Ok_OK4, 5);
- DetourCreate((PBYTE)HackShop4, (PBYTE)Ok_OK3, 6); //UnlockItem
- DetourCreate((PBYTE)HackShop3, (PBYTE)Ok_OK2, 6); //Full Item
- }
- // Auto On Hackshop
- if(!memcmp((void*)HackShopX, (PBYTE)"\x74", 1))
- memcpy((void*)HackShopX, "\x75", 1);
- if(!memcmp((void*)HackShop2, (PBYTE)"\x64", 1))
- memcpy((void*)HackShop2, "\x00", 1);
- // Hack Style
- //DetourCreate((PBYTE)ResultHackShopRank2, (PBYTE)hkHackNeedRank2, 6);
- Sleep(10); // Berikan jeda
- }
- return (0); // unhook
- }
Add Comment
Please, Sign In to add comment