Exemplo n.º 1
0
 private static void stopGrind()
 {
     if (Grindbot.engine != null)
     {
         Grindbot.engine.StopEngine();
         Grindbot.Dispose();
         GrindbotContainer.Reset();
     }
 }
Exemplo n.º 2
0
        public override void Run()
        {
            GrindbotContainer.IsStuck = false;
            if (!ObjectManager.isGhost)
            {
                Calls.DoString("RepopMe();");
            }
            else
            {
                if (ObjectManager.CorpseLocation.differenceToPlayer() > 3)
                {
                    WaitAfterRelease.Reset();
                    while (!WaitAfterRelease.IsReady())
                    {
                        Thread.CurrentThread.Join(100);
                    }
                    Ingame.Tele(ObjectManager.CorpseLocation, 60, false);
                }
                else
                {
                    RezzTimer.Reset();
                    while (!RezzTimer.IsReady())
                    {
                        Thread.CurrentThread.Join(100);
                    }

                    while (ObjectManager.isGhost && ObjectManager.playerPtr != 0)
                    {
                        Calls.DoString("RetrieveCorpse();");
                        RezzTimer2.Reset();
                        while (!RezzTimer2.IsReady())
                        {
                            Thread.CurrentThread.Join(100);
                        }
                    }
                    GrindbotContainer.Reset();
                }
            }
        }