예제 #1
0
파일: Bot_API.cs 프로젝트: kow/Aurora-Sim
        public void botSendChatMessage(string bot, string message, int sayType)
        {
            IBotManager manager = World.RequestModuleInterface <IBotManager> ();

            if (manager != null)
            {
                manager.SendChatMessage(UUID.Parse(bot), message, sayType);
            }
        }
예제 #2
0
        public void botSendChatMessage(string bot, string message, int channel, int sayType)
        {
            if (!ScriptProtection.CheckThreatLevel(ThreatLevel.Moderate, "botSendChatMessage", m_host, "bot", m_itemID))
            {
                return;
            }
            IBotManager manager = World.RequestModuleInterface <IBotManager>();

            if (manager != null)
            {
                manager.SendChatMessage(UUID.Parse(bot), message, sayType, channel, m_host.OwnerID);
            }
        }
예제 #3
0
        public void botSendChatMessage(string bot, string message, int sayType)
        {
            IBotManager manager = World.RequestModuleInterface <IBotManager> ();

            if (manager != null)
            {
                manager.SendChatMessage(UUID.Parse(bot), message, sayType);
            }


            //        Whisper = 0,
            //Say = 1,
            //Shout = 2,
            //ObsoleteSay = 3, // 3 is an obsolete version of Say
            //StartTyping = 4,
            //StopTyping = 5,
            //DebugChannel = 6,
            //Region = 7,
            //Owner = 8,
            //Custom = 10,
            //SayTo = 11,
            //Broadcast = 0xFF
        }