Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.79 KB | None | 0 0
  1. #include <Windows.h>
  2. #include "Form1.h"
  3. #include "Functions.h"
  4. #include "Defines.h"
  5. #include "Auto Bot.h"
  6.  
  7. using namespace GameKillerTrainer;
  8.  
  9.  
  10. //Program Opacity
  11. void Form1::numericUpDown1_ValueChanged(System::Object^ sender, System::EventArgs^ e)
  12. {
  13. double iOpacityValue = Convert::ToDouble(this->numericUpDown1->Text);
  14. double iOpacity = iOpacityValue / 100;
  15. this->Opacity = iOpacity;
  16. }
  17.  
  18.  
  19. void Form1::button3_Click(System::Object^ sender, System::EventArgs^ e)
  20. {
  21. ColorDialog^ MyDialog = gcnew ColorDialog();
  22. MyDialog->AllowFullOpen = false ;
  23. MyDialog->ShowHelp = true ;
  24. MyDialog->Color = this->BackColor;
  25.  
  26. if ( MyDialog->ShowDialog() == ::DialogResult::OK )
  27. {
  28. this->BackColor = MyDialog->Color;
  29. BackColor = MyDialog->Color;
  30. tabPage1->BackColor = MyDialog->Color;
  31. tabPage2->BackColor = MyDialog->Color;
  32. tabPage3->BackColor = MyDialog->Color;
  33. }
  34. }
  35.  
  36. void Form1::button4_Click(System::Object^ sender, System::EventArgs^ e)
  37. {
  38. ColorDialog^ MyDialog = gcnew ColorDialog();
  39. MyDialog->AllowFullOpen = false ;
  40. MyDialog->ShowHelp = true ;
  41. MyDialog->Color = this->ForeColor;
  42.  
  43. if ( MyDialog->ShowDialog() == ::DialogResult::OK )
  44. {
  45. this->ForeColor = MyDialog->Color;
  46. ForeColor = MyDialog->Color;
  47.  
  48. }
  49. }
  50.  
  51.  
  52.  
  53.  
  54.  
  55. /**************
  56. * Hide MS *
  57. **************/
  58. //This will hide and restore the MapleStory Window.
  59. //*It will not hide any injected .dlls, as it finds only the MapleStory window.
  60. void Form1::button1_Click(System::Object^ sender, System::EventArgs^ e)
  61. {
  62. if(this->button1->Text == "Hide MapleStory")
  63. {
  64. this->button1->Text = "Show MapleStory";
  65. HWND hWnd = FindWindowA("MapleStoryClass", NULL);
  66. ShowWindow(hWnd, SW_HIDE);
  67. }
  68. else
  69. {
  70. this->button1->Text = "Hide MapleStory";
  71. HWND hWnd = FindWindowA("MapleStoryClass", NULL);
  72. ShowWindow(hWnd, SW_SHOW);
  73. }
  74. }
  75.  
  76.  
  77.  
  78.  
  79. //Main Function
  80. void Main (void)
  81. {
  82. //MessageBox:: Show("Made by MoopleFag! ", "I like big cocks and I cannot lie.");
  83. Application::EnableVisualStyles();
  84. Application::SetCompatibleTextRenderingDefault(false);
  85. Application::Run(gcnew Form1);
  86. Application::Exit();
  87. }
  88.  
  89. //Cool Hit effect.
  90. DWORD CoolHitEffect2 = 0x00A00AF6;
  91. BYTE enableCoolHitEffect2[] = {0x83, 0x7C, 0x25, 0x74, 0x01};
  92. BYTE disableCoolHitEffect2[] = {0x83, 0x7C, 0x24, 0x74, 0x00};
  93.  
  94.  
  95. void Form1::checkBox1_CheckedChanged(System::Object^ sender, System::EventArgs^ e)
  96. {
  97.  
  98. if(this->checkBox1->Checked)
  99. {
  100. WriteMemory(CoolHitEffect2,5,0x83, 0x7C, 0x25, 0x74, 0x01);
  101. }
  102. else
  103. {
  104. WriteMemory(CoolHitEffect2,5,0x83, 0x7C, 0x24, 0x74, 0x00);
  105. }
  106. }
  107.  
  108. //UA.
  109. DWORD US2 = 0x009C80F0;
  110. BYTE enableUS2[] = {0xEB};
  111. BYTE disableUS2[] = {0x7E};
  112.  
  113. void Form1::checkBox2_CheckedChanged(System::Object^ sender, System::EventArgs^ e)
  114. {
  115.  
  116. if(this->checkBox2->Checked)
  117. {
  118. WriteMemory(US2,1,0xEB);
  119. }
  120. else
  121. {
  122. WriteMemory(US2,1,0x7E);
  123. }
  124. }
  125.  
  126. // Raining Mobs
  127. DWORD RM2 = 0x006A4E16;
  128. BYTE enableRM2[] = {0xD9, 0xC1};
  129. BYTE disableRM2[] = {0xD9, 0xC0};
  130.  
  131. void Form1::checkBox3_CheckedChanged(System::Object^ sender, System::EventArgs^ e)
  132. {
  133. if(this->checkBox3->Checked)
  134. {
  135. WriteMemory(RM2,2,0xD9, 0xC1);
  136. }
  137. else
  138. {
  139. WriteMemory(RM2,2,0xD9, 0xC0);
  140. }
  141. }
  142. //Map Speedup
  143. DWORD MSU2 = 0x6666EB03;
  144. BYTE enableMSU2[] = {0x58};
  145. BYTE disableMSU2[] = {0x08};
  146.  
  147. void Form1::checkBox4_CheckedChanged(System::Object^ sender, System::EventArgs^ e)
  148. {
  149. if(this->checkBox4->Checked)
  150. {
  151. WriteMemory(MSU2,1,0x58);
  152. }
  153. else
  154. {
  155. WriteMemory(MSU2,1,0x08);
  156. }
  157.  
  158.  
  159. }
  160. //Packet Godmode.
  161. DWORD BD2 = 0x00A014E5;
  162. BYTE enableBD2[] = {0x0F, 0x85};
  163. BYTE disableBD2[] = {0x0F, 0x84};
  164.  
  165. void Form1::checkBox5_CheckedChanged(System::Object^ sender, System::EventArgs^ e)
  166. {
  167. if(this->checkBox5->Checked)
  168. {
  169. WriteMemory(BD2,2,0x0F, 0x85);
  170. }
  171. else
  172. {
  173. WriteMemory(BD2,2,0x0F, 0x84);
  174. }
  175. }
  176.  
  177. //Miss Godmode
  178. DWORD MGM2 = 0x009FF73B;
  179. BYTE enableMGM2[] = {0x0F, 0x85};
  180. BYTE disableMGM2[] = {0x0F, 0x84};
  181.  
  182. void Form1::checkBox6_CheckedChanged(System::Object^ sender, System::EventArgs^ e)
  183. {
  184.  
  185. if(this->checkBox6->Checked)
  186. {
  187. WriteMemory(BD2,2,0x0F, 0x85);
  188. }
  189. else
  190. {
  191. WriteMemory(BD2,2,0x0F, 0x85);
  192. }
  193. }
  194. //All Mob KB
  195. DWORD AMK = 0x00695882;
  196. BYTE enableAMK[] = {0x75};
  197. BYTE disableAMK[] = {0x74};
  198.  
  199. void Form1::checkBox7_CheckedChanged(System::Object^ sender, System::EventArgs^ e)
  200. {
  201. if(this->checkBox7->Checked)
  202. {
  203. WriteMemory(AMK,1,0x75);
  204. }
  205. else
  206. {
  207. WriteMemory(AMK,1,0x74);
  208. }
  209. }
  210. //Slow Mobs
  211. DWORD SM = 0x006A52CB;
  212. BYTE enableSM[] = {0xB8, 0x00, 0x00, 0x00, 0x00};
  213. BYTE disableSM[] = {0xB8, 0xE8, 0x03, 0x00, 0x00};
  214.  
  215. void Form1::checkBox8_CheckedChanged(System::Object^ sender, System::EventArgs^ e)
  216. {
  217. if(this->checkBox8->Checked)
  218. {
  219. WriteMemory(SM,5,0xB8, 0x00, 0x00, 0x00, 0x00);
  220. }
  221. else
  222. {
  223. WriteMemory(SM,5,0xB8, 0xE8, 0x03, 0x00, 0x00);
  224. }
  225. }
  226. //Show Rank
  227. //Needs Udating.
  228. DWORD SR = 0x00A00E0A;
  229. BYTE enableSR[] = {0x90, 0x90, 0x90, 0x90, 0x90, 0x90};
  230. BYTE disableSR[] = {0x0F, 0x84, 0x9F, 0x00, 0x00, 0x00};
  231.  
  232. void Form1::checkBox9_CheckedChanged(System::Object^ sender, System::EventArgs^ e)
  233. {
  234. if(this->checkBox9->Checked)
  235. {
  236. WriteMemory(SR,6,0x90, 0x90, 0x90, 0x90, 0x90, 0x90);
  237. }
  238. else
  239. {
  240. WriteMemory(SR,6,0x0F, 0x84, 0x9F, 0x00, 0x00, 0x00);
  241. }
  242. }
  243.  
  244.  
  245. //Full Godmode
  246. DWORD FMG = 0x009FF50C;
  247. BYTE enableFMG[] = {0x0F, 0x84};
  248. BYTE disableFMG[] = {0x0F, 0x85};
  249.  
  250. void Form1::checkBox10_CheckedChanged(System::Object^ sender, System::EventArgs^ e)
  251. {
  252.  
  253. if(this->checkBox10->Checked)
  254. {
  255. WriteMemory(FMG,2,0x0F, 0x84);
  256. }
  257. else
  258. {
  259. WriteMemory(FMG,2,0x0F, 0x85);
  260. }
  261. }
  262. //No KB
  263. DWORD NKB = 0x007A9BDB;
  264. BYTE enableNKB[] = {0x00};
  265. BYTE disableNKB[] = {0x01};
  266.  
  267. void Form1::checkBox11_CheckedChanged(System::Object^ sender, System::EventArgs^ e)
  268. {
  269.  
  270. if(this->checkBox11->Checked)
  271. {
  272. WriteMemory(NKB,1,0x00);
  273. }
  274. else
  275. {
  276. WriteMemory(NKB,1,0x01);
  277. }
  278. }
  279.  
  280. //Pic Typer
  281. DWORD PICT = 0x004F7B65;
  282. BYTE enablePICT[] = {0xEB};
  283. BYTE disablePICT[] = {0x74};
  284.  
  285. void Form1::checkBox12_CheckedChanged(System::Object^ sender, System::EventArgs^ e)
  286. {
  287.  
  288. if(this->checkBox12->Checked)
  289. {
  290. WriteMemory(PICT, 1, 0xEB);
  291. }
  292. else
  293. {
  294. WriteMemory(PICT, 1, 0x74);
  295. }
  296. }
  297. //Super Tubi
  298. DWORD ST = 0x004B0DB7;
  299.  
  300. void Form1::checkBox13_CheckedChanged(System::Object^ sender, System::EventArgs^ e)
  301. {
  302. if(this->checkBox14->Checked)
  303. {
  304. WriteMemory(ST, 5, 0x09, 0x90, 0x90, 0x90, 0x90, 0x90);
  305. }
  306. else
  307. {
  308. WriteMemory(ST, 2, 0x89, 0x86, 0xB8, 0x20, 0x00, 0x00);
  309. }
  310. }
  311. //No Aran Skill Movement
  312. DWORD NASM = 0x009CB51F;
  313. BYTE enableNASM[] = {0x00};
  314. BYTE disableNASM[] = {0x01};
  315.  
  316. void Form1::checkBox14_CheckedChanged(System::Object^ sender, System::EventArgs^ e)
  317. {
  318.  
  319. if(this->checkBox14->Checked)
  320. {
  321. WriteMemory(NASM, 1, 0x00);
  322. }
  323. else
  324. {
  325. WriteMemory(NASM, 1, 0x01);
  326. }
  327. }
  328.  
  329. //Block Map Crash Auto Enable---------------------------
  330.  
  331. DWORD BMC = 0x009B4AF2;
  332.  
  333. /*void Form1::Form1_Load(System::Object^ sender, System::EventArgs^ e)
  334. {
  335. WriteMemory(BMC,6,0xE9, 0x0B, 0x1F, 0x00, 0x00, 0x90);
  336. }*/
  337.  
  338. //--------------------------------------------------------
  339.  
  340.  
  341. //CS MOB LAG
  342. DWORD CSMOB = 0x006A628A;
  343. BYTE enableCSMOB[] = {0xB8, 0x00};
  344. BYTE disableCSMOB[] = {0xB8, 0x01};
  345.  
  346.  
  347. void Form1::checkBox24_CheckedChanged(System::Object^ sender, System::EventArgs^ e)
  348. {
  349.  
  350. if(this->checkBox24->Checked)
  351. {
  352. WriteMemory(CSMOB,2,0xB8, 0x00);
  353. }
  354. else
  355. {
  356. WriteMemory(CSMOB,2,0xB8, 0x01);
  357. }
  358. }
  359.  
  360.  
  361.  
  362. //Server MOB LAG
  363. DWORD SSMOB1 = 0x00A05D13;
  364. BYTE enableSSMOB1[] = {0xB8, 0x00};
  365. BYTE disableSSMOB1[] = {0x88, 0x01};
  366.  
  367.  
  368. void Form1::checkBox25_CheckedChanged(System::Object^ sender, System::EventArgs^ e)
  369. {
  370.  
  371. if(this->checkBox25->Checked)
  372. {
  373. WriteMemory(SSMOB1,2,0xB8, 0x00);
  374. }
  375. else
  376. {
  377. WriteMemory(SSMOB1,2,0x88, 0x01);
  378. }
  379. }
  380.  
  381. //No Skill Move
  382. DWORD NOSKILLM = 0x007A9BDF;
  383. BYTE enableNOSKILLM[] = {0xD8, 0xD2};
  384. BYTE disableNOSKILLM[] = {0xD8, 0xD1};
  385.  
  386.  
  387. void Form1::checkBox27_CheckedChanged(System::Object^ sender, System::EventArgs^ e)
  388. {
  389.  
  390. if(this->checkBox27->Checked)
  391. {
  392. WriteMemory(NOSKILLM,2,0xD8, 0xD2);
  393. }
  394. else
  395. {
  396. WriteMemory(NOSKILLM,2,0xD8, 0xD1);
  397. }
  398. }
  399.  
  400. //Invisible Mobs
  401. DWORD INVSMOB = 0x0043BD42;
  402. BYTE enableINVSMOB[] = {0x0F, 0x85};
  403. BYTE disableINVSMOB[] = {0x0F, 0x84};
  404.  
  405.  
  406. void Form1::checkBox28_CheckedChanged(System::Object^ sender, System::EventArgs^ e)
  407. {
  408.  
  409. if(this->checkBox28->Checked)
  410. {
  411. WriteMemory(INVSMOB,2,0x0F, 0x85);
  412. }
  413. else
  414. {
  415. WriteMemory(INVSMOB,2,0x0F, 0x84);
  416. }
  417. }
  418.  
  419.  
  420. //ALT TUBI
  421. DWORD ALTTUBI = 0x004B10A7;
  422. BYTE enableALTTUBI[] = {0x90, 0x90};
  423. BYTE disableALTTUBI[] = {0x33, 0xc0};
  424.  
  425.  
  426. void Form1::checkBox26_CheckedChanged(System::Object^ sender, System::EventArgs^ e)
  427. {
  428.  
  429. if(this->checkBox26->Checked)
  430. {
  431. WriteMemory(ALTTUBI,2,0x90, 0x90);
  432. }
  433. else
  434. {
  435. WriteMemory(ALTTUBI,2,0x33, 0xc0);
  436. }
  437. }
  438.  
  439.  
  440.  
  441.  
  442. //Fall Through FLoor.
  443. DWORD FTFAddy = 0x00A64D3C;
  444.  
  445. void Form1::checkBox23_CheckedChanged(System::Object^ sender, System::EventArgs^ e)
  446. {
  447.  
  448. if(this->checkBox23->Checked)
  449. {
  450. WriteMemory(FTFAddy, 1, 0x00);
  451. }
  452. else
  453. {
  454. WriteMemory(FTFAddy, 1, 0x02);
  455. }
  456. }
  457.  
  458. //HP Auto Potter ComboBox
  459. void Form1::comboBox5_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e)
  460. {
  461. HPKey = GetKey(this->comboBox5->SelectedIndex);
  462. }
  463.  
  464. // MP Auto Potter ComboBox Body
  465. void Form1::comboBox6_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e)
  466. {
  467. MPKey = GetKey(this->comboBox6->SelectedIndex);
  468. }
  469.  
  470. //Auto Attack Combobox
  471. void Form1::comboBox1_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e)
  472. {
  473. AttackKey = GetKey(this->comboBox1->SelectedIndex);
  474. }
  475. //Auto Loot ComboBox
  476. void Form1::comboBox2_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e)
  477. {
  478. LootKey = GetKey(this->comboBox2->SelectedIndex);
  479. }
  480. //Auto Skill 1 ComboBox
  481. void Form1::comboBox3_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e)
  482. {
  483. Skill1Key = GetKey(this->comboBox3->SelectedIndex);
  484. }
  485.  
  486. //Auto skill 2 ComboBox
  487. void Form1::comboBox4_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e)
  488. {
  489. Skill2Key = GetKey(this->comboBox4->SelectedIndex);
  490. }
  491.  
  492.  
  493.  
  494.  
  495. //Auto Skill 1
  496. void Form1::textBox6_TextChanged(System::Object^ sender, System::EventArgs^ e) //Delay textbox
  497. {
  498. UserSetAutoSkillDelay1 = Convert::ToInt32(this->textBox6->Text)*1000; //Default delay
  499. }
  500.  
  501. //Auto Skill 2
  502. void Form1::textBox7_TextChanged(System::Object^ sender, System::EventArgs^ e)// Delay textbox
  503. {
  504. UserSetAutoSkillDelay2 = Convert::ToInt32(this->textBox7->Text)*1000; //Default delay
  505. }
  506.  
  507.  
  508.  
  509.  
  510.  
  511. #pragma region AutoSkill 1
  512. // Auto Skill 1 On Delete
  513. int DeleteInterval = 100;
  514. bool EnableusingSkill1 = false;
  515. bool usingSkill1 = true;
  516.  
  517. void StartusingAutoSkill1()
  518. {
  519. HWND hwnd = FindWindowA("MapleStoryClass", NULL);
  520. LPARAM lParam = (MapVirtualKeyA((UINT)Skill1Key, 0) << 16) + 1;
  521. while(EnableusingSkill1)
  522. {
  523.  
  524. usingSkill1 = true;
  525. Sleep(1000);
  526. PostMessage(hwnd, WM_KEYDOWN, (WPARAM)Skill1Key, lParam);
  527. usingSkill1 = false;
  528. Sleep(DeleteInterval);
  529. }
  530. }
  531.  
  532. void Form1::checkBox20_CheckedChanged(System::Object^ sender, System::EventArgs^ e)
  533. {
  534. if(this->checkBox20->Checked)
  535.  
  536. {
  537. if(this->textBox6->Text == "")
  538. {
  539. this->checkBox6->Checked = false;
  540. MessageBoxW(NULL, L"Please insert a value for Auto Skill 1 in seconds.", L"Alert", MB_OK);
  541. }
  542. else
  543. {
  544. EnableusingSkill1 = true;
  545. DeleteInterval = Convert::ToInt32(this->textBox6->Text);
  546. DeleteInterval = DeleteInterval * 1000;
  547. CreateThread(NULL, 0, (::LPTHREAD_START_ROUTINE)&StartusingAutoSkill1, NULL, 0, NULL);
  548. }
  549. }
  550. else
  551. {
  552. EnableusingSkill1 = false;
  553. }
  554. }
  555. #pragma endregion
  556.  
  557.  
  558. #pragma region AutoSkill 2
  559. // Auto Skill 2 On Home
  560. int DeleteInterval2 = 100;
  561. bool EnableusingSkill2 = false;
  562. bool usingSkill2 = true;
  563.  
  564. void StartusingAutoSkill2()
  565. {
  566. HWND hwnd = FindWindowA("MapleStoryClass", NULL);
  567. LPARAM lParam = (MapVirtualKeyA((UINT)Skill2Key, 0) << 16) + 1;
  568. while(EnableusingSkill2)
  569. {
  570.  
  571. usingSkill2 = true;
  572. Sleep(1000);
  573. PostMessage(hwnd, WM_KEYDOWN, (WPARAM)Skill2Key, lParam);
  574. usingSkill2 = false;
  575. Sleep(DeleteInterval2);
  576. }
  577. }
  578.  
  579. void Form1::checkBox21_CheckedChanged(System::Object^ sender, System::EventArgs^ e)
  580. {
  581. if(this->checkBox21->Checked)
  582.  
  583. {
  584. if(this->textBox7->Text == "")
  585. {
  586. this->checkBox21->Checked = false;
  587. MessageBoxW(NULL, L"Please insert a value for Auto Skill 2 in seconds.", L"Alert", MB_OK);
  588. }
  589. else
  590. {
  591. EnableusingSkill2 = true;
  592. DeleteInterval2 = Convert::ToInt32(this->textBox7->Text);
  593. DeleteInterval2 = DeleteInterval2 * 1000;
  594. CreateThread(NULL, 0, (::LPTHREAD_START_ROUTINE)&StartusingAutoSkill2, NULL, 0, NULL);
  595. }
  596. }
  597. else
  598. {
  599. EnableusingSkill1 = false;
  600. }
  601. }
  602. #pragma endregion
  603.  
  604.  
  605.  
  606.  
  607. //Auto Attack
  608. bool AAF = false;
  609.  
  610. void AutoA(HWND hwnd)
  611. {
  612. while(!AutoAExit)
  613. {
  614. //Wait., Let me delete my kami first.
  615.  
  616. while(AAF)
  617. {
  618. HWND hwnd = FindWindow(TEXT("MapleStoryClass"), 0);
  619. //Finds the MapleStory Window, this does not support multi maple.
  620. LPARAM lParam = (MapVirtualKey(0xA2, 0) << 16) + 1; //A2
  621. PostMessage(hwnd, WM_KEYDOWN, 0xA2, lParam);
  622. //Pushes the key
  623. Sleep(50);
  624. PostMessage(hwnd, WM_KEYUP, 0xA2, lParam);
  625. //Releases the key
  626. Sleep(10);
  627.  
  628. }
  629. }
  630. }
  631. //Auto Attack
  632. void Form1::checkBox18_CheckedChanged(System::Object^ sender, System::EventArgs^ e)
  633. {
  634. if(this->checkBox18->Checked)
  635. {
  636.  
  637. AutoAExit = false; // If enabled AutoAttackExit is false.
  638. AAF = true;
  639. CreateThread(NULL, 0, (::LPTHREAD_START_ROUTINE)&AutoA, NULL, 0, NULL);
  640. //Here we create a thread, see the definition for more information.
  641. }
  642.  
  643. else
  644. {
  645. AAF = false;
  646. AutoAExit = true; //If disabled AutoAttackExit is ture
  647. }
  648. }
  649.  
  650. //loot
  651. bool ALF = false;
  652.  
  653. void AutoL(HWND hwnd)
  654. {
  655. while(!AutoLExit)
  656. {
  657.  
  658.  
  659.  
  660. while(ALF)
  661. {
  662. HWND hwnd = FindWindow(TEXT("MapleStoryClass"), 0);
  663. LPARAM lParam = (MapVirtualKey(LootKey, 0) << 16) + 1;
  664. PostMessage(hwnd, WM_KEYDOWN, LootKey, lParam);
  665. Sleep(50);
  666. PostMessage(hwnd, WM_KEYUP, LootKey, lParam);//LootKey
  667. Sleep(10);
  668.  
  669. }
  670. }
  671. }
  672.  
  673. //Auto LOOT
  674. void Form1::checkBox19_CheckedChanged(System::Object^ sender, System::EventArgs^ e)
  675. {
  676. if(this->checkBox19->Checked)
  677. {
  678.  
  679. AutoLExit = false;
  680. ALF = true;
  681. CreateThread(NULL, 0, (::LPTHREAD_START_ROUTINE)&AutoL, NULL, 0, NULL);
  682. //Here we create a thread, see the definition for more information.
  683. }
  684.  
  685. else
  686. {
  687. ALF = false;
  688. AutoLExit = true;
  689. }
  690. }
  691.  
  692. #pragma region AutoPot
  693. // Auto Pot
  694. int UserSetHP = 200;
  695. int UserSetMP = 50;
  696. int PotDelay = 200;
  697. bool HPExit = false;
  698. bool MPExit = false;
  699.  
  700.  
  701. void AutoPotHP()
  702. {
  703. HWND hwnd = FindWindowA("MapleStoryClass", NULL);
  704. LPARAM lParam = (MapVirtualKeyA((UINT)HPKey, 0) << 16) + 1;
  705. LPARAM lParam2 = (MapVirtualKeyA((UINT)MPKey, 0) << 16) + 1;
  706. while(HPExit)
  707. {
  708. if(ReadPointer((unsigned long)GUIInfoBase, (int)HP) < UserSetHP)
  709. {
  710. PostMessage(hwnd, WM_KEYDOWN, (WPARAM)HPKey, lParam); // Page Up
  711. Sleep(PotDelay);
  712. }
  713. Sleep(10);
  714. }
  715. }
  716. //Go.
  717. void AutoPotMP()
  718. {
  719. HWND hwnd = FindWindowA("MapleStoryClass", NULL);
  720. LPARAM lParam2 = (MapVirtualKeyA((UINT)MPKey, 0) << 16) + 1;
  721. while(MPExit)
  722. {
  723. if(ReadPointer((unsigned long)GUIInfoBase, (int)MP) < UserSetMP)
  724. {
  725. PostMessage(hwnd, WM_KEYDOWN, (WPARAM)MPKey, lParam2); // Page Down
  726. Sleep(PotDelay);
  727. }
  728. Sleep(10);
  729. }
  730. }
  731.  
  732. void Form1::textBox4_TextChanged(System::Object^ sender, System::EventArgs^ e)
  733. {
  734. UserSetHP = Convert::ToInt32(this->textBox4->Text);
  735. }
  736.  
  737. void Form1::textBox5_TextChanged(System::Object^ sender, System::EventArgs^ e)
  738. {
  739. UserSetMP = Convert::ToInt32(this->textBox5->Text);
  740. }
  741.  
  742. void Form1::checkBox16_CheckedChanged(System::Object^ sender, System::EventArgs^ e)
  743. {
  744. if(this->checkBox16->Checked)
  745. {
  746. HPExit = true;
  747. PotDelay = Convert::ToInt32(this->textBox4->Text);
  748. CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)&AutoPotHP, NULL, NULL, NULL);
  749. }
  750. else
  751. {
  752. HPExit = false;
  753. }
  754. }
  755. void Form1::checkBox17_CheckedChanged(System::Object^ sender, System::EventArgs^ e)
  756. {
  757. if(this->checkBox17->Checked)
  758. {
  759. MPExit = true;
  760. PotDelay = Convert::ToInt32(this->textBox5->Text);
  761. CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)&AutoPotMP, NULL, NULL, NULL);
  762. }
  763. else
  764. {
  765. MPExit = false;
  766. }
  767. }
  768. #pragma endregion
  769.  
  770.  
  771. DWORD ssFlyAdyy = 0x009FD306;
  772. DWORD flyReturn = ssFlyAdyy +6;
  773. BYTE disableFLY[] = {0x0F, 0x84, 0x5C, 0x01, 0x00, 0x00};
  774. void __declspec(naked) flyASM()
  775. {
  776. __asm
  777. {
  778. pushad
  779. mov eax,[0x00DC7CB8] // Mouse Pointer
  780. mov eax,[eax+0x978] // Mouse Location
  781. mov eax,[eax+0x8C] // Mouse X
  782. mov ecx,[0x00DC7CB8] // Mouse Pointer
  783. mov ecx,[ecx+0x978] // Mouse Location
  784. mov ecx,[ecx+0x88] // Mouse Y
  785. mov ebx,[0x00DC775C] // Character Base
  786. mov [ebx+0x43D8],eax // Tele X
  787. mov [ebx+0x43DC],ecx // Tele Y
  788. mov [ebx+0x43D0],01 // Teleport Toggle
  789. popad
  790. jmp [flyReturn]
  791. }
  792. }
  793.  
  794. void Form1::checkBox22_CheckedChanged(System::Object^ sender, System::EventArgs^ e)
  795. {
  796.  
  797. if(checkBox22->Checked)
  798. {
  799. *(BYTE*)ssFlyAdyy = 0xE9; //E9 is the JMP byte and we place it on the 1st byte of the cool hack addy
  800. *(DWORD*)(ssFlyAdyy + 1) = jmp(ssFlyAdyy, flyASM);
  801. }
  802. else
  803. {
  804.  
  805. WriteMemory(ssFlyAdyy, 6, 0x0F, 0x84, 0x5C, 0x01, 0x00, 0x00);
  806. }
  807.  
  808. }
  809.  
  810. //HotKey - SS Mouse Fly - CheckBox22
  811. void Form1::SSMouseflyHotKey_Tick(System::Object^ sender, System::EventArgs^ e)
  812. {
  813. if(GetAsyncKeyState(0x7B))
  814. {
  815. if(checkBox9->Text == "SS Mouse Fly* (F12): Off")
  816. {
  817. checkBox22->Checked = true;
  818. checkBox22->Text = "SS Mouse Fly* (F12): On";
  819. }
  820. else
  821. {
  822. checkBox22->Checked = false;
  823. checkBox22->Text = "SS Mouse Fly* (F12): Off";
  824.  
  825. }
  826. }
  827. }
  828.  
  829. // Kami gMS99.01 ths is was i had before, n
  830. // ----------------------------------------
  831. int xMOB, yMOB;
  832. void Form1::statsTimer_Tick(System::Object^ sender, System::EventArgs^ e)
  833. {
  834. unsigned long Kami1 = GetPointedAddress(MobBase, Mob1);
  835. unsigned long Kami2 = GetPointedAddress(Kami1, Mob2);
  836. unsigned long Kami3 = GetPointedAddress(Kami2, Mob3);
  837. unsigned long Kami4 = GetPointedAddress(Kami3, Mob4);
  838.  
  839. xMOB = ReadPointer1(LPDWORD(Kami4), MobX);
  840. yMOB = ReadPointer1(LPDWORD(Kami4), MobY); //this is what you have. Now im gnna get 2 errors
  841. label2->Text = xMOB.ToString();
  842. label1->Text = yMOB.ToString();
  843. }
  844.  
  845.  
  846. void Form1::checkBox1337_CheckedChanged(System::Object^ sender, System::EventArgs^ e) {
  847. static DWORD KamiAddy = 0x009FD306; //0f 84 ? ? ? ? 8b 8e ? ? ? ? 2b c8
  848. static BYTE KamiON[] = {0x0F, 0x85};
  849. static BYTE KamiOFF[] = {0x0F, 0x84};
  850.  
  851. if(this->checkBox1337->Checked)
  852. {
  853. Memory((LPVOID)KamiAddy, KamiON, 2);
  854. KamiTimer->Interval = System::Convert::ToInt16(textBox3->Text); // Teleport Delay
  855. KamiTimer->Enabled = true;
  856. }
  857. else
  858. {
  859. Memory((LPVOID)KamiAddy, KamiOFF, 2);
  860. }
  861. }
  862.  
  863. void Form1::KamiTimer_Tick(System::Object^ sender, System::EventArgs^ e) {
  864. {
  865. if(this->checkBox1337->Checked)
  866. {
  867.  
  868.  
  869. WritePointer(CharBase, TeleportX, Convert::ToInt32(this->label2->Text) - Convert::ToInt32(this->textBox1->Text)); // Kami X
  870. WritePointer(CharBase, TeleportY, Convert::ToInt32(this->label1->Text) - Convert::ToInt32(this->textBox2->Text)); // Kami Y
  871. }
  872.  
  873. }
  874. }
  875.  
  876. //--------------------------------------
  877. // End Of Kami
  878. //--------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement