Advertisement
Guest User

Inner Space eq1 log parsing w/ TTS proof of concept

a guest
May 7th, 2012
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.36 KB | None | 0 0
  1. function main()
  2. {
  3. AddTrigger EQ1_OnLoggingEnabled "[@datetime@] Logging to 'eqlog.txt' is now *ON*."
  4.  
  5.  
  6. AddTrigger EQ1_AFKOn "[@datetime@] You are now A.F.K. (Away From Keyboard)."
  7. AddTrigger EQ1_AFKOff "[@datetime@] You are no longer A.F.K. (Away From Keyboard)."
  8.  
  9. AddTrigger EQ1_AuctionMsg "[@datetime@] @ChannelFrom@ auctions,@IgnoreLanguage@ '@ChannelWhat@'"
  10. AddTrigger EQ1_ChannelMsg "[@datetime@] @ChannelFrom@ tells @chat@:@num@, '@ChannelWhat@'"
  11. AddTrigger EQ1_GroupMsg "[@datetime@] @ChannelFrom@ tells the group,@IgnoreLanguage@ '@ChannelWhat@'"
  12. AddTrigger EQ1_GuildMsg "[@trash@] @ChannelFrom@ tells the guild,@IgnoreLanguage@ '@ChannelWhat@'"
  13. AddTrigger EQ1_OOCMsg "[@trash@] @ChannelFrom@ says out of character,@IgnoreLanguage@ '@ChannelWhat@'"
  14. AddTrigger EQ1_RaidMsg "[@trash@] @ChannelFrom@ tells the raid, @extraspace@'@ChannelWhat@'"
  15. AddTrigger EQ1_SayMsg "[@trash@] @ChannelFrom@ says,@IgnoreLanguage@ '@ChannelWhat@'"
  16. AddTrigger EQ1_ShoutMsg "[@trash@] @ChannelFrom@ shouts,@IgnoreLanguage@ '@ChannelWhat@'"
  17. AddTrigger EQ1_TellMsg "[@trash@] @ChannelFrom@ @MerchantCheck@tells you,@IgnoreLanguage@ '@ChannelWhat@'"
  18. AddTrigger EQ1_TellMsg2 "[@trash@] @MerchantCheck@.@ChannelFrom@ told you, '@ChannelWhat@'"
  19.  
  20. AddTrigger EQ1_YouSay "[@trash@] You say, '@ChannelWhat@'"
  21.  
  22.  
  23. LogReader:RegisterLog["logs/eqlog_*.txt","EQ1_ChatLog"]
  24.  
  25.  
  26. LavishScript:RegisterEvent[EQ1_ChatLog]
  27. Event[EQ1_ChatLog]:AttachAtom[OnEQ1ChatLog]
  28.  
  29. while 1
  30. waitframe
  31.  
  32. }
  33.  
  34. atom EQ1_OnLoggingEnabled(string _Line, string _DateTime)
  35. {
  36. echo EQ1_OnLoggingEnabled[\"${_Line.Escape}\",\"${_DateTime.Escape}\"]"
  37. }
  38.  
  39. atom EQ1_AFKOn(string _Line, string _DateTime)
  40. {
  41. echo EQ1_AFKOn()
  42. }
  43.  
  44. atom EQ1_AFKOff(string _Line, string _DateTime)
  45. {
  46. echo EQ1_AFKOff()
  47. }
  48.  
  49. atom EQ1_SayMsg(string _Line, string _DateTime, string _ChannelFrom, string _IgnoreLanguage, string text)
  50. {
  51. echo EQ1_SayMsg
  52. if ${InnerSpace.Build}>=5607
  53. {
  54. uplink speak "${_ChannelFrom.Escape} says, ${text.Escape}"
  55. }
  56. }
  57.  
  58. atom EQ1_YouSay(string _Line, string _DateTime, string text)
  59. {
  60. echo EQ1_YouSay[\"${_Line.Escape}\",\"${_DateTime.Escape}\",\"${text.Escape}\"]
  61. if ${InnerSpace.Build}>=5607
  62. {
  63. uplink speak "You say, ${text.Escape}"
  64. }
  65. }
  66.  
  67. atom OnEQ1ChatLog(string filename, string action, string text)
  68. {
  69. echo "OnEQ1ChatLog[\"${filename.Escape}\",\"${action.Escape}\",\"${text.Escape}\"]"
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement