当前位置: 首页>>代码示例>>C#>>正文


C# SpellLine类代码示例

本文整理汇总了C#中SpellLine的典型用法代码示例。如果您正苦于以下问题:C# SpellLine类的具体用法?C# SpellLine怎么用?C# SpellLine使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


SpellLine类属于命名空间,在下文中一共展示了SpellLine类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: CureMezzSpellHandler

 // constructor
 public CureMezzSpellHandler(GameLiving caster, Spell spell, SpellLine line)
     : base(caster, spell, line)
 {
     // RR4: now it's a list
     m_spellTypesToRemove = new List<string>();
     m_spellTypesToRemove.Add("Mesmerize");
 }
开发者ID:uvbs,项目名称:Dawn-of-Light-core,代码行数:8,代码来源:Curemezz.cs

示例2: MinionRescueEffect

        private GamePlayer EffectOwner;			// Owner of the effect

        public MinionRescueEffect()
            : base(RealmAbilities.MinionRescueAbility.DURATION)
        {
            // Init NPC & Timer array
            spirits = new GameNPC[spiritCount];
            spiritTimer = new RegionTimer[spiritCount];

            // Build spell
            DBSpell tSpell = new DBSpell();
            tSpell.AllowAdd = false;
            tSpell.Description = "Target is stunned and can't move or do any action during spell duration.";
            tSpell.Name = "Rescue stun";
            tSpell.Target = "Enemy";
            tSpell.Radius = 0;
            tSpell.Range = WorldMgr.VISIBILITY_DISTANCE;
            tSpell.CastTime = 0;
            tSpell.Duration = spellDuration;
            tSpell.Uninterruptible = true;
            tSpell.Type = "Stun";
            tSpell.ResurrectMana = 1;
            tSpell.ResurrectHealth = 1;
            tSpell.Damage = 0;
            tSpell.DamageType = 0;
            tSpell.Value = 0;
            tSpell.Icon = 7049;
            tSpell.ClientEffect = 7049;
            spiritSpell = new Spell(tSpell, 1);
            spiritSpellLine = new SpellLine("RAs", "RealmAbilitys", "RealmAbilitys", true);
        }
开发者ID:uvbs,项目名称:Dawn-of-Light-core,代码行数:31,代码来源:MinionRescueEffect.cs

示例3: CanChangeCastingSpeed

		/// <summary>
		/// FIXME this has nothing to do here !
		/// </summary>
		/// <param name="line"></param>
		/// <param name="spell"></param>
		/// <returns></returns>
		public override bool CanChangeCastingSpeed(SpellLine line, Spell spell)
		{
			if (spell.SpellType == "Chamber")
				return false;

			if ((line.KeyName == "Cursing"
				 || line.KeyName == "Cursing Spec"
				 || line.KeyName == "Hexing"
				 || line.KeyName == "Witchcraft")
				&& (spell.SpellType != "ArmorFactorBuff"
					&& spell.SpellType != "Bladeturn"
					&& spell.SpellType != "ArmorAbsorptionBuff"
					&& spell.SpellType != "MatterResistDebuff"
					&& spell.SpellType != "Uninterruptable"
					&& spell.SpellType != "Powerless"
					&& spell.SpellType != "Range"
					&& spell.Name != "Lesser Twisting Curse"
					&& spell.Name != "Twisting Curse"
					&& spell.Name != "Lesser Winding Curse"
					&& spell.Name != "Winding Curse"
					&& spell.Name != "Lesser Wrenching Curse"
					&& spell.Name != "Wrenching Curse"
					&& spell.Name != "Lesser Warping Curse"
					&& spell.Name != "Warping Curse"))
			{
				return false;
			}

			return true;
		}
开发者ID:dudemanvox,项目名称:Dawn-of-Light-Server,代码行数:36,代码来源:ClassWarlock.cs

示例4: SearingPetEffect

        private int currentTick = 0;		// Count ticks

        public SearingPetEffect(GamePlayer owner)
            : base(RealmAbilities.SearingPetAbility.DURATION)
        {
            EffectOwner = owner;

            // Build spell
            DBSpell tSpell = new DBSpell();
            tSpell.AllowAdd = false;
            tSpell.Description = "Damage the target.";
            tSpell.Name = "PBAoE damage";
            tSpell.Target = "Enemy";
            tSpell.Radius = 0;
            tSpell.Range = WorldMgr.VISIBILITY_DISTANCE;
            tSpell.CastTime = 0;
            tSpell.Duration = 0;
            tSpell.Frequency = 0;
            tSpell.Pulse = 0;
            tSpell.Uninterruptible = true;
            tSpell.Type = "DirectDamage";
            tSpell.Damage = spellDamage;
            tSpell.DamageType = (int)eDamageType.Heat;
            tSpell.Value = 0;
            tSpell.Icon = 476;			// not official effect
            tSpell.ClientEffect = 476;	// not official effect
            petSpell = new Spell(tSpell, 1);
            petSpellLine = new SpellLine("RAs", "RealmAbilitys", "RealmAbilitys", true);
        }
开发者ID:uvbs,项目名称:Dawn-of-Light-core,代码行数:29,代码来源:SearingPetEffect.cs

示例5: CurePoisonSpellHandler

		// constructor
		public CurePoisonSpellHandler(GameLiving caster, Spell spell, SpellLine line)
			: base(caster, spell, line)
		{
			// RR4: now it's a list
			m_spellTypesToRemove = new List<string>();
			m_spellTypesToRemove.Add("DamageOverTime");
            m_spellTypesToRemove.Add("StyleBleeding");
		} 
开发者ID:boscorillium,项目名称:dol,代码行数:9,代码来源:CurePoisonSpellHandler.cs

示例6: CureNearsightSpellHandler

 // constructor
 public CureNearsightSpellHandler(GameLiving caster, Spell spell, SpellLine line)
     : base(caster, spell, line)
 {
     // RR4: now it's a list
     m_spellTypesToRemove = new List<string>();
     m_spellTypesToRemove.Add("Nearsight");
     m_spellTypesToRemove.Add("Silence");
 }
开发者ID:uvbs,项目名称:Dawn-of-Light-core,代码行数:9,代码来源:CureNearsight.cs

示例7: OnCommand

		public void OnCommand(GameClient client, string[] args)
		{
			if (args.Length == 1)
			{
				DisplaySyntax( client );
				return;
			}

			GamePlayer player = client.Player.TargetObject as GamePlayer;

			if ( player == null )
				player = client.Player;

			ushort model;

			if ( ushort.TryParse( args[1], out model ) == false )
			{
				DisplaySyntax( client );
				return;
			}

			int duration = 10;

			if ( args.Length > 2 )
			{
				if ( int.TryParse( args[2], out duration ) == false )
					duration = 10;
			}

			DBSpell dbSpell = new DBSpell();
			dbSpell.Name = "GM Morph";
			dbSpell.Description = "Target has been shapechanged.";
			dbSpell.ClientEffect = 8000;
			dbSpell.Icon = 805;
			dbSpell.Target = "Realm";
			dbSpell.Range = 4000;
			dbSpell.Power = 0;
			dbSpell.CastTime = 0;
			dbSpell.Type = "Morph";
			dbSpell.Duration = duration * 60;
			dbSpell.LifeDrainReturn = model;

			Spell morphSpell = new Spell( dbSpell, 0 );
			SpellLine gmLine = new SpellLine( "GMSpell", "GM Spell", "none", false );

			ISpellHandler spellHandler = ScriptMgr.CreateSpellHandler( client.Player, morphSpell, gmLine );

			if ( spellHandler == null )
			{
				DisplayMessage( client, "Unable to create spell handler." );
			}
			else
			{
				spellHandler.StartSpell( player );
			}
		}
开发者ID:mynew4,项目名称:DOLSharp,代码行数:56,代码来源:morph.cs

示例8: CureAllSpellHandler

 // constructor
 public CureAllSpellHandler(GameLiving caster, Spell spell, SpellLine line)
     : base(caster, spell, line)
 {
     m_spellTypesToRemove = new List<string>();
     m_spellTypesToRemove.Add("DamageOverTime");
     m_spellTypesToRemove.Add("Nearsight");
     m_spellTypesToRemove.Add("Silence");
     m_spellTypesToRemove.Add("Disease");
     m_spellTypesToRemove.Add("StyleBleeding");
 }
开发者ID:uvbs,项目名称:Dawn-of-Light-core,代码行数:11,代码来源:CureAllSpellHandler.cs

示例9: BolsteringRoarSpellHandler

 // constructor
 public BolsteringRoarSpellHandler(GameLiving caster, Spell spell, SpellLine line)
     : base(caster, spell, line)
 {
     // RR4: now it's a list
     m_spellTypesToRemove = new List<string>();
     m_spellTypesToRemove.Add("Mesmerize");
     m_spellTypesToRemove.Add("SpeedDecrease");
     m_spellTypesToRemove.Add("StyleSpeedDecrease");
     m_spellTypesToRemove.Add("DamageSpeedDecrease");
     m_spellTypesToRemove.Add("HereticSpeedDecrease");
     m_spellTypesToRemove.Add("HereticDamageSpeedDecreaseLOP");
     m_spellTypesToRemove.Add("VampiirSpeedDecrease");
     m_spellTypesToRemove.Add("ValkyrieSpeedDecrease");
     m_spellTypesToRemove.Add("WarlockSpeedDecrease");
 }
开发者ID:uvbs,项目名称:Dawn-of-Light-core,代码行数:16,代码来源:BolsteringRoarSpellHandler.cs

示例10: BeltOfMoon

        public BeltOfMoon(GameLiving caster, Spell spell, SpellLine line)
			: base(caster, spell, line)
        {
            if (caster.CurrentRegion.IsNightTime)
            {
                if (caster.Realm == eRealm.Albion)
                {
                    m_MoonMace = GameServer.Database.SelectObject<ItemTemplate>("Id_nb='Moon_Mace'") ?? Mace;
                    items.Add(GameInventoryItem.Create<ItemTemplate>(m_MoonMace));

                    m_MoonStaff = GameServer.Database.SelectObject<ItemTemplate>("Id_nb='Moon_Staff'") ?? Staff;
                    items.Add(GameInventoryItem.Create<ItemTemplate>(m_MoonStaff));
                    return;
                }

                if (caster.Realm == eRealm.Midgard)
                {
                    m_MoonMace = GameServer.Database.SelectObject<ItemTemplate>("Id_nb='Moon_MaceM'") ?? MaceM;
                    items.Add(GameInventoryItem.Create<ItemTemplate>(m_MoonMace));

                    m_MoonStaff = GameServer.Database.SelectObject<ItemTemplate>("Id_nb='Moon_Staff'") ?? Staff;
                    items.Add(GameInventoryItem.Create<ItemTemplate>(m_MoonStaff));
                    return;
                }

                if (caster.Realm == eRealm.Hibernia)
                {
                    m_MoonMace = GameServer.Database.SelectObject<ItemTemplate>("Id_nb='Moon_MaceH'") ?? MaceH;
                    items.Add(GameInventoryItem.Create<ItemTemplate>(m_MoonMace));

                    m_MoonStaff = GameServer.Database.SelectObject<ItemTemplate>("Id_nb='Moon_Staff'") ?? Staff;
                    items.Add(GameInventoryItem.Create<ItemTemplate>(m_MoonStaff));
                    return;
                }
            }

            else
            {
                MessageToCaster("The powers of the Belt of Moon, can only be Summon under the Moon light!", eChatType.CT_SpellResisted);
                return;
            }
        }
开发者ID:andyhebear,项目名称:DOLSharp,代码行数:42,代码来源:Belt+of+Moon.cs

示例11: StaticTempestBase

 public StaticTempestBase(int stunDuration)
 {
     dbs = new DBSpell();
     dbs.Name = GetStaticName();
     dbs.Icon = GetStaticEffect();
     dbs.ClientEffect = GetStaticEffect();
     dbs.Damage = 0;
     dbs.DamageType = (int)eDamageType.Energy;
     dbs.Target = "Enemy";
     dbs.Radius = 0;
     dbs.Type = "UnresistableStun";
     dbs.Value = 0;
     dbs.Duration = stunDuration;
     dbs.Pulse = 0;
     dbs.PulsePower = 0;
     dbs.Power = 0;
     dbs.CastTime = 0;
     dbs.Range = WorldMgr.VISIBILITY_DISTANCE;
     s = new Spell(dbs, 1);
     sl = new SpellLine("RAs", "RealmAbilitys", "RealmAbilitys", true);
 }
开发者ID:uvbs,项目名称:Dawn-of-Light-core,代码行数:21,代码来源:StaticTempestBase.cs

示例12: NegativeMaelstromBase

 public NegativeMaelstromBase(int damage)
 {
     this.damage = damage;
     dbs = new DBSpell();
     dbs.Name = GetStaticName();
     dbs.Icon = GetStaticEffect();
     dbs.ClientEffect = GetStaticEffect();
     dbs.Damage = damage;
     dbs.DamageType = (int)eDamageType.Cold;
     dbs.Target = "Enemy";
     dbs.Radius = 0;
     dbs.Type = "DirectDamageNoVariance";
     dbs.Value = 0;
     dbs.Duration = 0;
     dbs.Pulse = 0;
     dbs.PulsePower = 0;
     dbs.Power = 0;
     dbs.CastTime = 0;
     dbs.Range = WorldMgr.VISIBILITY_DISTANCE;
     sl = new SpellLine("RAs", "RealmAbilitys", "RealmAbilitys", true);
 }
开发者ID:uvbs,项目名称:Dawn-of-Light-core,代码行数:21,代码来源:NegativeMaelstromBase.cs

示例13: ThornweedFieldBase

 public ThornweedFieldBase(int damage)
 {
     dbs = new DBSpell();
     dbs.Name = GetStaticName();
     dbs.Icon = GetStaticEffect();
     dbs.ClientEffect = GetStaticEffect();
     dbs.Damage = damage;
     dbs.DamageType = (int)eDamageType.Natural;
     dbs.Target = "Enemy";
     dbs.Radius = 0;
     dbs.Type = "DamageSpeedDecreaseNoVariance";
     dbs.Value = 50;
     dbs.Duration = 5;
     dbs.Pulse = 0;
     dbs.PulsePower = 0;
     dbs.Power = 0;
     dbs.CastTime = 0;
     dbs.Range = WorldMgr.VISIBILITY_DISTANCE;
     s = new Spell(dbs, 1);
     sl = new SpellLine("RAs", "RealmAbilitys", "RealmAbilitys", true);
 }
开发者ID:uvbs,项目名称:Dawn-of-Light-core,代码行数:21,代码来源:ThornweedFieldBase.cs

示例14: CreateSpell

 public virtual void CreateSpell(double damage)
 {
     m_dbspell = new DBSpell();
     m_dbspell.Name = "Anger of the Gods";
     m_dbspell.Icon = 7023;
     m_dbspell.ClientEffect = 7023;
     m_dbspell.Damage = damage;
     m_dbspell.DamageType = 0;
     m_dbspell.Target = "Group";
     m_dbspell.Radius = 0;
     m_dbspell.Type = "DamageAdd";
     m_dbspell.Value = 0;
     m_dbspell.Duration = 30;
     m_dbspell.Pulse = 0;
     m_dbspell.PulsePower = 0;
     m_dbspell.Power = 0;
     m_dbspell.CastTime = 0;
     m_dbspell.EffectGroup = 99999; // stacks with other damage adds
     m_dbspell.Range = 1000;
     m_spell = new Spell(m_dbspell, 0); // make spell level 0 so it bypasses the spec level adjustment code
     m_spellline = new SpellLine("RAs", "RealmAbilities", "RealmAbilities", true);
 }
开发者ID:uvbs,项目名称:Dawn-of-Light-core,代码行数:22,代码来源:AngerOfTheGodsAbility.cs

示例15: DazzlingArraySpellHandler

        // constructor
        public DazzlingArraySpellHandler(GameLiving caster, Spell spell, SpellLine line)
            : base(caster, spell, line)
        {
            //Construct a new storm.
            storm = new GameStorm();
            storm.Realm = caster.Realm;
            storm.X = caster.X;
            storm.Y = caster.Y;
            storm.Z = caster.Z;
            storm.CurrentRegionID = caster.CurrentRegionID;
            storm.Heading = caster.Heading;
            storm.Owner = (GamePlayer)caster;
            storm.Movable = true;

            // Construct the storm spell
            dbs = new DBSpell();
            dbs.Name = spell.Name;
            dbs.Icon = 7210;
            dbs.ClientEffect = 7210;
            dbs.Damage = spell.Damage;
            dbs.DamageType = (int)spell.DamageType;
            dbs.Target = "Realm";
            dbs.Radius = 0;
            dbs.Type = "StormMissHit";
            dbs.Value = spell.Value;
            dbs.Duration = spell.ResurrectHealth; // should be 4
            dbs.Frequency = spell.ResurrectMana;
            dbs.Pulse = 0;
            dbs.PulsePower = 0;
            dbs.LifeDrainReturn = spell.LifeDrainReturn;
            dbs.Power = 0;
            dbs.CastTime = 0;
            dbs.Range = WorldMgr.VISIBILITY_DISTANCE;
            sRadius = 350;
            s = new Spell(dbs, 1);
            sl = SkillBase.GetSpellLine(GlobalSpellsLines.Reserved_Spells);
            tempest = ScriptMgr.CreateSpellHandler(m_caster, s, sl);
        }
开发者ID:uvbs,项目名称:Dawn-of-Light-core,代码行数:39,代码来源:Stormlord.cs


注:本文中的SpellLine类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。