Пример #1
0
        public bool Attack(Creature creature)
        {
            if(kernel.WorldProtocol != null)
            {
                CancelMove();
                kernel.WorldProtocol.SendAttackCreature(creature.GetId());
                kernel.Client.Memory.WriteUInt32(Addresses.Player.TargetID, creature.GetId());
                return true;
            }

            return true;
        }
Пример #2
0
 public void OnReceiveCreatureSquare(Creature creature)
 {
     if (Enable && !GlobalVariables.IsAttacking() && creature.GetSquare() == SquareColor.Black)
     {
         if (creature.IsMonster())
         {
             if (!Kernel.GetInstance().AutoLoot.IsLooting ||
                GlobalVariables.GetPlayerPosition().IsAdjacentTo(creature.GetPosition()))
             {
                 Game.GetInstance().Attack(creature);
             }
         }
     }
 }
Пример #3
0
 public Creature AddCreature(uint id)
 {
     Creature cr = new Creature(id);
     creatures.Add(id, cr);
     return cr;
 }
Пример #4
0
 public void OnReceiveCreatureSquare(Creature creature)
 {
     kernel.AutoAttack.OnReceiveCreatureSquare(creature);
 }
Пример #5
0
 public bool Equals(Creature creature)
 {
     return creature.GetId().Equals(GetId());
 }