Пример #1
0
 public ActiveCombo(ComboDefense c)
 {
     Combo = c;
     PositionInSequence = 0;
 }
Пример #2
0
        //
        // carry out the combo defenses
        //
        // If you add a new combo, you must add the code here to define what it actually does when it is activated
        //
        public void DoComboDefense(Mobile attacker, Mobile defender, BaseWeapon weapon, int damageGiven, ComboDefense combo)
        {
            if (attacker == null || defender == null || weapon == null || combo == null)
            {
                return;
            }

            defender.SendMessage("You unleash the combo defense {0}!", combo.Name);

            // apply the combo defense
            switch (combo.DefenseID)
            {
            case ComboDefenses.ColdWind:
            {
                // 5 sec paralyze
                attacker.FixedEffect(0x376A, 9, 32);
                attacker.PlaySound(0x204);
                attacker.Freeze(TimeSpan.FromSeconds(5));
                // 7x stam drain
                attacker.Stam -= weapon.MaxDamage * 7;
                break;
            }
            }
        }
Пример #3
0
 public ActiveCombo(ComboDefense c)
 {
     Combo = c;
     PositionInSequence  = 0;
 }
Пример #4
0
		//
        // carry out the combo defenses
        //
        // If you add a new combo, you must add the code here to define what it actually does when it is activated
        //
        public void DoComboDefense(Mobile attacker, Mobile defender, BaseWeapon weapon, int damageGiven, ComboDefense combo)
		{
		    if(attacker == null || defender == null || weapon == null || combo == null) return;

		    defender.SendMessage("You unleash the combo defense {0}!",combo.Name);

		    // apply the combo defense
            switch(combo.DefenseID)
            {
                case ComboDefenses.ColdWind:
                {
                    // 5 sec paralyze
                    attacker.FixedEffect( 0x376A, 9, 32 );
			        attacker.PlaySound( 0x204 );
                    attacker.Freeze( TimeSpan.FromSeconds(5) );
                    // 7x stam drain
                    attacker.Stam -= weapon.MaxDamage*7;
                    break;
                }
            }
		}
Пример #5
0
 public ActiveCombo(ComboDefense c)
 {
     this.Combo = c;
     this.PositionInSequence = 0;
 }
Пример #6
0
 public ActiveCombo(ComboDefense c)
 {
     this.Combo = c;
     this.PositionInSequence = 0;
 }