DestBro

Jump Hack

Jul 16th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 3.02 KB | None | 0 0
  1. import flashex.mem;
  2. import flashex.io;
  3. import flash.vm;
  4. import flash.vmex;
  5. import flash.swf;
  6. import flash.minimap;
  7. import Network;
  8. import licence;
  9. import base.ini;
  10. import base.win;
  11. import base.gui;
  12. import std.string;
  13. import std.file;
  14. import std.time;
  15. import std.random;
  16. import std.io;
  17.  
  18. Dialog ref dlg;
  19. CheckBox jump;
  20. FlashObject Jump_O, Temperature_O;
  21. bool rew;
  22. HWND Btn_state;
  23.  
  24. class HotKeyInfo{ char c; bool alt; bool ctrl; bool shift; void HotKeyInfo(char _c, bool _alt, bool _ctrl, bool _shift){
  25. c = _c; alt = _alt; ctrl = _ctrl; shift = _shift;}}
  26.  
  27. HotKeyInfo  hotkeyTest1 = HotKeyInfo('R', false, false, false); //Alt ,  Ctrl,  Shift
  28. HotKeyControl hotKey1;
  29.  
  30. void EventTimer(Dialog ref dlg, int param){
  31. Jump_O.SetDouble("z", 2222);
  32. Temperature_O.SetDouble("temperature", 77);
  33. }
  34.  
  35. void EventHotKey1(Dialog ref dlg, int param)
  36. {
  37.     if(!rew)
  38.     {
  39.         dlg.AddTimer(1, EventTimer, 1); Btn_state.Enable(true); Btn_state.SetText("on");
  40.     }else{
  41.         dlg.KillTimer(EventTimer);  Btn_state.Enable(false); Btn_state.SetText("off");
  42.     }
  43.     rew =! rew;
  44. }
  45.  
  46.  
  47. void HotKeyEvent(Dialog ref dlg, int lparam){
  48. dlg.DelHotKey(hotkeyTest1.c, hotkeyTest1.alt, hotkeyTest1.ctrl, hotkeyTest1.shift);
  49. hotKey1.Get(hotkeyTest1.c, hotkeyTest1.alt, hotkeyTest1.ctrl, hotkeyTest1.shift); if(hotkeyTest1.c != 0)
  50. dlg.AddHotKey(hotkeyTest1.c, hotkeyTest1.alt, hotkeyTest1.ctrl, hotkeyTest1.shift, EventHotKey1, 1);}
  51.  
  52.  
  53. void SetHotKey1(Dialog ref dlg, int param)
  54. {
  55.    //============= HotKeyControl выкл. вкл
  56.     if(jump.IsChecked())
  57.     {  Beep(1000, 200);
  58.         //BattleMinesModel\localTank\tankBody\body\pseudoVelocity\z
  59.         //BattleMinesModel\localTank\temperature
  60.         Jump_O = FlashObjectFind("BattleMinesModel");
  61.         Jump_O.GetObject("localTank", Temperature_O);
  62.         Temperature_O.GetObject("tankBody", Jump_O);
  63.         Jump_O.GetObject("body", Jump_O);
  64.         Jump_O.GetObject("pseudoVelocity", Jump_O);
  65.         hotKey1.GetHWND().Enable(true);//включим контрол
  66.         dlg.AddHotKey(hotkeyTest1.c, hotkeyTest1.alt, hotkeyTest1.ctrl, hotkeyTest1.shift, EventHotKey1, 1);  //зарегистрируем (включим) хоткей
  67.     }else{Beep(500, 200);
  68.         hotKey1.GetHWND().Enable(false);//сделаем серым
  69.         dlg.DelHotKey(hotkeyTest1.c, hotkeyTest1.alt, hotkeyTest1.ctrl, hotkeyTest1.shift);
  70.    }
  71. }
  72.  
  73.  
  74. void EventClose(Dialog ref dlg, int param){}
  75. dlg = CreateDialog("Jump Hack", 230, 200, 250, 80, EventClose);
  76. jump = dlg.AddCheckBox("Прыжок", 40, 10, 60, 25, SetHotKey1, 1);
  77. Btn_state = dlg.AddButton("off", 200, 13, 20, 20, EventClose, 1);
  78. Btn_state.Enable(false); // Btn_state.Enable(0);
  79.  
  80.  
  81.  
  82. hotKey1 = dlg.AddHotKeyControl(113, 13, 70, 19, HotKeyEvent, 0);
  83. hotKey1.GetHWND().Enable(false);//сделаем серым контролд хоткей
  84. hotKey1.Set(hotkeyTest1.c, hotkeyTest1.alt, hotkeyTest1.ctrl, hotkeyTest1.shift);//покажем дефолтный хоткей
  85.  
  86. dlg.Show(1);
  87. dlg.OnTop(1); // dlg.OnTop(true);
  88. dlg.WaitClose();
Add Comment
Please, Sign In to add comment