Exemple #1
0
 private static void EndScene(ref int parFrameCount)
 {
     if (lootableUnits.Count == lootCounter)
     {
         enabled  = false;
         lootOpen = false;
         Wait.Remove("LootOpenBlacklist");
         Wait.Remove("LootClickBlacklist");
         DirectX.StopRunning();
         Lua.Print("We are done looting");
         if (AutoLoot.enabled)
         {
             OnRightClickUnitHook.Apply();
             OnRightClickObjectHook.Apply();
         }
         AntiWarden.HookWardenMemScan.GetHack("LootPatch").Remove();
     }
     else
     {
         if (Wait.For("LootUnit", 250))
         {
             if (!Functions.IsLooting(ObjectManager.Player.Pointer))
             {
                 if (lootOpen)
                 {
                     lootCounter++;
                     if (lootableUnits.Count == lootCounter)
                     {
                         return;
                     }
                 }
                 Wait.Remove("LootOpenBlacklist");
                 if (Wait.For("LootClickBlacklist", 5000))
                 {
                     lootCounter++;
                     Wait.Remove("LootClickBlacklist");
                     return;
                 }
                 Functions.OnRightClickUnit(lootableUnits[lootCounter].Pointer, 0);
                 lootOpen = false;
             }
             else
             {
                 lootOpen = true;
                 Wait.Remove("LootClickBlacklist");
                 Functions.LootAll();
                 if (Wait.For("LootOpenBlacklist", 5000))
                 {
                     lootCounter++;
                     Wait.Remove("LootOpenBlacklist");
                     Functions.DoString("LootCloseButton:Click()");
                     return;
                 }
             }
         }
     }
 }
Exemple #2
0
 private void StopGrinder(ref int FrameCounter, bool IsIngame)
 {
     Memory.GetHack("Ctm").Remove();
     if (IsIngame)
     {
         // disable all current ingame movements if we are ingame
         ObjectManager.Player.CtmStopMovement();
     }
     HookWardenMemScan.GetHack("Collision3").Remove();
     HookWardenMemScan.GetHack("Collision").Remove();
     // we arent running anymore
     Access = null;
     ErrorEnumHook.OnNewError -= ErrorEnum_OnNewError;
     DirectX.StopRunning();
 }
Exemple #3
0
 private static void EndScene(ref int parFrameCount)
 {
     if (Wait.For("UseItemTimer", 100))
     {
         if (Memory.Reader.Read <int>((IntPtr)0x00CECAC0) == 64)
         {
             Functions.HandleSpellTerrain(target.Position);
             enabled = false;
             DirectX.StopRunning();
         }
         else if (Wait.For("GrenadeTimeout", 250))
         {
             enabled = false;
             DirectX.StopRunning();
         }
     }
 }
 private void StopIt()
 {
     Main.MainForm.tbHotspots.Text          = "";
     Main.MainForm.tbVendorHotspots.Text    = "";
     Main.MainForm.tbGhostHotspots.Text     = "";
     Main.MainForm.tbFactions.Text          = "";
     Main.MainForm.tbRepair.Text            = "";
     Main.MainForm.tbVendor.Text            = "";
     Main.MainForm.tbRestock.Text           = "";
     Main.MainForm.tbRestockItems.Text      = "";
     Main.MainForm.cbIgnoreZ.Checked        = false;
     Main.MainForm.lHotspotCount.Text       = "Count: ";
     Main.MainForm.lVendorHotspotCount.Text = "Count: ";
     Main.MainForm.lFactionCount.Text       = "Count: ";
     Main.MainForm.lGhostHotspotCount.Text  = "Count: ";
     Main.MainForm.lRecording.Visible       = false;
     DirectX.StopRunning();
 }
Exemple #5
0
 private void StopIt()
 {
     usedProfileForm.tbHotspots.Text               = "";
     usedProfileForm.tbVendorWaypoints.Text        = "";
     usedProfileForm.tbGhostHotspots.Text          = "";
     usedProfileForm.tbFactions.Text               = "";
     usedProfileForm.tbRepair.Text                 = "";
     usedProfileForm.tbVendor.Text                 = "";
     usedProfileForm.tbRestock.Text                = "";
     usedProfileForm.tbRestockItems.Text           = "";
     usedProfileForm.cbIgnoreZ.Checked             = false;
     usedProfileForm.lHotspotCount.Text            = "Count: ";
     usedProfileForm.lFactionCount.Text            = "Count: ";
     usedProfileForm.lGhostHotspotCount.Text       = "Count: ";
     usedProfileForm.lbl_VendorWaypointsCount.Text = "Count: ";
     usedProfileForm.lRecording.Visible            = false;
     usedProfileForm.Text = "Recording stopped!";
     DirectX.StopRunning();
 }
Exemple #6
0
 internal void RunThis(ref int fr)
 {
     ObjectManager.EnumObjects();
     ObjectManager.Player.Spells.StopCasting();
     DirectX.StopRunning();
 }