Exemple #1
0
        public void llOwnerSay(string msg)
        {
            if (!ScriptProtection.CheckThreatLevel(ThreatLevel.None, "LSL", m_host, "LSL", m_itemID))
            {
                return;
            }

            IChatModule chatModule = World.RequestModuleInterface <IChatModule>();

            if (chatModule != null)
            {
                chatModule.SimChatBroadcast(msg, ChatTypeEnum.Owner, 0,
                                            m_host.AbsolutePosition, m_host.Name, m_host.UUID, false, UUID.Zero, World);
            }
        }
Exemple #2
0
        public void aaSayTo(string userID, string text)
        {
            ScriptProtection.CheckThreatLevel(ThreatLevel.Low, "AASayTo", m_host, "AA");


            UUID AgentID;

            if (UUID.TryParse(userID, out AgentID))
            {
                IChatModule chatModule = World.RequestModuleInterface <IChatModule>();
                if (chatModule != null)
                {
                    chatModule.SimChatBroadcast(text, ChatTypeEnum.SayTo, 0,
                                                m_host.AbsolutePosition, m_host.Name, m_host.UUID, false, AgentID, World);
                }
            }
        }