Exemplo n.º 1
0
 public Mob(int objectId, NpcMetadata metadata) : base(objectId, metadata)
 {
     Animation = AnimationStorage.GetSequenceIdBySequenceName(metadata.Model, "Idle_A");
     AI        = MobAIManager.GetAI(metadata.AiInfo);
     Stats     = new(metadata);
     State     = NpcState.Normal;
 }
Exemplo n.º 2
0
        public Mob(int id)
        {
            NpcMetadata mob = NpcMetadataStorage.GetNpcMetadata(id);

            if (mob != null)
            {
                Id           = mob.Id;
                Model        = mob.Model;
                Animation    = AnimationStorage.GetSequenceIdBySequenceName(Model, "Idle_A");
                StateActions = mob.StateActions;
                MoveRange    = mob.MoveRange;
                Stats        = mob.Stats;
                Experience   = mob.Experience;
                Friendly     = mob.Friendly;
                AI           = MobAIManager.GetAI(mob.AiInfo);
                State        = NpcState.Normal;
            }
        }