From WikiChip
Difference between revisions of "mirc/on events/on agent"
< mirc‎ | on events

(Created On agent event - mIRC)
 
m
Line 1: Line 1:
 
The '''ON AGENT''' can be used in order to trigger events that you want to occur when an Agent has finished speaking.
 
The '''ON AGENT''' can be used in order to trigger events that you want to occur when an Agent has finished speaking.
  
= Synopsis =
+
== Synopsis ==
 
<pre>ON <level>:AGENT:<commands></pre>
 
<pre>ON <level>:AGENT:<commands></pre>
  
= Parameters =
+
== Parameters ==
 
<span style="display: inline-block; width: 105px;">'''<level>'''</span>This is the user level of the agent trigger. More than likely, you want this set to either * or 1.
 
<span style="display: inline-block; width: 105px;">'''<level>'''</span>This is the user level of the agent trigger. More than likely, you want this set to either * or 1.
  
 
<span style="display: inline-block; width: 105px;">'''<commands>'''</span>This is the area in which you want to perform the commands to execute after an Agent has finished speaking.
 
<span style="display: inline-block; width: 105px;">'''<commands>'''</span>This is the area in which you want to perform the commands to execute after an Agent has finished speaking.
  
= Example =
+
== Example ==
 
'''After an Agent finishes speaking, have them say ''And now, I am finished!'''''
 
'''After an Agent finishes speaking, have them say ''And now, I am finished!'''''
 
<source lang="mIRC">ON *:AGENT:gtalk $agentname And now, I am finished!</source>
 
<source lang="mIRC">ON *:AGENT:gtalk $agentname And now, I am finished!</source>
Line 16: Line 16:
 
<source lang="mIRC">ON *:AGENT:gtalk $agentname My name is $agentname</source>
 
<source lang="mIRC">ON *:AGENT:gtalk $agentname My name is $agentname</source>
  
= Compatibility =
+
== Compatibility ==
 
Added: mIRC v5.9
 
Added: mIRC v5.9
  
 
Addon On: 26/04/2001
 
Addon On: 26/04/2001
  
= See Also =
+
== See Also ==
 
* [[/gload command - mIRC|/gload]]
 
* [[/gload command - mIRC|/gload]]
  

Revision as of 15:21, 23 June 2014

The ON AGENT can be used in order to trigger events that you want to occur when an Agent has finished speaking.

Synopsis

ON <level>:AGENT:<commands>

Parameters

<level>This is the user level of the agent trigger. More than likely, you want this set to either * or 1.

<commands>This is the area in which you want to perform the commands to execute after an Agent has finished speaking.

Example

After an Agent finishes speaking, have them say And now, I am finished!

ON *:AGENT:gtalk $agentname And now, I am finished!

When the Agent finishes speaking, have them say their own Agent name

ON *:AGENT:gtalk $agentname My name is $agentname

Compatibility

Added: mIRC v5.9

Addon On: 26/04/2001

See Also