Thread Rating:
  • 3 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to read from / write to chat log
#3
Would be nice if there was an event handler that is called every time a message is sent through chat log.

Just to make what I am looking for clear, I added some jibberish code that doesn't exist. But you should be able to see what I am looking for.

PHP Code:
function OnChatHandlerEvent )
    
local text Event.message
    
     
-- source of text from event (linkshell/fc/say/battle/etc..)
    
local source Event.source
    
    
    
if (text)
        -- do 
some stuff
        
-- do more stuff
        
        local reply 
"" -- reply to event goes here
        
        
-- send to party chat
        Chat
:Send("/p " .. reply)
    
end
end

RegisterEventHandler
("Chat.Update"OnChatHandler

Is there something similar or along these lines that exists?
Reply
 


Messages In This Thread
How to read from / write to chat log - by 5minqq - 06-21-2014, 04:48 PM
RE: How to read from / write to chat log - by 5minqq - 06-21-2014, 08:39 PM

Forum Jump:


Users browsing this thread: 4 Guest(s)

We help you win the game.

FFXIV Bot and More.

 

Products