コード例 #1
0
        public ESound(Mobile pm, int SoundMade)
        {
            switch (SoundMade)
            {
            case 1:
                pm.PlaySound(pm.Female ? 778 : 1049);
                pm.Say("*ah!*");
                break;

            case 2:
                pm.PlaySound(pm.Female ? 779 : 1050);
                pm.Say("*ah ha!*");
                break;

            case 3:
                pm.PlaySound(pm.Female ? 780 : 1051);
                pm.Say("*applauds*");
                break;

            case 4:
                pm.PlaySound(pm.Female ? 781 : 1052);
                pm.Say("*blows nose*");
                if (!pm.Mounted)
                {
                    pm.Animate(34, 5, 1, true, false, 0);
                }
                break;

            case 5:
                pm.Say("*bows*");
                if (!pm.Mounted)
                {
                    pm.Animate(32, 5, 1, true, false, 0);
                }
                break;

            case 6:
                pm.PlaySound(pm.Female ? 786 : 1057);
                pm.Say("*bs cough*");
                break;

            case 7:
                pm.PlaySound(pm.Female ? 782 : 1053);
                pm.Say("*burp!*");
                if (!pm.Mounted)
                {
                    pm.Animate(33, 5, 1, true, false, 0);
                }
                break;

            case 8:
                pm.PlaySound(pm.Female ? 748 : 1055);
                pm.Say("*clears throat*");
                if (!pm.Mounted)
                {
                    pm.Animate(33, 5, 1, true, false, 0);
                }
                break;

            case 9:
                pm.PlaySound(pm.Female ? 785 : 1056);
                pm.Say("*cough!*");
                if (!pm.Mounted)
                {
                    pm.Animate(33, 5, 1, true, false, 0);
                }
                break;

            case 10:
                pm.PlaySound(pm.Female ? 787 : 1058);
                pm.Say("*cries*");
                break;

            case 11:
                pm.PlaySound(pm.Female ? 791 : 1063);
                pm.Say("*faints*");
                if (!pm.Mounted)
                {
                    pm.Animate(22, 5, 1, true, false, 0);
                }
                break;

            case 12:
                pm.PlaySound(pm.Female ? 792 : 1064);
                pm.Say("*farts*");
                break;

            case 13:
                pm.PlaySound(pm.Female ? 793 : 1065);
                pm.Say("*gasp!*");
                break;

            case 14:
                pm.PlaySound(pm.Female ? 794 : 1066);
                pm.Say("*giggles*");
                break;

            case 15:
                pm.PlaySound(pm.Female ? 795 : 1067);
                pm.Say("*groans*");
                break;

            case 16:
                pm.PlaySound(pm.Female ? 796 : 1068);
                pm.Say("*growls*");
                break;

            case 17:
                pm.PlaySound(pm.Female ? 797 : 1069);
                pm.Say("*hey!*");
                break;

            case 18:
                pm.PlaySound(pm.Female ? 798 : 1070);
                pm.Say("*hiccup!*");
                break;

            case 19:
                pm.PlaySound(pm.Female ? 799 : 1071);
                pm.Say("*huh?*");
                break;

            case 20:
                pm.PlaySound(pm.Female ? 800 : 1072);
                pm.Say("*kisses*");
                break;

            case 21:
                pm.PlaySound(pm.Female ? 801 : 1073);
                pm.Say("*laughs*");
                break;

            case 22:
                pm.PlaySound(pm.Female ? 802 : 1074);
                pm.Say("*no!*");
                break;

            case 23:
                pm.PlaySound(pm.Female ? 803 : 1075);
                pm.Say("*oh!*");
                break;

            case 24:
                pm.PlaySound(pm.Female ? 811 : 1085);
                pm.Say("*oooh*");
                break;

            case 25:
                pm.PlaySound(pm.Female ? 812 : 1086);
                pm.Say("*oops*");
                break;

            case 26:
                pm.PlaySound(pm.Female ? 813 : 1087);
                pm.Say("*pukes*");
                if (!pm.Mounted)
                {
                    pm.Animate(32, 5, 1, true, false, 0);
                }
                Point3D p = new Point3D(pm.Location);
                switch (pm.Direction)
                {
                case Direction.North:
                    p.Y--; break;

                case Direction.South:
                    p.Y++; break;

                case Direction.East:
                    p.X++; break;

                case Direction.West:
                    p.X--; break;

                case Direction.Right:
                    p.X++; p.Y--; break;

                case Direction.Down:
                    p.X++; p.Y++; break;

                case Direction.Left:
                    p.X--; p.Y++; break;

                case Direction.Up:
                    p.X--; p.Y--; break;

                default:
                    break;
                }
                p.Z = pm.Map.GetAverageZ(p.X, p.Y);

                bool canFit = Server.Spells.SpellHelper.AdjustField(ref p, pm.Map, 12, false);

                if (canFit)
                {
                    Puke puke = new Puke();
                    puke.Map      = pm.Map;
                    puke.Location = p;
                }

                /*else
                 *  pm.SendMessage( "your puke won't fit!" ); /* Debug testing */
                break;

            case 27:
                pm.PlaySound(315);
                pm.Say("*punches*");
                if (!pm.Mounted)
                {
                    pm.Animate(31, 5, 1, true, false, 0);
                }
                break;

            case 28:
                pm.PlaySound(pm.Female ? 814 : 1088);
                pm.Say("*ahhhh!*");
                break;

            case 29:
                pm.PlaySound(pm.Female ? 815 : 1089);
                pm.Say("*shhh!*");
                break;

            case 30:
                pm.PlaySound(pm.Female ? 816 : 1090);
                pm.Say("*sigh*");
                break;

            case 31:
                pm.PlaySound(948);
                pm.Say("*slaps*");
                if (!pm.Mounted)
                {
                    pm.Animate(11, 5, 1, true, false, 0);
                }
                break;

            case 32:
                pm.PlaySound(pm.Female ? 817 : 1091);
                pm.Say("*ahh-choo!*");
                if (!pm.Mounted)
                {
                    pm.Animate(32, 5, 1, true, false, 0);
                }
                break;

            case 33:
                pm.PlaySound(pm.Female ? 818 : 1092);
                pm.Say("*sniff*");
                if (!pm.Mounted)
                {
                    pm.Animate(34, 5, 1, true, false, 0);
                }
                break;

            case 34:
                pm.PlaySound(pm.Female ? 819 : 1093);
                pm.Say("*snore*");
                break;

            case 35:
                pm.PlaySound(pm.Female ? 820 : 1094);
                pm.Say("*spits*");
                if (!pm.Mounted)
                {
                    pm.Animate(6, 5, 1, true, false, 0);
                }
                break;

            case 36:
                pm.PlaySound(792);
                pm.Say("*sticks out tongue*");
                break;

            case 37:
                pm.PlaySound(874);
                pm.Say("*taps foot*");
                if (!pm.Mounted)
                {
                    pm.Animate(38, 5, 1, true, false, 0);
                }
                break;

            case 38:
                pm.PlaySound(pm.Female ? 821 : 1095);
                pm.Say("*whistles*");
                if (!pm.Mounted)
                {
                    pm.Animate(5, 5, 1, true, false, 0);
                }
                break;

            case 39:
                pm.PlaySound(pm.Female ? 783 : 1054);
                pm.Say("*woohoo!*");
                break;

            case 40:
                pm.PlaySound(pm.Female ? 822 : 1096);
                pm.Say("*yawns*");
                if (!pm.Mounted)
                {
                    pm.Animate(17, 5, 1, true, false, 0);
                }
                break;

            case 41:
                pm.PlaySound(pm.Female ? 823 : 1097);
                pm.Say("*yea!*");
                break;

            case 42:
                pm.PlaySound(pm.Female ? 823 : 1098);
                pm.Say("*yells*");
                break;
            }
        }
コード例 #2
0
ファイル: Emote.cs プロジェクト: tbewley10310/Land-of-Archon
        public ESound(Mobile pm, int SoundMade)
        {
            switch (SoundMade)
            {
            case 1:
                pm.PlaySound(pm.Female ? 778 : 1049);
                pm.Say("*ah!*");
                break;

            case 2:
                pm.PlaySound(pm.Female ? 779 : 1050);
                pm.Say("*ah ha!*");
                break;

            case 3:
                pm.PlaySound(pm.Female ? 780 : 1051);
                pm.Say("*applauds*");
                break;

            case 4:
                pm.PlaySound(pm.Female ? 781 : 1052);
                pm.Say("*blows nose*");
                if (!pm.Mounted)
                {
                    pm.Animate(34, 5, 1, true, false, 0);
                }
                break;

            case 5:
                pm.Say("*bows*");
                if (!pm.Mounted)
                {
                    pm.Animate(32, 5, 1, true, false, 0);
                }
                break;

            case 6:
                pm.PlaySound(pm.Female ? 786 : 1057);
                pm.Say("*bs cough*");
                break;

            case 7:
                pm.PlaySound(pm.Female ? 782 : 1053);
                pm.Say("*burp!*");
                if (!pm.Mounted)
                {
                    pm.Animate(33, 5, 1, true, false, 0);
                }
                break;

            case 8:
                pm.PlaySound(pm.Female ? 748 : 1055);
                pm.Say("*clears throat*");
                if (!pm.Mounted)
                {
                    pm.Animate(33, 5, 1, true, false, 0);
                }
                break;

            case 9:
                pm.PlaySound(pm.Female ? 785 : 1056);
                pm.Say("*cough!*");
                if (!pm.Mounted)
                {
                    pm.Animate(33, 5, 1, true, false, 0);
                }
                break;

            case 10:
                pm.PlaySound(pm.Female ? 787 : 1058);
                pm.Say("*cries*");
                break;

            case 11:
                pm.PlaySound(pm.Female ? 791 : 1063);
                pm.Say("*faints*");
                if (!pm.Mounted)
                {
                    pm.Animate(22, 5, 1, true, false, 0);
                }
                break;

            case 12:
                pm.PlaySound(pm.Female ? 792 : 1064);
                pm.Say("*farts*");
                break;

            case 13:
                pm.PlaySound(pm.Female ? 793 : 1065);
                pm.Say("*gasp!*");
                break;

            case 14:
                pm.PlaySound(pm.Female ? 794 : 1066);
                pm.Say("*giggles*");
                break;

            case 15:
                pm.PlaySound(pm.Female ? 795 : 1067);
                pm.Say("*groans*");
                break;

            case 16:
                pm.PlaySound(pm.Female ? 796 : 1068);
                pm.Say("*growls*");
                break;

            case 17:
                pm.PlaySound(pm.Female ? 797 : 1069);
                pm.Say("*hey!*");
                break;

            case 18:
                pm.PlaySound(pm.Female ? 798 : 1070);
                pm.Say("*hiccup!*");
                break;

            case 19:
                pm.PlaySound(pm.Female ? 799 : 1071);
                pm.Say("*huh?*");
                break;

            case 20:
                pm.PlaySound(pm.Female ? 800 : 1072);
                pm.Say("*kisses*");
                break;

            case 21:
                pm.PlaySound(pm.Female ? 801 : 1073);
                pm.Say("*laughs*");
                break;

            case 22:
                pm.PlaySound(pm.Female ? 802 : 1074);
                pm.Say("*no!*");
                break;

            case 23:
                pm.PlaySound(pm.Female ? 803 : 1075);
                pm.Say("*oh!*");
                break;

            case 24:
                pm.PlaySound(pm.Female ? 811 : 1085);
                pm.Say("*oooh*");
                break;

            case 25:
                pm.PlaySound(pm.Female ? 812 : 1086);
                pm.Say("*oops*");
                break;

            case 26:
                pm.PlaySound(pm.Female ? 813 : 1087);
                pm.Say("*pukes*");
                if (!pm.Mounted)
                {
                    pm.Animate(32, 5, 1, true, false, 0);
                }
                Puke puke = new Puke();
                puke.Map      = pm.Map;
                puke.Location = pm.Location;
                break;

            case 27:
                pm.PlaySound(315);
                pm.Say("*punches*");
                if (!pm.Mounted)
                {
                    pm.Animate(31, 5, 1, true, false, 0);
                }
                break;

            case 28:
                pm.PlaySound(pm.Female ? 814 : 1088);
                pm.Say("*ahhhh!*");
                break;

            case 29:
                pm.PlaySound(pm.Female ? 815 : 1089);
                pm.Say("*shhh!*");
                break;

            case 30:
                pm.PlaySound(pm.Female ? 816 : 1090);
                pm.Say("*sigh*");
                break;

            case 31:
                pm.PlaySound(948);
                pm.Say("*slaps*");
                if (!pm.Mounted)
                {
                    pm.Animate(11, 5, 1, true, false, 0);
                }
                break;

            case 32:
                pm.PlaySound(pm.Female ? 817 : 1091);
                pm.Say("*ahh-choo!*");
                if (!pm.Mounted)
                {
                    pm.Animate(32, 5, 1, true, false, 0);
                }
                break;

            case 33:
                pm.PlaySound(pm.Female ? 818 : 1092);
                pm.Say("*sniff*");
                if (!pm.Mounted)
                {
                    pm.Animate(34, 5, 1, true, false, 0);
                }
                break;

            case 34:
                pm.PlaySound(pm.Female ? 819 : 1093);
                pm.Say("*snore*");
                break;

            case 35:
                pm.PlaySound(pm.Female ? 820 : 1094);
                pm.Say("*spits*");
                if (!pm.Mounted)
                {
                    pm.Animate(6, 5, 1, true, false, 0);
                }
                break;

            case 36:
                pm.PlaySound(792);
                pm.Say("*sticks out tongue*");
                break;

            case 37:
                pm.PlaySound(874);
                pm.Say("*taps foot*");
                if (!pm.Mounted)
                {
                    pm.Animate(38, 5, 1, true, false, 0);
                }
                break;

            case 38:
                pm.PlaySound(pm.Female ? 821 : 1095);
                pm.Say("*wistles*");
                if (!pm.Mounted)
                {
                    pm.Animate(5, 5, 1, true, false, 0);
                }
                break;

            case 39:
                pm.PlaySound(pm.Female ? 783 : 1054);
                pm.Say("*woohoo!*");
                break;

            case 40:
                pm.PlaySound(pm.Female ? 822 : 1096);
                pm.Say("*yawns*");
                if (!pm.Mounted)
                {
                    pm.Animate(17, 5, 1, true, false, 0);
                }
                break;

            case 41:
                pm.PlaySound(pm.Female ? 823 : 1097);
                pm.Say("*yea!*");
                break;

            case 42:
                pm.PlaySound(pm.Female ? 823 : 1098);
                pm.Say("*yells*");
                break;
            }
        }