コード例 #1
0
        public override void OnEnter(Mobile m)
        {
            base.OnEnter(m);

            if (m.Player && Prisoner != null && m_Gate != null && m_Gate.Locked)
            {
                int number;

                switch (Utility.Random(10))
                {
                default:
                case 0: number = 502264; break;       // Help a poor prisoner!

                case 1: number = 502266; break;       // Aaah! Help me!

                case 2: number = 1046000; break;      // Help! These savages wish to end my life!

                case 3: number = 1046003; break;      // Quickly! Kill them for me! HELP!!

                case 4: number = 502261;  break;      // HELP!

                case 5: number = 502262; break;       // Help me!

                case 6: number = 502263; break;       // Canst thou aid me?!

                case 7: number = 502265; break;       // Help! Please!

                case 8: number = 502267; break;       // Go and get some help!

                case 9: number = 502268; break;       // Quickly, I beg thee! Unlock my chains! If thou dost look at me close thou canst see them.
                }

                Prisoner.Yell(number);
            }
        }
コード例 #2
0
            // Don't refresh decay timer
            public override void OnEnter(Mobile m)
            {
                if (m.Player && Prisoner != null && Prisoner.CantWalk)
                {
                    string number;

                    switch (Utility.Random(8))
                    {
                    case 0: number = "HELP!"; break;                                                                                       // HELP!

                    case 1: number = "Help me!"; break;                                                                                    // Help me!

                    case 2: number = "Canst thou aid me?!"; break;                                                                         // Canst thou aid me?!

                    case 3: number = "Help a poor prisoner!"; break;                                                                       // Help a poor prisoner!

                    case 4: number = "Help! Please!"; break;                                                                               // Help! Please!

                    case 5: number = "Aaah! Help me!"; break;                                                                              // Aaah! Help me!

                    case 6: number = "Go and get some help!"; break;                                                                       // Go and get some help!

                    default: number = "Quickly, I beg thee! Unlock my chains! If thou dost look at me close thou canst see them.	"; break;     // Quickly, I beg thee! Unlock my chains! If thou dost look at me close thou canst see them.
                    }

                    Prisoner.Yell(true, number);
                }
            }