Exemplo n.º 1
0
            protected override void OnTick()
            {
                if (m_Mob != null)
                {
                    Mobile m  = (Mobile)m_Mob;
                    Mobile m2 = (Mobile)m_Mob2;
                    m_Mob.Say("Dont worry my love, My friends can take care of them.");
                    int x1 = m.X + Utility.RandomMinMax(3, 6);
                    int y1 = m.Y - Utility.RandomMinMax(3, 6);
                    int x2 = m.X - Utility.RandomMinMax(3, 6);
                    int y2 = m.Y + Utility.RandomMinMax(3, 6);

                    YoungThug yt1 = new YoungThug();
                    yt1.X         = x1;
                    yt1.Y         = y1;
                    yt1.Z         = m.Z;
                    yt1.Map       = m.Map;
                    yt1.Combatant = m2;
                    World.AddMobile(yt1);

                    YoungThug yt2 = new YoungThug();
                    yt2.X         = x2;
                    yt2.Y         = y2;
                    yt2.Z         = m.Z;
                    yt2.Map       = m.Map;
                    yt2.Combatant = m2;
                    World.AddMobile(yt2);

                    m.PlaySound(510);
                }

                Stop();
            }
Exemplo n.º 2
0
            protected override void OnTick()
            {
                if (m_Mob != null)
                {
                    Mobile m  = (Mobile)m_Mob;
                    Mobile m2 = (Mobile)m_Mob2;
                    m_Mob.Say("不要打攪我的愛人,我的朋友們會照顧她的.");
                    int x1 = m.X + Utility.RandomMinMax(3, 6);
                    int y1 = m.Y - Utility.RandomMinMax(3, 6);
                    int x2 = m.X - Utility.RandomMinMax(3, 6);
                    int y2 = m.Y + Utility.RandomMinMax(3, 6);

                    YoungThug yt1 = new YoungThug();
                    yt1.X         = x1;
                    yt1.Y         = y1;
                    yt1.Z         = m.Z;
                    yt1.Map       = m.Map;
                    yt1.Combatant = m2;
                    World.AddMobile(yt1);

                    YoungThug yt2 = new YoungThug();
                    yt2.X         = x2;
                    yt2.Y         = y2;
                    yt2.Z         = m.Z;
                    yt2.Map       = m.Map;
                    yt2.Combatant = m2;
                    World.AddMobile(yt2);

                    m.PlaySound(510);
                }

                Stop();
            }