cdfteller

Gamehack.h

Aug 19th, 2018
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 53.75 KB | None | 0 0
  1. //=================================================================================================================================================//
  2. //====================================================== All of This shit is Typed by Aimar Adhitya ===============================================//
  3. //=================================================================================================================================================//
  4.  
  5. #include "stdafx.h"
  6. #include "Class.h"
  7. #include "HackShop.h"
  8. #include "Class2.h"
  9. #include "Function.h"
  10. #include "CMemory.h"
  11. #include "Definitions.h"
  12. #include "Option.h"
  13. #include "CTimer.h"
  14. #include "CLog.h"
  15. #include "CTools.h"
  16. //=================================================================================================================================================//
  17.  
  18. bool bIsAlreadyInGame = false;
  19.  
  20. sGameHacks GameHacks = {0};
  21.  
  22. DWORD WINAPI GameHack(LPVOID Arg)
  23. {
  24. for(int i = 0; i < 16; i++)
  25. {
  26. szPartyPassword[i] = 0;
  27. szPlazaPassword[i] = 0;
  28. }
  29. while(1){
  30. try
  31. {
  32. Sleep(47);
  33. // ================================================================================== //
  34.  
  35. CMyInfo* Info = CMyInfo::GetMyInfo();
  36. CHeroInfo* Hero = CHeroInfo::GetHeroInfo();
  37. CInventory* Invent = CInventory::GetInventory();
  38. CBattleRoomMgr* Room = CBattleRoomMgr::GetBattleRoomMgr();
  39. CExcavationManager* Relic = CExcavationManager::GetExcavationManager();
  40. CRecharge* Enchance = CRecharge::GetRecharge();
  41.  
  42. // ================================================================================== //
  43. if(Info && Hero && Invent && Room && Relic && Enchance){
  44. if(!bIsAlreadyInGame){
  45. if(Info->m_pNick){
  46. if(Info->m_pNick->m_pNick){
  47. bIsAlreadyInGame = true;
  48. } else bIsAlreadyInGame = false;
  49. } else bIsAlreadyInGame = false;
  50. }
  51. }
  52. if(GameHacks.Special.DropItem)
  53. {
  54. if(!memcmp((void*)(ResultDropItem), (PBYTE)"\x8B", 1)){
  55. Memory->WriteJump(ResultDropItem, (DWORD)hkDropItem, 9);
  56. }
  57. switch(GameHacks.Special.DropItemItem)
  58. {
  59. case 0:dropItemCode = 400316;break;
  60. case 1:dropItemCode = 400364;break;
  61. case 2:dropItemCode = 211000;break;
  62. case 3:dropItemCode = 401001;break;
  63. case 4:dropItemCode = 401003;break;
  64. case 5:dropItemCode = 401004;break;
  65. case 6:dropItemCode = 500001;break;
  66. case 7:dropItemCode = 400303;break;
  67. case 8:dropItemCode = 400304;break;
  68. case 9:dropItemCode = 400305;break;
  69. case 10:dropItemCode = 400370;break;
  70. case 11:dropItemCode = 400322;break;
  71. case 12:dropItemCode = 400301;break;
  72. case 13:dropItemCode = 11011;break;
  73. case 14:dropItemCode = 400312;break;
  74. case 15:dropItemCode = 400321;break;
  75. case 16:dropItemCode = 400335;break;
  76. case 17:dropItemCode = 400337;break;
  77. case 18:dropItemCode = 400359;break;
  78. case 19:dropItemCode = 400341;break;
  79. case 20:dropItemCode = 400352;break;
  80. case 21:dropItemCode = 400351;break;
  81. case 22:dropItemCode = 311262;break;
  82. case 23:dropItemCode = 311306;break;
  83. case 24:dropItemCode = 111229;break;
  84. case 25:dropItemCode = 211217;break;
  85. case 26:dropItemCode = 311215;break;
  86. case 27:dropItemCode = 211216;break;
  87. case 28:dropItemCode = 211214;break;
  88. case 29:dropItemCode = 311242;break;
  89. case 30:dropItemCode = 311248;break;
  90. case 31:dropItemCode = 311270;break;
  91. case 32:dropItemCode = 311278;break;
  92. case 33:dropItemCode = 311282;break;
  93. case 34:dropItemCode = 400302;break;
  94. case 35:dropItemCode = 400343;break;
  95. case 36:dropItemCode = 400348;break;
  96. case 37:dropItemCode = 400353;break;
  97. case 38:dropItemCode = 400354;break;
  98. case 39:dropItemCode = 400362;break;
  99. default:dropItemCode = 400316;break;
  100. }
  101. }
  102. // ================================================================================== //
  103. // HS 330 ITEM
  104.  
  105. if(!memcmp((void*)(ResultHackShopItem), (PBYTE)"\xE9", 1) == false)
  106. Memory->WriteJump(ResultHackShopItem, (DWORD)hkHackShopItem, 8);
  107.  
  108. if(!memcmp((void*)(ResultHackShopCash), (PBYTE)"\xE9", 1) == false)
  109. Memory->WriteJump(ResultHackShopCash, (DWORD)hkHackShopCash, 8);
  110.  
  111. if(!memcmp((void*)(ResultHackShopPeso), (PBYTE)"\xE9", 1) == false)
  112. Memory->WriteJump(ResultHackShopPeso, (DWORD)hkHackShopPeso, 9);
  113.  
  114. // ================================================================================== //
  115. if(bIsAlreadyInGame){
  116. // ================================================================================== //
  117. if(GameHacks.Bingo.BingoCoupon){
  118. for(int i = 0; i < 500; i++){
  119. if(CQuest::GetQuest(i)){
  120. CQuest::GetQuest(i)->Complete();
  121. }
  122. }
  123. }
  124. // ================================================================================== //
  125. static int LoadGetQuest = 0;
  126. if(GameHacks.Simple.SkipQuest && !LoadGetQuest){
  127. for(int i = 1500; i > 50; i--){
  128. if(CQuest::GetQuest(i)){
  129. CQuest::GetQuest(i)->Complete();
  130. }
  131. }
  132. LoadGetQuest = 1;
  133. }
  134. // ================================================================================== //
  135. if(GameHacks.Others.SkipQuest100Days == 1){
  136. Function_3(ResultBaseMenu, (DWORD)0x330, (DWORD)0x4, 0x0, (DWORD)0xC, 2150);
  137. Function_3(ResultBaseMenu, (DWORD)0x330, (DWORD)0x4, 0x0, (DWORD)0x10, 1);
  138. }
  139. if(GameHacks.Others.SkipQuest100Days == 2){
  140. Function_3(ResultBaseMenu, (DWORD)0x330, (DWORD)0x4, 0x0, (DWORD)0xC, 2151);
  141. Function_3(ResultBaseMenu, (DWORD)0x330, (DWORD)0x4, 0x0, (DWORD)0x10, 1);
  142. }
  143. // ================================================================================== //
  144. static int LoadGetQuest365Days = 0;
  145. if(GameHacks.Others.SkipQuest365Days && !LoadGetQuest365Days){
  146. for(int i = 890; i <= 890;){
  147. if(CQuest::GetQuest(i)){
  148. CQuest::GetQuest(i)->Complete();
  149. }
  150. }
  151. LoadGetQuest365Days = 1;
  152. }
  153. // ================================================================================== //
  154. // Quest Hero
  155. if(GameHacks.Others.HeroQuest){
  156. if(GetAsyncKeyState(VK_HOME) & 0x1){
  157. int id = 0;
  158. if(GameHacks.Others.HeroQuestSelect < 99)
  159. id = 1010 + (10* GameHacks.Others.HeroQuestSelect);
  160. else
  161. id = 5000 + (6* (GameHacks.Others.HeroQuestSelect-99));
  162.  
  163. CQuest::GetQuest(0)->SetID(id+3);
  164. CQuest::GetQuest(0)->Complete();
  165.  
  166. CQuest::GetQuest(1)->SetID(id+4);
  167. CQuest::GetQuest(1)->Complete();
  168.  
  169. CQuest::GetQuest(2)->SetID(id+5);
  170. CQuest::GetQuest(2)->Complete();
  171.  
  172. CQuest::GetQuest(3)->SetID(id+6);
  173. CQuest::GetQuest(3)->Complete();
  174.  
  175. CQuest::GetQuest(4)->SetID(id+7);
  176. CQuest::GetQuest(4)->Complete();
  177.  
  178. Beep(800, 100);
  179. Hero->m_pLoading = 2;
  180. }
  181. }
  182. // Quest Hero 0
  183. if(GameHacks.Others.HeroQuest1 == 1){
  184. if(GetAsyncKeyState(VK_HOME) & 0x1){
  185. int id = 0;
  186. if(GameHacks.Others.HeroQuestSelect < 99)
  187. id = 1011 + (10* GameHacks.Others.HeroQuestSelect1);
  188. else
  189. id = 5001 + (6* (GameHacks.Others.HeroQuestSelect1-99));
  190.  
  191. CQuest::GetQuest(0)->SetID(id+3);
  192. CQuest::GetQuest(0)->Complete();
  193.  
  194. CQuest::GetQuest(1)->SetID(id+4);
  195. CQuest::GetQuest(1)->Complete();
  196.  
  197. CQuest::GetQuest(2)->SetID(id+5);
  198. CQuest::GetQuest(2)->Complete();
  199.  
  200. CQuest::GetQuest(3)->SetID(id+6);
  201. CQuest::GetQuest(3)->Complete();
  202.  
  203. CQuest::GetQuest(4)->SetID(id+7);
  204. CQuest::GetQuest(4)->Complete();
  205.  
  206. Beep(800, 100);
  207. Hero->m_pLoading = 2;
  208. }
  209. }
  210. // Quest Hero 20
  211. if(GameHacks.Others.HeroQuest2 == 1){
  212. if(GetAsyncKeyState(VK_HOME) & 0x1){
  213. int id = 0;
  214. if(GameHacks.Others.HeroQuestSelect < 99)
  215. id = 1012 + (10* GameHacks.Others.HeroQuestSelect2);
  216. else
  217. id = 5002 + (6* (GameHacks.Others.HeroQuestSelect2-99));
  218.  
  219. CQuest::GetQuest(0)->SetID(id+3);
  220. CQuest::GetQuest(0)->Complete();
  221.  
  222. CQuest::GetQuest(1)->SetID(id+4);
  223. CQuest::GetQuest(1)->Complete();
  224.  
  225. CQuest::GetQuest(2)->SetID(id+5);
  226. CQuest::GetQuest(2)->Complete();
  227.  
  228. CQuest::GetQuest(3)->SetID(id+6);
  229. CQuest::GetQuest(3)->Complete();
  230.  
  231. CQuest::GetQuest(4)->SetID(id+7);
  232. CQuest::GetQuest(4)->Complete();
  233.  
  234. Beep(800, 100);
  235. Hero->m_pLoading = 2;
  236. }
  237. }
  238. // Quest Hero 40
  239. if(GameHacks.Others.HeroQuest3 == 1){
  240. if(GetAsyncKeyState(VK_HOME) & 0x1){
  241. int id = 0;
  242. if(GameHacks.Others.HeroQuestSelect < 99)
  243. id = 1013 + (10* GameHacks.Others.HeroQuestSelect3);
  244. else
  245. id = 5003 + (6* (GameHacks.Others.HeroQuestSelect3-99));
  246.  
  247. CQuest::GetQuest(0)->SetID(id+3);
  248. CQuest::GetQuest(0)->Complete();
  249.  
  250. CQuest::GetQuest(1)->SetID(id+4);
  251. CQuest::GetQuest(1)->Complete();
  252.  
  253. CQuest::GetQuest(2)->SetID(id+5);
  254. CQuest::GetQuest(2)->Complete();
  255.  
  256. CQuest::GetQuest(3)->SetID(id+6);
  257. CQuest::GetQuest(3)->Complete();
  258.  
  259. CQuest::GetQuest(4)->SetID(id+7);
  260. CQuest::GetQuest(4)->Complete();
  261.  
  262. Beep(800, 100);
  263. Hero->m_pLoading = 2;
  264. }
  265. }
  266. // Quest Hero 60
  267. if(GameHacks.Others.HeroQuest4 == 1){
  268. if(GetAsyncKeyState(VK_HOME) & 0x1){
  269. int id = 0;
  270. if(GameHacks.Others.HeroQuestSelect < 99)
  271. id = 1014 + (10* GameHacks.Others.HeroQuestSelect4);
  272. else
  273. id = 5004 + (6* (GameHacks.Others.HeroQuestSelect4-99));
  274.  
  275. CQuest::GetQuest(0)->SetID(id+3);
  276. CQuest::GetQuest(0)->Complete();
  277.  
  278. CQuest::GetQuest(1)->SetID(id+4);
  279. CQuest::GetQuest(1)->Complete();
  280.  
  281. CQuest::GetQuest(2)->SetID(id+5);
  282. CQuest::GetQuest(2)->Complete();
  283.  
  284. CQuest::GetQuest(3)->SetID(id+6);
  285. CQuest::GetQuest(3)->Complete();
  286.  
  287. CQuest::GetQuest(4)->SetID(id+7);
  288. CQuest::GetQuest(4)->Complete();
  289.  
  290. Beep(800, 100);
  291. Hero->m_pLoading = 2;
  292. }
  293. }
  294. // ================================================================================== //
  295. if(GameHacks.Hero.Hero > 0){
  296. CHero::GetHeroBySlotIdx(GameHacks.Hero.Slot)->SetWeapon(EpicWeaponID[GameHacks.Hero.Hero]);
  297. CHero::GetHeroBySlotIdx(GameHacks.Hero.Slot)->SetArmor(EpicArmorID[GameHacks.Hero.Hero]);
  298. CHero::GetHeroBySlotIdx(GameHacks.Hero.Slot)->SetHelmet(EpicHelmetID[GameHacks.Hero.Hero]);
  299. CHero::GetHeroBySlotIdx(GameHacks.Hero.Slot)->SetCloak(EpicCloakID[GameHacks.Hero.Hero]);
  300. }
  301. // ================================================================================== //
  302. if(GameHacks.Hero.Weapon > 0){
  303. CHero::GetHeroBySlotIdx(GameHacks.Hero.Slot)->SetWeapon(EpicWeaponID[GameHacks.Hero.Weapon]);
  304. }
  305. // ================================================================================== //
  306. if(GameHacks.Hero.Armor > 0){
  307. CHero::GetHeroBySlotIdx(GameHacks.Hero.Slot)->SetArmor(EpicArmorID[GameHacks.Hero.Armor]);
  308. }
  309. // ================================================================================== //
  310. if(GameHacks.Hero.Helmet > 0){
  311. CHero::GetHeroBySlotIdx(GameHacks.Hero.Slot)->SetHelmet(EpicHelmetID[GameHacks.Hero.Helmet]);
  312. }
  313. // ================================================================================== //
  314. if(GameHacks.Hero.Cloak > 0){
  315. CHero::GetHeroBySlotIdx(GameHacks.Hero.Slot)->SetCloak(EpicCloakID[GameHacks.Hero.Cloak]);
  316. }
  317. // ================================================================================== //
  318.  
  319. static int PatchNick = 0;
  320. static char szNick[51];
  321. if(GameHacks.Others.HckNick && !PatchNick)
  322. {
  323. strcpy(szNick, Info->m_pNick->m_pNick);
  324. strcpy(Info->m_pNick->m_pNick, "[GM]EmptyHack");
  325. PatchNick = 1;
  326. }
  327. else
  328. if(!GameHacks.Others.HckNick && PatchNick)
  329. {
  330. strcpy(Info->m_pNick->m_pNick, szNick);
  331. PatchNick = 0;
  332. }
  333.  
  334. // ================================================================================== //
  335.  
  336. static BYTE SavedFunc[512];
  337. static bool PatchFunc = false;
  338. static bool LoadFunc = false;
  339. if(GameHacks.Others.RemoveFocus && !PatchFunc)
  340. {
  341. DWORD pHeadInsertToModalList = (DWORD)(GetProcAddress(GetModuleHandleA("io3DEngine.dll"), "?HeadInsertToModalList@ioWnd@@IAEXXZ"));
  342. if(pHeadInsertToModalList)
  343. {
  344. if(LoadFunc == false)
  345. for(int i = 0; i < 5; i++){
  346. SavedFunc[i] = *(BYTE*)(pHeadInsertToModalList+i); LoadFunc = true;}
  347. Memory->WriteJump(pHeadInsertToModalList, (DWORD)AlwaysReturnTrue, 5);
  348. PatchFunc = true;
  349. }
  350. }
  351. else
  352. if(!GameHacks.Others.RemoveFocus && PatchFunc)
  353. {
  354. DWORD pHeadInsertToModalList = (DWORD)(GetProcAddress(GetModuleHandleA("io3DEngine.dll"), "?HeadInsertToModalList@ioWnd@@IAEXXZ"));
  355. for(int i = 0; i < 5; i++)
  356. *(BYTE*)(pHeadInsertToModalList+i) = SavedFunc[i];
  357. PatchFunc = false;
  358.  
  359. }
  360. if(GameHacks.Helper.AutoReward)
  361. {
  362. static DWORD dwTickCount[2] = {0};
  363. if(dwTickCount[0] < GetTickCount()){
  364. Hero->m_pKey->F4 = 2;
  365. dwTickCount[0] = GetTickCount() + 1500;
  366. }
  367. Hero->m_pClick = 256, Sleep(3);
  368. Hero->m_pClick = 65536, Sleep(3);
  369. Hero->m_pClick = 0, Sleep(3);
  370. }
  371.  
  372. if(GameHacks.Helper.AutoESC == 1){
  373. Hero->m_pKey->ESCAPE = 2;
  374. }
  375.  
  376. // ================================================================================== //
  377.  
  378. switch(GameHacks.Gear.Enable){
  379. case 1:GameHacks.Gear.Amount = 10;break;
  380. case 2:GameHacks.Gear.Amount = 50;break;
  381. case 3:GameHacks.Gear.Amount = 100;break;
  382. case 4:GameHacks.Gear.Amount = 300;break;
  383. case 5:GameHacks.Gear.Amount = 500;break;
  384. }
  385.  
  386. // ================================================================================== //
  387.  
  388. static int PatchLockWnd = 0;
  389. if(GameHacks.Bingo.LockWnd && PatchLockWnd==0)
  390. {
  391. DWORD IoWndHideWnd = (DWORD)GetProcAddress(GetModuleHandleA("io3DEngine.dll"), "?HideWnd@ioWnd@@QAEXXZ");
  392. if(IoWndHideWnd)
  393. {
  394. *(BYTE*)(IoWndHideWnd+0x38) = 1;
  395. PatchLockWnd = 1;
  396. }
  397. }
  398. else
  399. if(GameHacks.Bingo.LockWnd==0 && PatchLockWnd==1)
  400. {
  401. DWORD IoWndHideWnd = (DWORD)GetProcAddress(GetModuleHandleA("io3DEngine.dll"), "?HideWnd@ioWnd@@QAEXXZ");
  402. if(IoWndHideWnd)
  403. {
  404. *(BYTE*)(IoWndHideWnd+0x38) = 0;
  405. PatchLockWnd = 0;
  406. }
  407.  
  408. }
  409. // ================================================================================== //
  410. if(GameHacks.Simple.PermCostume)
  411. {
  412. for(int i = 0; i < 64; i++)
  413. {
  414. CCostumeInven* Costume = (CCostumeInven*)((DWORD)(Info->m_pCostumeInven)+(DWORD)(i* 0x40));
  415. if(!IsBadReadPtr(Costume->m_pCostumeName, 4) && !IsBadReadPtr(Costume->m_pCostumePack, 4))
  416. Costume->m_pStatus = 1;
  417. }
  418. }
  419. // ================================================================================== //
  420.  
  421. //TimerDG
  422. static bool HookedDG = false;
  423. if(!HookedDG)
  424. {
  425. if(Memory->IfNotBadPtr(ResultGetTimerDungeon))
  426. {
  427. if(Memory->Read<WORD>(ResultGetTimerDungeon) != 0x0000)
  428. {
  429. Memory->WriteJump(ResultGetTimerDungeon, (DWORD)hkTimerDG, 6);
  430. HookedDG = true;
  431. }
  432. }
  433. }
  434.  
  435. // ================================================================================== //
  436.  
  437. //SeeRoomPassword
  438. static bool Done1 = false;
  439. if(Memory->IfNotBadPtr(ResultPartyInfoWndOnRender) && Done1 == false){
  440. Memory->WriteJump(ResultPartyInfoWndOnRender, (DWORD)hkPartyInfoWnd, 7);
  441. Done1 = true;
  442. }
  443.  
  444. static bool Done2 = false;
  445. if(Memory->IfNotBadPtr(ResultPlazaInfoWndOnRender) && Done2 == false){
  446. Memory->WriteJump(ResultPlazaInfoWndOnRender, (DWORD)hkPlazaInfoWnd, 7);
  447. Done2 = true;
  448.  
  449. }
  450. // ================================================================================== //
  451.  
  452. if(GameHacks.Special.RoomPassword.Active){
  453. if(GameHacks.Special.RoomPassword.Active == 1){
  454. if(szPartyPassword){
  455. char szTemp[512];
  456. sprintf(szTemp, "[%s] | [Len: %d]", szPartyPassword, strlen(szPartyPassword));
  457. strcpy(GameHacks.Special.RoomPassword.szPassword, szTemp);
  458. }
  459. }
  460.  
  461. if(GameHacks.Special.RoomPassword.Active == 2){
  462. if(szPlazaPassword){
  463. char szTemp[512];
  464. sprintf(szTemp, "[%s] | [Len: %d]", szPlazaPassword, strlen(szPlazaPassword));
  465. strcpy(GameHacks.Special.RoomPassword.szPassword, szTemp);
  466. }
  467. }
  468. }
  469.  
  470. // ================================================================================== //
  471.  
  472. if(GameHacks.Special.AntiSniff){
  473. srand(GetTickCount());
  474. string alphaKey = "aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsSuUvVwWxXyYzZ";
  475. char szRand[16];
  476. for(int i = 0; i < 4; i++)
  477. szRand[i] = alphaKey[rand() % alphaKey.size()];
  478. strcpy(Room->m_pPassword->m_pPassword, szRand);
  479. }
  480.  
  481. // ================================================================================== //
  482.  
  483. static int PatchFreezeRelic = 0;
  484. if(GameHacks.Relic.Freeze == 1){
  485. if(PatchFreezeRelic == 0){
  486. Memory->WriteJump(ResultSetExcavationDelay, (DWORD)hkFreezeDelayExcavationON, 8);
  487. PatchFreezeRelic = 1;
  488. }
  489. } else
  490. if(GameHacks.Relic.Freeze == 0 && PatchFreezeRelic == 1){
  491. Memory->WriteJump(ResultSetExcavationDelay, (DWORD)hkFreezeDelayExcavationON, 8);
  492. PatchFreezeRelic = 0;
  493.  
  494. }
  495. // ================================================================================== //
  496.  
  497. static int PatchFastRelic = 0;
  498. if(GameHacks.Relic.Fast == 1){
  499. if(PatchFreezeRelic == 0){
  500. Memory->WriteJump(ResultSubExcavationDelay, (DWORD)hkFastDelayExcavationON, 6);
  501. PatchFreezeRelic = 1;
  502. }
  503. } else
  504. if(GameHacks.Relic.Fast == 0 && PatchFastRelic == 1){
  505. Memory->WriteJump(ResultSubExcavationDelay, (DWORD)hkFastDelayExcavationON, 6);
  506. PatchFastRelic = 0;
  507.  
  508. }
  509. // ================================================================================== //
  510. if(GameHacks.Relic.Rate == 1){
  511. Relic->m_pRate = 99; // Success Rate
  512. Relic->m_pMaxRate = 1000; // Success Rate Max
  513.  
  514. }
  515. // ================================================================================== //
  516. if(GameHacks.Relic.Location == 1){
  517. Relic->m_pLastSpot1 = 0;
  518. Relic->m_pLastSpot2 = 0;
  519. Relic->m_pResetSpot = 0;
  520. }
  521. // ================================================================================== //
  522. /*if(GameHacks.Relic.Auto == 1){
  523. Hero->Key->D = 2;
  524. }*/
  525. // ================================================================================== //
  526. if(GameHacks.Special.HeroUp == 1){
  527. EncryptValue(&Info->m_pUpgradeHack, 1000);
  528. }
  529. // ================================================================================== //
  530. if(GameHacks.Others.RefreshLoading) {
  531. if(GetAsyncKeyState(VK_END) & 0x1)
  532. Hero->m_pLoading = 2;
  533. }
  534. if(GameHacks.Others.RefreshLoading2) {
  535. if(GetAsyncKeyState(VK_END) & 0x1)
  536. {
  537. Function_3(ResultBaseMenu, (DWORD)0x330, (DWORD)0x4, 0x0, (DWORD)0x4C, -1);
  538. Function_3(ResultBaseMenu, (DWORD)0x330, (DWORD)0x4, 0x0, (DWORD)0x50, -1);
  539. Function_3(ResultBaseMenu, (DWORD)0x330, (DWORD)0x4, 0x0, (DWORD)0x88, 100);
  540. Function_3(ResultBaseMenu, (DWORD)0x330, (DWORD)0x4, 0x0, (DWORD)0x130, -1);
  541. Function_3(ResultBaseMenu, (DWORD)0x330, (DWORD)0x4, 0x0, (DWORD)0x134, -1);
  542. Hero->m_pLoading = 2;
  543. }
  544. }
  545.  
  546. // ================================================================================== //
  547. if(GameHacks.Gear.NoLimitEnhance == 1){
  548. Enchance->m_pMaxUpToUpgrade = 1000;
  549. }
  550. // ================================================================================== //
  551. if(GameHacks.Helper.AutoHit == 1){
  552. // DirectInput::SetKeyboardState(DIK_D, 1);
  553. }
  554. // ================================================================================== //
  555. if(GameHacks.Helper.AutoClick == 1){
  556. Hero->m_pClick = 256, Sleep(3);
  557. Hero->m_pClick = 65536, Sleep(3);
  558. Hero->m_pClick = 0, Sleep(3);
  559. }
  560. // ================================================================================== //
  561. if(GameHacks.Helper.AutoSpace == 1){
  562. Hero->m_pKey->Space = 1;
  563. }
  564. // ================================================================================== //
  565. static int BingoResetRestore = 0;
  566. if(GameHacks.Bingo.ResetBingo == 1 && BingoResetRestore == 0) {
  567. Memory->WriteJump(ResultSetEndBingo, (DWORD)hkBingoSetEnd_ON, 5);
  568. BingoResetRestore = 1;
  569. } else if(GameHacks.Bingo.ResetBingo == 0 && BingoResetRestore == 1){
  570. Memory->WriteJump(ResultSetEndBingo, (DWORD)hkBingoSetEnd_OFF, 5);
  571. BingoResetRestore = 0;
  572. }
  573. // ================================================================================== //
  574. static int FakeRespawnRestore = 0;
  575. if(GameHacks.Special.FakeRespawn == 1 && FakeRespawnRestore == 0) {
  576. Memory->WriteJump(ResultFakeRespawn, (DWORD)hkFakeRespawn_ON, 6);
  577. FakeRespawnRestore = 1;
  578. } else if(GameHacks.Special.FakeRespawn == 0 && FakeRespawnRestore == 1){
  579. Memory->WriteJump(ResultFakeRespawn, (DWORD)hkFakeRespawn_OFF, 6);
  580. FakeRespawnRestore = 0;
  581. }
  582. // ================================================================================== //
  583. if(GameHacks.Simple.NoAfk == 1){
  584. for(int i = 0xA; i <= 0xFA; i += 0x30){
  585. Memory->Write<BYTE>(Memory->Read<DWORD>(ResultBaseAFK) + i, 0x5, 1);
  586. }
  587. }
  588. // ================================================================================== //
  589. if(GameHacks.Gear.Enable > 0 && GameHacks.Gear.Sell == 1){
  590. for(int i = 0; i < GameHacks.Gear.Amount; i++){
  591. CGearInven* pGear = (CGearInven*)((DWORD)Info->m_pGearInven+(DWORD)(0x48* i));
  592. pGear->m_pStatus = 0;
  593. }
  594. }
  595. // ================================================================================== //
  596. if(GameHacks.Gear.Enable > 0 && GameHacks.Gear.Permanent == 1){
  597. for(int i = 0; i < GameHacks.Gear.Amount; i++){
  598. CGearInven* pGear = (CGearInven*)((DWORD)Info->m_pGearInven+(DWORD)(0x48* i));
  599. pGear->m_pStatus = 1;
  600. }
  601. }
  602. // ================================================================================== //
  603. if(GameHacks.Gear.NoPesoEnhance == 1){
  604. Enchance->m_pDecreaseUp = 30;
  605. }
  606. // ================================================================================== //
  607. if(GameHacks.Gear.Enable > 0 && GameHacks.Gear.AutoSeal == 1){
  608. for(int i = 0; i < GameHacks.Gear.Amount; i++){
  609. CGearInven* pGear = (CGearInven*)((DWORD)Info->m_pGearInven+(DWORD)(0x48* i));
  610. pGear->m_pSealStatus = 2;
  611. }
  612. }
  613. // ================================================================================== //
  614. if(GameHacks.Pet.EXP){
  615. for(int i = 0; i < 20; i++){
  616. CPet* pPet = (CPet*)((DWORD)Info->m_pPet+(DWORD)(0x38* i));
  617. pPet->m_pExp = 999;
  618. }
  619. }
  620. // ================================================================================== //
  621. if(GameHacks.Pet.Level){
  622. for(int i = 0; i < 20; i++){
  623. CPet* pPet = (CPet*)((DWORD)Info->m_pPet+(DWORD)(0x38* i));
  624. pPet->m_pLevel = 100;
  625. }
  626. }
  627. // ================================================================================== //
  628. if(GameHacks.Pet.Rank){
  629. for(int i = 0; i < 20; i++){
  630. CPet* pPet = (CPet*)((DWORD)Info->m_pPet+(DWORD)(0x38* i));
  631. pPet->Rank = 5;
  632. }
  633. }
  634. // ================================================================================== //
  635. if(GameHacks.Room.KickPingBattle == 1){
  636. Hero->m_pFaction->m_pKickPing = 0;
  637. }
  638. // ================================================================================== //
  639. if(GameHacks.Room.AutoStartLadder == 1){
  640. Hero->m_pFaction->m_pStartState = 0;
  641. }
  642. // ================================================================================== //
  643. if(GameHacks.Simple.SlotHero){
  644. Info->m_pSlotHero1 = 200;
  645. Info->m_pSlotHero2 = 200;
  646. }
  647. // ================================================================================== //
  648. static int PatchNoToken = 0;
  649. if(GameHacks.GB.NoToken && !PatchNoToken){
  650. Memory->WriteJump(ResultOnUseMonsterCoin, ResultOnUseMonsterCoinJMP, 6);
  651. Memory->WriteJump(ResultOnUseMonsterCoin2, ResultOnUseMonsterCoinJMPTest, 6);
  652. Memory->WriteJump(ResultOnUseMonsterCoinTest, ResultOnUseMonsterCoinJMPTest, 6);
  653. PatchNoToken = 1;
  654. }
  655. else
  656. if(!GameHacks.GB.NoToken && PatchNoToken){
  657. Memory->Write(ResultOnUseMonsterCoin, "\x0F\x84\x02\x01\x00\x00", 6);
  658. Memory->Write(ResultOnUseMonsterCoin2, "\xEB\x3E\x8B\x4D\x10\x51", 6);
  659. Memory->Write(ResultOnUseMonsterCoinTest, "\x0F\x84\xCD\x00\x00\x00", 6);
  660. PatchNoToken = 0;
  661. }
  662. // ================================================================================== //
  663. static int PatchCadetUP = 0, ValueCadetUP = 0;
  664. if(GameHacks.Simple.CadetUp && !PatchCadetUP){
  665. ValueCadetUP = Info->m_pGrade;
  666. Info->m_pGrade = 54;
  667. PatchCadetUP = 1;
  668. } else if(!GameHacks.Simple.CadetUp && PatchCadetUP){
  669. Info->m_pGrade = ValueCadetUP;
  670. PatchCadetUP = 0;
  671. }
  672. // ================================================================================== //
  673. static int PatchStyleHack = 0;
  674. if(GameHacks.Hero.StyleHack == 1 && PatchStyleHack == 0){
  675. for(int i = 0; i < 179; i++){
  676. CHeroData* pHero = (CHeroData*)((DWORD)Info->m_pHeroData+(DWORD)(0x10* i));
  677. if(pHero->m_pHeroSize == Info->m_pHeroData->m_pHeroSize){
  678. pHero->m_pLevel = 100;
  679. }
  680. }
  681. PatchStyleHack = 1;
  682. }
  683. else
  684. if(GameHacks.Hero.StyleHack == 0 && PatchStyleHack == 1){
  685. PatchStyleHack = 0;
  686. }
  687. // ================================================================================== //
  688. if(GameHacks.Simple.NoPesoPenalty == 1){
  689. EncryptValue(&Info->m_pPenalty, 0);
  690. }
  691. // ================================================================================== //
  692. if(GameHacks.Others.UnlimitedInventory == 1){
  693. Invent->m_pMaxItem = 5000;
  694. }
  695. // ================================================================================== //
  696. if(GameHacks.Room.Custom == 1){
  697. EncryptValue(&Room->m_pCustomMode, 1);
  698. }
  699. // ================================================================================== //
  700. if(GameHacks.Room.KickPingBattle == 1){
  701. Room->m_pKickPing = 0;
  702. }
  703. // ================================================================================== //
  704. if(GameHacks.Room.Slot8 == 1){
  705. Room->m_pSlotBlue = 8;
  706. Room->m_pSlotRed = 8;
  707. }
  708. // ================================================================================== //
  709. if(GameHacks.Room.Size8 == 1){
  710. Room->m_pSizeBlue = 8;
  711. Room->m_pSizeRed = 8;
  712. }
  713. // ================================================================================== //
  714. if(GameHacks.Simple.CustomLadder){
  715. if(GetAsyncKeyState(VK_F8) & 0x1){
  716. Hero->m_pFaction->m_pRoomType = 0;
  717. }
  718. }
  719. // ================================================================================== //
  720. if(GameHacks.Hero.Sell == 1){
  721. CHero::GetHeroBySlotIdx(GameHacks.Hero.Slot)->m_pStatus = 0;
  722. }
  723. // ================================================================================== //
  724. if(GameHacks.Hero.Permanent == 1){
  725. //Info->m_pHero->GetHeroBySlotIdx(GameHacks.Hero.Slot)->SetHeroStatus(1);
  726. }
  727. // ================================================================================== //
  728. static int PatchNoFemale = 0;
  729. if(GameHacks.HackShop.Female && !PatchNoFemale){
  730. if(CShop::GetShopByIndex(STYLESHOPINDEX))
  731. {
  732. CShop::GetShopByIndex(STYLESHOPINDEX)->GetItemByIndex(1)->m_pItemCode = CShop::GetShopByIndex(STYLESHOPINDEX)->GetItemByIndex(0)->m_pItemCode;
  733. CShop::GetShopByIndex(STYLESHOPINDEX)->GetItemByIndex(1)->m_pItemName = CShop::GetShopByIndex(STYLESHOPINDEX)->GetItemByIndex(0)->m_pItemName;
  734. CShop::GetShopByIndex(STYLESHOPINDEX)->GetItemByIndex(1)->m_pItemRsrc = CShop::GetShopByIndex(STYLESHOPINDEX)->GetItemByIndex(0)->m_pItemRsrc;
  735. }
  736. PatchNoFemale = 1;
  737. }
  738. // ================================================================================== //
  739. static int PatchNoCosu = 0;
  740. if(GameHacks.HackShop.SpecialCosuMixer && !PatchNoCosu){
  741. if(CShop::GetShopByIndex(COSTUMESHOPINDEX))
  742. {
  743. CShop::GetShopByIndex(COSTUMESHOPINDEX)->GetItemByIndex(0)->m_pItemCode = CShop::GetShopByIndex(STYLESHOPINDEX)->GetItemByIndex(0)->m_pItemCode;
  744. CShop::GetShopByIndex(COSTUMESHOPINDEX)->GetItemByIndex(0)->m_pItemName = CShop::GetShopByIndex(STYLESHOPINDEX)->GetItemByIndex(0)->m_pItemName;
  745. CShop::GetShopByIndex(COSTUMESHOPINDEX)->GetItemByIndex(0)->m_pItemRsrc = CShop::GetShopByIndex(STYLESHOPINDEX)->GetItemByIndex(0)->m_pItemRsrc;
  746. }
  747. PatchNoCosu = 1;
  748. }
  749. // ================================================================================== //
  750. if(GameHacks.Hero.Beyond == 1){
  751. //Info->m_pHero->GetHeroBySlotIdx(GameHacks.Hero.Slot)->SetBeyond(705101525);
  752. }
  753. // ================================================================================== //
  754. if(GameHacks.Hero.Stat == 1){
  755. //Info->m_pHero->GetHeroBySlotIdx(GameHacks.Hero.Slot)->SetWeaponUpgrade(30);
  756. //Info->m_pHero->GetHeroBySlotIdx(GameHacks.Hero.Slot)->SetArmorUpgrade(30);
  757. //Info->m_pHero->GetHeroBySlotIdx(GameHacks.Hero.Slot)->SetHelmetUpgrade(30);
  758. //Info->m_pHero->GetHeroBySlotIdx(GameHacks.Hero.Slot)->SetCloakUpgrade(30);
  759. }
  760. // ================================================================================== //
  761. if(GameHacks.Simple.PesoCash == 1){
  762. Info->m_pPeso = 99999999;
  763. Info->m_pCash = 99999999;
  764. }
  765. // ================================================================================== //
  766. static int PatchBounceKiller = 0, ValueBounceKiller = 0;
  767. if(GameHacks.Hard.Bounce && !PatchBounceKiller){
  768. ValueBounceKiller = *(DWORD*)(ResultBounceKiller);
  769. Memory->Write(ResultBounceKiller, 3244, 4);
  770. PatchBounceKiller = 1;
  771. } else if(!GameHacks.Hard.Bounce && PatchBounceKiller){
  772. Memory->Write(ResultBounceKiller, ValueBounceKiller, 4);
  773. PatchBounceKiller = 0;
  774. }
  775. // ================================================================================== //
  776. if(GameHacks.Kick.Zombie)
  777. {
  778. CHero::GetHeroBySlotIdx(0)->SetWeapon(11011);
  779. CHero::GetHeroBySlotIdx(0)->SetArmor(111011);
  780. CHero::GetHeroBySlotIdx(0)->SetHelmet(211011);
  781. CHero::GetHeroBySlotIdx(0)->SetCloak(311011);
  782. }
  783. // ================================================================================== //
  784. /*if(!Framework::BattleManager()->IsInBattle()){
  785. if(GameHacks.Ladder.MeGb == 1 || GameHacks.Ladder.MeBot == 1){
  786. Hero->m_pKey->Space = 1;
  787. if(GameHacks.Ladder.AutoReady == 1){
  788. if(Hero->m_pFaction->StartState == 0){
  789. Hero->MouseX = 650;
  790. Hero->MouseY = 500;
  791.  
  792. if(Hero->MouseX == 650 && Hero->MouseY == 500){
  793. Hero->Click = 256, Sleep(3);
  794. Hero->Click = 65536, Sleep(3);
  795. Hero->Click = 0, Sleep(3);
  796. }
  797. }
  798. }
  799. }
  800. }*/
  801. if(IsInBattle()){
  802. // ================================================================================== //
  803. /*if(GameHacks.Ladder.MeGb == 1){
  804. CPlayer* m_pPlayer = Framework::BattleManager()->GetMyChara();
  805. if(m_pPlayer){
  806. if(m_pPlayer->m_pMap){
  807. if(m_pPlayer->m_pMap->m_pLocalPos){
  808. for(int i = 0; i < 32; i++){
  809. BattleContext* pBot = PlayerManager->GetPlayerByIdx(i);
  810. if(pBot){
  811. if(pBot->m_pMap){
  812. if(pBot->m_pMap->m_pLocalPos){
  813. m_pPlayer->m_pMap->m_pLocalPos->X = pBot->m_pMap->m_pLocalPos->X;
  814. m_pPlayer->m_pMap->m_pLocalPos->Z = pBot->m_pMap->m_pLocalPos->Z + 100.0f;
  815. }
  816. }
  817. }
  818. }
  819. Hero->m_pKey->Down = 3;
  820. Hero->m_pKey->D = 2;
  821. }
  822. }
  823. }
  824. }
  825. if(GameHacks.Ladder.MeBot == 1){
  826. CPlayer* m_pPlayer = Framework::BattleManager()->GetMyChara();
  827. if(m_pPlayer){
  828. m_pPlayer->HP = 0;
  829. }
  830. }*/
  831. // ================================================================================== //
  832.  
  833. CGamePlayerManager* PlayerManager = CGamePlayerManager::GetPlayerManager();
  834. CPlayer* LocalPlayer = PlayerManager->GetMyPlayer();
  835. CBattle* LocalBattle = CBattle::GetBattle();
  836.  
  837. if(PlayerManager == NULL || LocalPlayer == NULL || LocalBattle == NULL) continue;
  838.  
  839. int PlayerCount = LocalBattle->m_pTotalSizePlayer;
  840.  
  841. // ================================================================================== //
  842. if(GameHacks.Special.Maddness.Active == 1){
  843. static int LastSlot = GameHacks.Special.Maddness.Slot, SetLastSlot = 0;
  844. CPlayer* m_pPlayer = PlayerManager->GetPlayerByIdx(GameHacks.Special.Maddness.Slot);
  845. if(GameHacks.Special.Maddness.Slot != LastSlot){
  846. SetLastSlot = GameHacks.Special.Maddness.Maddness = 0;
  847. }
  848. if(SetLastSlot == 0){
  849. LastSlot = GameHacks.Special.Maddness.Slot;
  850. SetLastSlot = 1;
  851. }
  852. if(m_pPlayer){
  853. strcpy(GameHacks.Special.Maddness.szNick, m_pPlayer->m_pNick->m_pNick);
  854. if(m_pPlayer->IsMe() == false){
  855. if(GameHacks.Special.Maddness.Maddness){
  856. m_pPlayer->m_pControl = 1;
  857. }
  858. }
  859. } else {
  860. strcpy(GameHacks.Special.Maddness.szNick, "<Unknown>");
  861. }
  862. }
  863. // ================================================================================== //
  864. static int LoadMyKillEnemy = 0;
  865. if(GameHacks.Special.KillEnemy.Active == 1){
  866. static int LastSlot = GameHacks.Special.KillEnemy.Slot, SetLastSlot = 0;
  867. CPlayer* m_pPlayer = PlayerManager->GetPlayerByIdx(GameHacks.Special.KillEnemy.Slot);
  868. if(GameHacks.Special.KillEnemy.Slot != LastSlot){
  869. SetLastSlot = GameHacks.Special.KillEnemy.Kill = 0;
  870. }
  871. if(SetLastSlot == 0){
  872. LastSlot = GameHacks.Special.KillEnemy.Slot;
  873. SetLastSlot = 1;
  874. }
  875. if(m_pPlayer){
  876. strcpy(GameHacks.Special.KillEnemy.szNick, m_pPlayer->m_pNick->m_pNick);
  877. if(LocalPlayer){
  878. if(LocalPlayer->m_pTeam > 0){
  879. LocalPlayer->m_pControl = 0;
  880. }
  881. if(m_pPlayer->IsMe() == false){
  882. if(GameHacks.Special.KillEnemy.Kill){
  883. if(m_pPlayer->m_pHPReal > 0.0f)
  884. {
  885. m_pPlayer->m_pControl = 1;
  886. m_pPlayer->m_pAction = 0;
  887. EncryptValue(&m_pPlayer->m_pHP, 0);
  888. if(m_pPlayer->m_pMap){
  889. if(m_pPlayer->m_pMap->m_pPos){
  890. m_pPlayer->m_pMap->m_pPos->vPos.y = 0;
  891. }
  892. }
  893. m_pPlayer->m_pAction = 0;
  894. Sleep(10);m_pPlayer->m_pControl = 0;
  895. }
  896. }
  897. }
  898. LocalPlayer->m_pControl = 1;
  899. }
  900. LoadMyKillEnemy = 1;
  901. } else {
  902. strcpy(GameHacks.Special.KillEnemy.szNick, "<Unknown>");
  903. }
  904. }else if(GameHacks.Special.KillEnemy.Active == 0 && LoadMyKillEnemy == 1){
  905. if(LocalPlayer)
  906. {
  907. for(int i = 0; i < 32; i++){
  908. CPlayer* m_pPlayer = PlayerManager->GetPlayerByIdx(i);
  909. if(m_pPlayer) {
  910. if(m_pPlayer->IsEnemy()){
  911. m_pPlayer->m_pControl = 0;
  912. }
  913. }
  914. }
  915. if(LocalPlayer) {
  916. if(LocalPlayer->m_pTeam > 0){
  917. if(LocalPlayer->m_pControl == 0){
  918. LocalPlayer->m_pControl = 1;
  919. }
  920. }
  921. }
  922. LoadMyKillEnemy = 0;
  923. }
  924. }
  925. // ================================================================================== //
  926. static int LoadMyKiller = 0;
  927. if(GameHacks.Special.FastKiller.Active){
  928. if(GameHacks.Special.FastKiller.Kill){
  929. if(LocalPlayer){
  930. if(LocalPlayer->m_pTeam > 0){
  931. if(LocalPlayer->m_pControl == 1){
  932. LocalPlayer->m_pControl = 0;
  933. }
  934. }
  935. LoadMyKiller = 1;
  936.  
  937. for(int i = 0; i < PlayerCount; i++){
  938. if(CPlayer* m_pPlayer = PlayerManager->GetPlayerByIdx(i)) {
  939. if(GameHacks.Special.FastKiller.Team == 1){
  940. if(m_pPlayer->IsTeam()){
  941. continue;
  942. }
  943. }
  944. if(m_pPlayer->IsEnemy()){
  945. if(LoadMyKiller == 1){
  946. m_pPlayer->m_pControl = 1;
  947. m_pPlayer->m_pAction = 0;
  948. EncryptValue(&m_pPlayer->m_pHP, 0);
  949. if(m_pPlayer->m_pMap){
  950. if(m_pPlayer->m_pMap->m_pPos){
  951. m_pPlayer->m_pMap->m_pPos->vPos.y = 0;
  952. }
  953. }
  954. m_pPlayer->m_pAction = 0;
  955. Sleep(10);m_pPlayer->m_pControl = 0;
  956. }
  957. if(LocalPlayer->m_pTeam > 0){
  958. if(LocalPlayer->m_pControl == 0){
  959. LocalPlayer->m_pControl = 1;
  960. }
  961. }
  962. }
  963. }
  964. }
  965. }
  966. }
  967. } else if(GameHacks.Special.FastKiller.Kill == 0 && LoadMyKiller == 1){
  968. if(LocalPlayer){
  969. for(int i = 0; i < PlayerCount; i++){
  970. if(CPlayer* m_pPlayer = PlayerManager->GetPlayerByIdx(i)) {
  971. if(m_pPlayer->IsEnemy()){
  972. m_pPlayer->m_pControl = 0;
  973. }
  974. }
  975. }
  976. if(LocalPlayer->m_pTeam > 0){
  977. if(LocalPlayer->m_pControl == 0){
  978. LocalPlayer->m_pControl = 1;
  979. }
  980. }
  981.  
  982. strcpy(GameHacks.Special.FastKiller.szNick, "<None>");
  983. LoadMyKiller = 0;
  984. }
  985. }
  986. // ================================================================================== //
  987. static int PatchControlKick = 0;
  988. if(GameHacks.Kick.Control)
  989. {
  990. if(CPlayer* m_pPlayer = PlayerManager->GetAliveEnemy())
  991. {
  992. if(LocalPlayer->m_pTeam > 0){
  993. if(LocalPlayer->m_pControl == 1){
  994. LocalPlayer->m_pControl = 0;
  995. }
  996. }
  997. if(m_pPlayer)
  998. {
  999. m_pPlayer->m_pAction = 0;
  1000. m_pPlayer->m_pControl = 1;
  1001. PatchControlKick = 1;
  1002. }
  1003. }
  1004. }
  1005. else
  1006. if(!GameHacks.Kick.Control && !PatchControlKick)
  1007. {
  1008. if(LocalPlayer){
  1009. for(int i = 0; i < PlayerCount; i++){
  1010. if(CPlayer* m_pPlayer = PlayerManager->GetPlayerByIdx(i)) {
  1011. if(m_pPlayer->IsEnemy()){
  1012. m_pPlayer->m_pControl = 0;
  1013. }
  1014. }
  1015. }
  1016. if(LocalPlayer->m_pTeam > 0){
  1017. if(LocalPlayer->m_pControl == 0){
  1018. LocalPlayer->m_pControl = 1;
  1019. }
  1020. }
  1021. PatchControlKick = 0;
  1022. }
  1023. }
  1024. // ================================================================================== //
  1025. if(GameHacks.Player.Delay == 1) {
  1026. if(LocalPlayer){
  1027. if(LocalPlayer->m_pGear){
  1028. if(LocalPlayer->m_pGear->m_pWeapon) EncryptValue(&LocalPlayer->m_pGear->m_pWeapon->m_pDelay, 100.0f);
  1029. if(LocalPlayer->m_pGear->m_pArmor) EncryptValue(&LocalPlayer->m_pGear->m_pArmor->m_pDelay, 100.0f);
  1030. if(LocalPlayer->m_pGear->m_pHelmet) EncryptValue(&LocalPlayer->m_pGear->m_pHelmet->m_pDelay, 100.0f);
  1031. if(LocalPlayer->m_pGear->m_pCloak) EncryptValue(&LocalPlayer->m_pGear->m_pCloak->m_pDelay, 100.0f);
  1032. }
  1033. }
  1034. }
  1035. // ================================================================================== //
  1036. if(GameHacks.GB.TimerTeleport)
  1037. {
  1038. if(TimerDungeon > 0)
  1039. {
  1040. if(TimerDungeon >= ((GameHacks.GB.Hour * 86400000) + (GameHacks.GB.Min * 60000) + (GameHacks.GB.Sec * 1000)))
  1041. {
  1042. if(LocalPlayer){
  1043. if(LocalPlayer->m_pMap){
  1044. if(LocalPlayer->m_pMap->m_pPos){
  1045. if(Room->m_pMode == 17){
  1046. LocalPlayer->m_pMap->m_pPos->vPos.x = 7531.0f;
  1047. LocalPlayer->m_pMap->m_pPos->vPos.z = -73.0f;
  1048. }
  1049. if(Room->m_pMode == 18){
  1050. LocalPlayer->m_pMap->m_pPos->vPos.x = 8918.0f;
  1051. LocalPlayer->m_pMap->m_pPos->vPos.z = -1180.0f;
  1052. }
  1053. if(Room->m_pMode == 19){
  1054. LocalPlayer->m_pMap->m_pPos->vPos.x = 4663.0f;
  1055. LocalPlayer->m_pMap->m_pPos->vPos.z = 358.0f;
  1056. }
  1057. if(Room->m_pMode == 22){
  1058. LocalPlayer->m_pMap->m_pPos->vPos.x = 1708.0f;
  1059. LocalPlayer->m_pMap->m_pPos->vPos.z = 3243.0f;
  1060. }
  1061. }
  1062. }
  1063. for(int i = 0; i < 64; i++)
  1064. {
  1065. SetForegroundWindow(GetActiveWindow());
  1066. Hero->m_pKey->Right = 3;
  1067. }
  1068. for(int i = 0; i < 64; i++)
  1069. {
  1070. LocalPlayer->m_pAction = 0x5;
  1071. LocalPlayer->m_pHitAction = 256;
  1072.  
  1073. }
  1074. // if fail, try alternative one
  1075. for(int i = 0; i < 64; i++)
  1076. {
  1077. SetForegroundWindow(GetActiveWindow());
  1078. Hero->m_pKey->D = 2;
  1079. }
  1080.  
  1081. }
  1082. }
  1083. }
  1084. }
  1085. // ================================================================================== //
  1086. if(GameHacks.Player.HP == 1){
  1087. if(LocalPlayer){
  1088. EncryptValue(&LocalPlayer->m_pHP, 251.0f);
  1089. }
  1090. }
  1091. // ================================================================================== //
  1092. if(GameHacks.Player.Refill == 1){
  1093. if(LocalPlayer){
  1094. if(GetAsyncKeyState('R'))
  1095. {
  1096. if(LocalPlayer->m_pHPReal < 250.0f)
  1097. {
  1098. float NextHP = LocalPlayer->m_pHPReal + 2.5f;
  1099. EncryptValue(&LocalPlayer->m_pHP, NextHP);
  1100. }
  1101. else
  1102. {
  1103. EncryptValue(&LocalPlayer->m_pHP, 251.0f);
  1104. }
  1105. }
  1106. }
  1107. }
  1108. // ================================================================================== //
  1109. if(GameHacks.Player.NPC == 1){
  1110. for(int i = 0; i < PlayerCount; i++){
  1111. CPlayer* Bot = PlayerManager->GetPlayerByIdx(i);
  1112. if(Bot){
  1113. if(Bot->IsBot()){
  1114. Bot->m_pHP = 0;
  1115. }
  1116. }
  1117. }
  1118. }
  1119. // ================================================================================== //
  1120. if(GameHacks.Player.BotKill == 1){
  1121. if(LocalPlayer){
  1122. LocalPlayer->m_pAction = 0;
  1123. }
  1124. }
  1125. // ================================================================================== //
  1126. static int RestoreViewMode = 0;
  1127. if(GameHacks.Player.ViewMode == 1) {
  1128. if(LocalPlayer){
  1129. LocalPlayer->m_pAction = 0x24;
  1130. RestoreViewMode = 1;
  1131. }
  1132. } else if(GameHacks.Player.ViewMode == 0 && RestoreViewMode == 1){
  1133. if(LocalPlayer){
  1134. LocalPlayer->m_pAction = 0;
  1135. RestoreViewMode = 0;
  1136. }
  1137. }
  1138. // ================================================================================== //
  1139. if(GameHacks.Player.Invicible == 1){
  1140. if(LocalPlayer){
  1141. LocalPlayer->m_pMaxBuff = -1;
  1142. }
  1143. }
  1144. // ================================================================================== //
  1145. if(GameHacks.Player.Speed){
  1146. if(LocalPlayer){
  1147. if(GameHacks.Player.Speed == 1){
  1148. EncryptValue(&LocalPlayer->m_pSpeed, 353.0f* 2);
  1149. }
  1150. if(GameHacks.Player.Speed == 2){
  1151. EncryptValue(&LocalPlayer->m_pSpeed, 353.0f* 3);
  1152. }
  1153. if(GameHacks.Player.Speed == 3){
  1154. EncryptValue(&LocalPlayer->m_pSpeed, 353.0f* 5);
  1155. }
  1156. if(GameHacks.Player.Speed == 4){
  1157. EncryptValue(&LocalPlayer->m_pSpeed, 353.0f* 10);
  1158. }
  1159. }
  1160. }
  1161. // ================================================================================== //
  1162. if(GameHacks.Player.FastHit == 1){
  1163. if(LocalPlayer){
  1164. LocalPlayer->m_pTimerHitEnd = 150;
  1165. }
  1166. }
  1167. // ================================================================================== //
  1168. if(GameHacks.Hard.AttackMove == 1){
  1169. if(LocalPlayer){
  1170. LocalPlayer->m_pStayAttackSize = LocalPlayer->m_pStayAttack;
  1171. }
  1172. }
  1173. // ================================================================================== //
  1174. if(GameHacks.Helper.AutoJump == 1){
  1175. if(LocalPlayer){
  1176. LocalPlayer->m_pIsJump = 0x44960000;
  1177. }
  1178. }
  1179. // ================================================================================== //
  1180. if(GameHacks.Hard.InfinityJump == 1){
  1181. if(GetAsyncKeyState(0x41) & 0x1){
  1182. if(LocalPlayer){
  1183. LocalPlayer->JumpHigh = 0;
  1184. }
  1185. }
  1186. }
  1187. // ================================================================================== //
  1188. if(GameHacks.Special.AirDash == 1)
  1189. {static __int32 oVal = 0; static bool LoadVal = false;
  1190. if(!LoadVal){
  1191. if(LocalPlayer){
  1192. oVal = LocalPlayer->m_pAirDash;
  1193. LoadVal = true;
  1194. }
  1195. }
  1196. if(LocalPlayer){
  1197. LocalPlayer->m_pAirDash = oVal;
  1198. }
  1199. }
  1200. // ================================================================================== //
  1201. if(GameHacks.Player.FastGetUp == 1){
  1202. if(LocalPlayer){
  1203. LocalPlayer->m_pMSToWakeUP = 0;
  1204. }
  1205. }
  1206. // ================================================================================== //
  1207. if(GameHacks.Player.MaxCombo == 1){
  1208. if(LocalPlayer){
  1209. LocalPlayer->m_pCombo = 100;
  1210. }
  1211. }
  1212. // ================================================================================== //
  1213. if(GameHacks.Player.BossMode){
  1214. if(LocalPlayer){
  1215. LocalPlayer->m_pBoss = 1;
  1216. }
  1217. }
  1218. // ================================================================================== //
  1219. if(GameHacks.GB.TeleportDungeon == 1){
  1220. if(GetAsyncKeyState(VK_CAPITAL) & 0x1){
  1221. if(LocalPlayer){
  1222. if(LocalPlayer->m_pMap){
  1223. if(LocalPlayer->m_pMap->m_pPos){
  1224. if(Room->m_pMode == 17){
  1225. LocalPlayer->m_pMap->m_pPos->vPos.x = 7531.0f;
  1226. LocalPlayer->m_pMap->m_pPos->vPos.z = -73.0f;
  1227. }
  1228. if(Room->m_pMode == 18){
  1229. LocalPlayer->m_pMap->m_pPos->vPos.x = 8918.0f;
  1230. LocalPlayer->m_pMap->m_pPos->vPos.z = -1180.0f;
  1231. }
  1232. if(Room->m_pMode == 19){
  1233. LocalPlayer->m_pMap->m_pPos->vPos.x = 4663.0f;
  1234. LocalPlayer->m_pMap->m_pPos->vPos.z = 358.0f;
  1235. }
  1236. if(Room->m_pMode == 22){
  1237. LocalPlayer->m_pMap->m_pPos->vPos.x = 1708.0f;
  1238. LocalPlayer->m_pMap->m_pPos->vPos.z = 3243.0f;
  1239. }
  1240. }
  1241. }
  1242. }
  1243. }
  1244. }
  1245. // ================================================================================== //
  1246. if(GameHacks.GB.FreezeDungeon == 1){
  1247. for(int i = 0; i < PlayerCount; i++){
  1248. CPlayer* Bot = PlayerManager->GetPlayerByIdx(i);
  1249. if(Bot){
  1250. if(Bot->IsBot()){
  1251. Bot->m_pSpeed = 0;
  1252. if(Bot->m_pGear->m_pWeapon) Bot->m_pGear->m_pWeapon->m_pDelay = 0;
  1253. if(Bot->m_pGear->m_pArmor) Bot->m_pGear->m_pArmor->m_pDelay = 0;
  1254. if(Bot->m_pGear->m_pHelmet) Bot->m_pGear->m_pHelmet->m_pDelay = 0;
  1255. if(Bot->m_pGear->m_pCloak) Bot->m_pGear->m_pCloak->m_pDelay = 0;
  1256. }
  1257. }
  1258. }
  1259. }
  1260. // ================================================================================== //
  1261. if(GameHacks.Player.EndAction == 1){
  1262. if(GetAsyncKeyState(VK_LSHIFT) || GetAsyncKeyState(VK_RSHIFT)){
  1263. if(LocalPlayer){
  1264. LocalPlayer->m_pAction = 0x25;
  1265. }
  1266. }
  1267. }
  1268. // ================================================================================== //
  1269. /*if(GameHacks.Hard.AntiFall == 1){
  1270. if(LocalPlayer){
  1271. if(LocalPlayer->m_pAction == ACT_FALLING){
  1272. for(int i = 0; i < 32; i++){
  1273. CPlayer* m_pPlayer = PlayerManager->GetPlayerByIdx(i);
  1274. if(m_pPlayer){
  1275. if(Framework::BattleManager()->IsMe(m_pPlayer) == false){
  1276. LocalPlayer->m_pMap->m_pLocalPos->X = m_pPlayer->m_pMap->m_pLocalPos->X;
  1277. LocalPlayer->m_pMap->m_pLocalPos->Y = m_pPlayer->m_pMap->m_pLocalPos->Y;
  1278. LocalPlayer->m_pMap->m_pLocalPos->Z = m_pPlayer->m_pMap->m_pLocalPos->Z;
  1279. LocalPlayer->Action = ACT_IDLE;
  1280. break;
  1281. }
  1282. } else continue;
  1283. }
  1284. }
  1285. }
  1286. }*/
  1287. // ================================================================================== //
  1288. if(GameHacks.GB.MagnetCSD == 1){
  1289. for(int i = 0; i < PlayerCount; i++){
  1290. CPlayer* Bot = PlayerManager->GetPlayerByIdx(i);
  1291. if(Bot){
  1292. if(Bot->IsBot()){
  1293. Bot->m_pMap->m_pPos->vPos = LocalPlayer->m_pMap->m_pPos->vPos;
  1294. }
  1295. }
  1296. }
  1297. }
  1298. // ================================================================================== //
  1299. if(GameHacks.Simple.ZeroLadder == 1){
  1300. if(GetAsyncKeyState(VK_ESCAPE) & 0x1){
  1301. Beep(900, 100);
  1302. 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 };
  1303. Memory->Write(ResultNoLose2, pByteZeroLadder, sizeof(pByteZeroLadder));
  1304. }
  1305. }
  1306. // ================================================================================== //
  1307. if(GameHacks.GB.TeleportFloor == 1){
  1308. if(Room->m_pMode == 10){
  1309. if(Room->m_pMap > 1){
  1310. Hero->m_pBattle->m_pPlayerContext->m_pFloorState1 = 1000;
  1311. Hero->m_pBattle->m_pPlayerContext->m_pFloorActive = 1176256512;
  1312. Hero->m_pBattle->m_pPlayerContext->m_pFloorState2 = 30000;
  1313. }
  1314. }
  1315. }
  1316. // ================================================================================== //
  1317. if(GameHacks.Player.Ghost == 1){
  1318. if(LocalPlayer){
  1319. LocalPlayer->m_pCurTransparacy = 0;
  1320. LocalPlayer->m_pGhost = 0x1EACFA54;
  1321. }
  1322. }
  1323. // ================================================================================== //
  1324. if(GameHacks.Player.Level == 1){
  1325. if(LocalPlayer){
  1326. LocalPlayer->m_pLevel = 100;
  1327. }
  1328. }
  1329. // ================================================================================== //
  1330. if(GameHacks.Skill.Skill == 1){
  1331. if(LocalPlayer){
  1332. LocalPlayer->SetWeaponValue(0x1A5C, 3, 99);
  1333. LocalPlayer->SetWeaponValue(0x1A5C, 50003, 99);
  1334. LocalPlayer->SetWeaponValue(0x1ABC, 60003, 99);
  1335. LocalPlayer->SetWeaponValue(0x1A5C, 10, 99);
  1336. LocalPlayer->SetWeaponValue(0x1A2C, 11, 9999);
  1337. LocalPlayer->SetWeaponValue(0x1A5C, 18, 99);
  1338. LocalPlayer->SetWeaponValue(0x1A5C, 50018, 99);
  1339. LocalPlayer->SetWeaponValue(0x1AA4, 22, 99);
  1340. LocalPlayer->SetWeaponValue(0x1AA4, 32, 99);
  1341. LocalPlayer->SetWeaponValue(0x1AA4, 30032, 99);
  1342. LocalPlayer->SetWeaponValue(0x19D4, 26, 99);
  1343. LocalPlayer->SetWeaponValue(0x16F4, 70036, 9999.0f);
  1344. LocalPlayer->SetWeaponValue(0x1C5C, 54, 9999.0f);
  1345. LocalPlayer->SetWeaponValue(0x1B34, 57, 9999.0f);
  1346. LocalPlayer->SetWeaponValue(0x1A70, 64, 9999.0f);
  1347. LocalPlayer->SetWeaponValue(0x1A70, 50064, 9999.0f);
  1348. LocalPlayer->SetWeaponValue(0x1A70, 60064, 9999.0f);
  1349. LocalPlayer->SetWeaponValue(0x1A70, 70064, 9999.0f);
  1350. LocalPlayer->SetWeaponValue(0x1B70, 62, 9999.0f);
  1351. LocalPlayer->SetWeaponValue(0x19D0, 63, 9999.0f);
  1352. LocalPlayer->SetWeaponValue(0x1D4C, 65, 9999.0f);
  1353. LocalPlayer->SetWeaponValue(0x1E8C, 66, 9999.0f);
  1354. LocalPlayer->SetWeaponValue(0x1A48, 67, 9999.0f);
  1355. LocalPlayer->SetWeaponValue(0x1EB0, 75, 9999.0f);
  1356. LocalPlayer->SetWeaponValue(0x1DBC, 79, 9999);
  1357. LocalPlayer->SetWeaponValue(0x1E24, 81, 9999.0f);
  1358. LocalPlayer->SetWeaponValue(0x1A8C, 83, 99);
  1359. LocalPlayer->SetWeaponValue(0x200C, 85, 9999.0f);
  1360. LocalPlayer->SetWeaponValue(0x1F08, 86, 9999.0f);
  1361. LocalPlayer->SetWeaponValue(0x1DEC, 88, 9999.0f);
  1362. LocalPlayer->SetWeaponValue(0x1D60, 89, 9999.0f);
  1363. LocalPlayer->SetWeaponValue(0x1B34, 90, 9999.0f);
  1364. LocalPlayer->SetWeaponValue(0x1E18, 91, 9999.0f);
  1365. LocalPlayer->SetWeaponValue(0x1DD0, 92, 9999.0f);
  1366. LocalPlayer->SetWeaponValue(0x1C60, 94, 99);
  1367. LocalPlayer->SetWeaponValue(0x1DD0, 92, 9999.0f);
  1368.  
  1369.  
  1370.  
  1371.  
  1372.  
  1373. }
  1374. }
  1375.  
  1376. } else
  1377. {
  1378. if(strcmp(GameHacks.Special.Maddness.szNick, "<Unknown>")){
  1379. strcpy(GameHacks.Special.Maddness.szNick, "<Unknown>");
  1380. }
  1381. if(strcmp(GameHacks.Special.KillEnemy.szNick, "<Unknown>")){
  1382. strcpy(GameHacks.Special.KillEnemy.szNick, "<Unknown>");
  1383. }
  1384. if(strcmp(GameHacks.Special.FastKiller.szNick, "<Unknown>")){
  1385. strcpy(GameHacks.Special.FastKiller.szNick, "<Unknown>");
  1386. }
  1387. }
  1388. }
  1389. Sleep(10);
  1390. }
  1391. catch(...)
  1392. {
  1393. }
  1394. }
  1395. return (0);
  1396. }
  1397.  
  1398.  
  1399. DWORD HackShopOn(LPVOID Arg)
  1400. {
  1401. while (1)
  1402. {
  1403. Sleep(10);
  1404. // ================================================================================== //
  1405. // HS 314 ITEM
  1406.  
  1407. if(!memcmp((void*)(HackShop3), (PBYTE)"\x89", 1)){
  1408. DetourCreate((PBYTE)HackShop7, (PBYTE)Ok_OK6, 5); //Price Peso
  1409. DetourCreate((PBYTE)HackShop6, (PBYTE)Ok_OK5, 5); //Price Gcash
  1410. DetourCreate((PBYTE)HackShop5, (PBYTE)Ok_OK4, 5);
  1411. DetourCreate((PBYTE)HackShop4, (PBYTE)Ok_OK3, 6); //UnlockItem
  1412. DetourCreate((PBYTE)HackShop3, (PBYTE)Ok_OK2, 6); //Full Item
  1413. }
  1414.  
  1415. // Auto On Hackshop
  1416. if(!memcmp((void*)HackShopX, (PBYTE)"\x74", 1))
  1417. memcpy((void*)HackShopX, "\x75", 1);
  1418. if(!memcmp((void*)HackShop2, (PBYTE)"\x64", 1))
  1419. memcpy((void*)HackShop2, "\x00", 1);
  1420.  
  1421. // Hack Style
  1422. //DetourCreate((PBYTE)ResultHackShopRank2, (PBYTE)hkHackNeedRank2, 6);
  1423.  
  1424. Sleep(10); // Berikan jeda
  1425. }
  1426. return (0); // unhook
  1427. }
Add Comment
Please, Sign In to add comment