コード例 #1
0
        public static void AwardTo(PlayerMobile pm)
        {
            if (pm == null)
            {
                return;
            }

            MLQuestContext context = MLQuestSystem.GetOrCreateContext(pm);

            if (!context.Spellweaving)
            {
                context.Spellweaving = true;

                Effects.SendLocationParticles(EffectItem.Create(pm.Location, pm.Map, EffectItem.DefaultDuration), 0, 0, 0, 0,
                                              0, 5060, 0);
                Effects.PlaySound(pm.Location, pm.Map, 0x243);

                Effects.SendMovingParticles(new Entity(Serial.Zero, new Point3D(pm.X - 6, pm.Y - 6, pm.Z + 15), pm.Map), pm,
                                            0x36D4, 7, 0, false, true, 0x497, 0, 9502, 1, 0, (EffectLayer)255, 0x100);
                Effects.SendMovingParticles(new Entity(Serial.Zero, new Point3D(pm.X - 4, pm.Y - 6, pm.Z + 15), pm.Map), pm,
                                            0x36D4, 7, 0, false, true, 0x497, 0, 9502, 1, 0, (EffectLayer)255, 0x100);
                Effects.SendMovingParticles(new Entity(Serial.Zero, new Point3D(pm.X - 6, pm.Y - 4, pm.Z + 15), pm.Map), pm,
                                            0x36D4, 7, 0, false, true, 0x497, 0, 9502, 1, 0, (EffectLayer)255, 0x100);

                Effects.SendTargetParticles(pm, 0x375A, 35, 90, 0x00, 0x00, 9502, (EffectLayer)255, 0x100);
            }
        }
コード例 #2
0
 public static void AwardTo(PlayerMobile pm)
 {
     MLQuestSystem.GetOrCreateContext(pm).SetDoneQuest(MLQuestSystem.FindQuest(typeof(HumanInNeed)));
     pm.SendLocalizedMessage(
         1074949,
         "",
         0x2A
         ); // You have demonstrated your compassion!  Your kind actions have been noted.
 }