예제 #1
0
        public override void Run()
        {
            if (AssistContainer.AfterFight)
            {
                diff.Reset();
                bool1 = false;
                Ingame.PetFollow();
                AssistContainer.AfterFight = false;
            }

            if (AssistContainer.leader.baseAdd != 0)
            {
                tmp = AssistContainer.leader.Pos.differenceToPlayer();
                if (tmp < 3)
                {
                    clientConnect.requestResume();
                    Calls.StopRunning();
                    diff.Reset();
                    bool1 = false;
                }
                else
                {
                    if (ObjectManager.leader.movementState == 0x80000000)
                    {
                        if (!bool1)
                        {
                            diff.Reset();
                            bool1 = true;
                        }
                        else
                        {
                            if (diff.IsReady())
                            {
                                AssistContainer.forceTele = true;
                            }
                        }
                    }
                    else
                    {
                        diff.Reset();
                    }
                    Ingame.moveForward();
                }
                if (!Calls.IsFacing(AssistContainer.leader.Pos))
                {
                    Calls.TurnCharacter(AssistContainer.leader.Pos);
                }
            }
        }