Difference between revisions of "Tab:DespawnEvents"

From ISXOgre
Jump to: navigation, search
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
[[File:Ogre_Main_Menu_DespawnEvents.PNG]]
+
[[File:DespawnEventsTab.png]]
 
<br><br><br>
 
<br><br><br>
 
This tab gives a simple way to monitor for when certain NPCs despawn and then execute a single line of code when the trigger occurs.<br><br>
 
This tab gives a simple way to monitor for when certain NPCs despawn and then execute a single line of code when the trigger occurs.<br><br>
  
  
Actor to watch for: Enter the string of text that you want the bot to look for to take action on.<br>
+
Actor to watch for: Enter the name of the npc 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 NPC being monitored for despawns, enter it here.  This supports a single line of basic code. Code from the [[Tab:OgreAPI|OgreBotAPI]] can also be executed.<br>
[OC] On success - Send message to Ogre Console: When the bot detects the text you are watching for despawn, it will notify you via the Ogre Console.<br>
+
[OC] On success - Send message to Ogre Console: When the bot detects the NPC you are watching for despawns, it will notify you via the Ogre Console.<br>
[Ding] On success - 'Ding': When the bot detects that the text you are watching for despawn, it will play an audible sound to notify you of the event.<br>
+
[Ding] On success - 'Ding': When the bot detects that the NPC you are watching for despawns, it will play an audible sound to notify you of the event.<br>
  
 
<br><br><br>
 
<br><br><br>
Line 16: Line 16:
 
[Ding] On success: Checked<br>
 
[Ding] On success: Checked<br>
 
<br><br>
 
<br><br>
The bot will monitor for "an iksar child" to despawn.  If it detects that actor spawning, 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 "an iksar child" has despawned and you will hear a ding.
+
The bot will monitor for "an iksar child" to despawn.  If it detects that actor despawning, 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 "an iksar child" has despawned and you will hear a ding.

Latest revision as of 20:49, 15 January 2017

DespawnEventsTab.png


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


Actor to watch for: Enter the name of the npc 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 NPC being monitored for despawns, 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 NPC you are watching for despawns, it will notify you via the Ogre Console.
[Ding] On success - 'Ding': When the bot detects that the NPC you are watching for despawns, it will play an audible sound to notify you of the event.




Example:

Actor to watch for: an iksar child
Code to execute: OgreBotAPI:Jump[all]
[OC] On success: Checked
[Ding] On success: Checked


The bot will monitor for "an iksar child" to despawn. If it detects that actor despawning, 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 "an iksar child" has despawned and you will hear a ding.