Difference between revisions of "Tab:ChatEvents"

From ISXOgre
Jump to: navigation, search
 
Line 5: Line 5:
  
 
Text to watch for: Enter the string of text that you want the bot to look for to take action on.<br>
 
Text to watch for: Enter the string of text that you want the bot to look for to take action on.<br>
Code to execute: If you desire to have the bot take an action when the text being monitored for happens, enter it here.  This supports a single line of basic code. Code from the [[Tab:OgreAPI|OgreBotAPI]] can also be executed.<br>
+
Code to execute: If you desire to have the bot take an action when the text being monitored for happens, enter it here.  This supports a single line of basic code. Code from the [[OgreBotAPI|OgreBotAPI]] can also be executed.<br>
 
[OC] On success - Send message to Ogre Console: When the bot detects the text you are watching for, it will notify you via the Ogre Console.<br>
 
[OC] On success - Send message to Ogre Console: When the bot detects the text you are watching for, it will notify you via the Ogre Console.<br>
 
[Ding] On success - 'Ding': When the bot detects that the text you are watching for, it will play an audible sound to notify you of the event.<br>
 
[Ding] On success - 'Ding': When the bot detects that the text you are watching for, it will play an audible sound to notify you of the event.<br>

Latest revision as of 18:16, 11 April 2020

ChatEventsTab.png


This tab gives a simple way to monitor text for certain phrases and then execute a single line of code when the trigger occurs.


Text to watch for: Enter the string of text that you want the bot to look for to take action on.
Code to execute: If you desire to have the bot take an action when the text being monitored for happens, enter it here. This supports a single line of basic code. Code from the OgreBotAPI can also be executed.
[OC] On success - Send message to Ogre Console: When the bot detects the text you are watching for, it will notify you via the Ogre Console.
[Ding] On success - 'Ding': When the bot detects that the text you are watching for, it will play an audible sound to notify you of the event.




Example:

Text to watch for: Hail, Kannkor
Code to execute: OgreBotAPI:Jump[all]
[OC] On success: Checked
[Ding] On success: Checked


The bot will monitor chat for "Hail, Kannkor". If it detects that string of text, the OgreBotAPI:Jump[all] will execute, causing your entire group to jump in the air. You will receive a message in Ogre Console informing you that "Hail, Kannkor" was found in chat and you will hear a ding.