Beispiel #1
0
        public Scoundrel(World world, int snoId, TagMap tags)
            : base(world, snoId, tags)
        {
            Brain = new AI.Brains.HirelingBrain(this);

            mainSNO      = 4644;
            hirelingSNO  = 52694;
            proxySNO     = 192941;
            skillKit     = 0x8AFE;
            hirelingGBID = StringHashHelper.HashItemName("Scoundrel");
            Attributes[GameAttribute.Hireling_Class] = 2;

            try
            {
                foreach (var player in world.Players)
                {
                    Master = world.GetActorBySNO(player.Value.ActorSNO.Id);
                }
            }catch { }
            this.Attributes[GameAttribute.Attacks_Per_Second]     = 1.0f;
            this.Attributes[GameAttribute.Damage_Weapon_Min, 0]   = 5f;
            this.Attributes[GameAttribute.Damage_Weapon_Delta, 0] = 5f;
            //RandomDirection(player.Value.Position, 3f, 8f);
            //this.WalkSpeed = 0.3f * monsterData.Floats[129];  // TODO: this is probably multiplied by something erekose the 0.3 is because he is way too fast otherwise
            this.WalkSpeed = this.RunSpeed;
        }
Beispiel #2
0
        public LeahParty(World world, int snoId, TagMap tags)
            : base(world, snoId, tags)
        {
            Brain = new AI.Brains.HirelingBrain(this);


            mainSNO      = 144681;
            hirelingSNO  = 52694;
            proxySNO     = 192941;
            skillKit     = 0x8AFE;
            hirelingGBID = StringHashHelper.HashItemName("Leah_Party");
            Attributes[GameAttribute.Hireling_Class] = 2;

            try
            {
                foreach (var player in world.Players)
                {
                    Master = world.GetActorBySNO(player.Value.ActorSNO.Id);
                }
            }
            catch { }
            this.Attributes[GameAttribute.Attacks_Per_Second]     = 1.0f;
            this.Attributes[GameAttribute.Damage_Weapon_Min, 0]   = 5f;
            this.Attributes[GameAttribute.Damage_Weapon_Delta, 0] = 5f;
            this.WalkSpeed = this.RunSpeed;

            (Brain as AI.Brains.HirelingBrain).AddPresetPower(30252); //Range_instant
        }