예제 #1
0
        private void SendMessage_Callback(object o)
        {
            object[] obj = o as object[];

            WispOrb orb  = obj[0] as WispOrb;
            Mobile  from = obj[1] as Mobile;

            if (orb != null && orb.IsChildOf(from.Backpack))
            {
                orb.LabelTo(from, 1153355); // I will follow thy guidance.
            }
        }
예제 #2
0
 public override void OnClick()
 {
     if (m_Orb.Pet != null && m_Orb.IsChildOf(m_From.Backpack) && !m_Orb.Conscripted && m_Orb.Pet.Alignment == m_Orb.Alignment)
     {
         if (m_Orb.Pet.Power < WispOrb.MinPowerToConscript)
         {
             m_From.SendLocalizedMessage(1153311); // The creature under control of your Wisp Orb cannot be conscripted at this time.
         }
         else
         {
             m_From.SendLocalizedMessage(1153310); // The creature you are controlling will now fight with you when the Call to Arms sounds. If you do not wish this, then release control of it.
             m_Orb.Conscripted = true;
         }
     }
 }