Difference between revisions of "MQ2GMCheck" - MMOBugs Wiki

(Option summary edit)
(Updated to new command syntax)
 
(6 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
| author = [[user:htw|htw]]
 
| author = [[user:htw|htw]]
 
| link = [http://www.mmobugs.com/wiki/index.php/MQ2GMCheck Wiki Link]
 
| link = [http://www.mmobugs.com/wiki/index.php/MQ2GMCheck Wiki Link]
| commands=/gmstatus /gmcheck /gmquiet /gmsound /gmbeep /gmpopup /gmsave /gmrem /gmhelp
+
| commands=/gmcheck
 
| source = No
 
| source = No
 
| usesini = Yes
 
| usesini = Yes
Line 15: Line 15:
  
 
==Commands==
 
==Commands==
* <span class="highlight2">/gmstatus</span> Displays plugin status and options.
+
* <span class="highlight2">/gmcheck status</span> Displays plugin status and options.
* <span class="highlight2">/gmcheck  <on/off></span> Toggles gm checking on/off.
+
* <span class="highlight2">/gmcheck  [off|on]</span> Toggles gm checking on/off, or force on/off.
* <span class="highlight2">/gmquiet <on/off></span> Toggles gm alert sounds on/off (resets at next zone).
+
* <span class="highlight2">/gmcheck quiet [off|on]</span> Toggles all gm alert and reminder sounds, or force on/off (resets at next zone).
* <span class="highlight2">/gmsound <on/off></span> Toggles playing the sound files for alerts.
+
* <span class="highlight2">/gmcheck sound [off|on]</span> Toggles playing the sound files for alerts, or force on/off.
* <span class="highlight2">/gmbeep <on/off></span> Toggles making beeping sounds for alerts.
+
* <span class="highlight2">/gmcheck beep [off|on]</span> Toggles making beeping sounds for alerts, or force on/off.
* <span class="highlight2">/gmpopup <on/off></span>  Toggles showing a popup msg for alerts.
+
* <span class="highlight2">/gmcheck popup [off|on]</span>  Toggles showing a popup msg for alerts, or force on/off.
* <span class="highlight2">/gmsave</span> Saves current options to MQ2GMCheck.ini
+
* <span class="highlight2">/gmcheck chat [off|on]</span>  Toggles showing gm alerts in the mq2 chat window, or force on/off.
* <span class="highlight2">/gmrem ##</span> Sets the reminder interval
+
* <span class="highlight2">/gmcheck corpse [off|on]</span> Toggles filtering of alerts for GM corpses, or force on/off.
* <span class="highlight2">/gmhelp</span> Shows command syntax and help.
+
* <span class="highlight2">/gmcheck rem ##</span> Change alert reminder interval, in seconds (0 to disable).
* <span class="highlight2">/gmcorpse</span> Toggles filtering of alerts for GM corpses.
+
* <span class="highlight2">/gmcheck save</span> Saves current options to MQ2GMCheck.ini
 +
* <span class="highlight2">/gmcheck load</span> Load settings from MQ2GMCheck.ini
 +
* <span class="highlight2">/gmcheck test [enter|leave|remind]</span> Tests alerts & sounds for the indicated type.
 +
* <span class="highlight2">/gmcheck ss [enter|leave|remind] SoundFileName</span> Set the filename (wav/mp3) to play for indicated alert.  Full path if sound file is not in your MQ2 dir.
 +
* <span class="highlight2">/gmcheck help</span> Shows command syntax and help.
  
 
==Example Usage==
 
==Example Usage==
Line 31: Line 35:
  
  
This command will turn on alert sounds (Resets upon zoning).
+
This command will turn stop all alert sounds (Resets upon zoning).
* <span class="highlight2">/gmquiet on</span>
+
* <span class="highlight2">/gmcheck quiet on</span>
  
  
 
This command will turn on the use of sound files for alerts.
 
This command will turn on the use of sound files for alerts.
* <span class="highlight2">/gmsound on</span>
+
* <span class="highlight2">/gmcheck sound on</span>
  
  
 
This command will turn on the use of beeps for alerts.
 
This command will turn on the use of beeps for alerts.
* <span class="highlight2">/gmbeep on</span>
+
* <span class="highlight2">/gmcheck beep on</span>
  
  
 
This command will turn allow the use of popups for alerts.
 
This command will turn allow the use of popups for alerts.
* <span class="highlight2">/gmpopup on</span>
+
* <span class="highlight2">/gmcheck popup on</span>
  
  
 
This command will set the reminder interval to 60 seconds.
 
This command will set the reminder interval to 60 seconds.
* <span class="highlight2">/gmrem 60</span>
+
* <span class="highlight2">/gmcheck rem 60</span>
  
  
 
This command will disable the reminder alert.
 
This command will disable the reminder alert.
* <span class="highlight2">/gmrem 0</span>
+
* <span class="highlight2">/gmcheck rem 0</span>
  
  
 
This command will save the current configuration to MQ2GMCheck.ini file.
 
This command will save the current configuration to MQ2GMCheck.ini file.
* <span class="highlight2">/gmsave</span>
+
* <span class="highlight2">/gmcheck save</span>
  
 
==Macro Data==
 
==Macro Data==
Line 63: Line 67:
  
 
===ExampleType===
 
===ExampleType===
 +
* <span class="highlight2">${GMCheck} : string</span> - Return TRUE if GM in zone.
 +
* <span class="highlight2">${GMCheck.Status} : bool</span> - Return TRUE if GM checking is active.
 
* <span class="highlight2">${GMCheck.GM} : bool</span> - Return TRUE if GM in zone.  
 
* <span class="highlight2">${GMCheck.GM} : bool</span> - Return TRUE if GM in zone.  
* <span class="highlight2">${GMCheck.Status} : bool</span> - Return TRUE if GM checking is active.
+
* <span class="highlight2">${GMCheck.Names} : string</span> - Return string with comma delimited list of names of the GMs in zone.
 +
* <span class="highlight2">${GMCheck.Sound} : bool</span> - Return TRUE if GMSound is on.
 +
* <span class="highlight2">${GMCheck.Beep} : bool</span> - Return TRUE if GMBeep is on.
 +
* <span class="highlight2">${GMCheck.Popup} : bool</span> - Return TRUE if GMPopup is on.
 +
* <span class="highlight2">${GMCheck.Corpse} : bool</span> - Return TRUE if GMCorpse is on.
 +
* <span class="highlight2">${GMCheck.Quiet} : bool</span> - Return TRUE if GMQuiet is on.
 +
* <span class="highlight2">${GMCheck.Interval} : int</span> - Return number of seconds for reminder interval.
 +
* <span class="highlight2">${GMCheck.Enter} : string</span> - Return GM enter sound filename.
 +
* <span class="highlight2">${GMCheck.Leave} : string</span> - Return GM leave sound filename.
 +
* <span class="highlight2">${GMCheck.Remind} : string</span> - Return GM reminder sound filename.
 +
* <span class="highlight2">${GMCheck.LastGMName} : string</span> - Return name of last GM alerted for.
 +
* <span class="highlight2">${GMCheck.LastGMTime} : string</span> - Return time last GM alerted at.
 +
* <span class="highlight2">${GMCheck.LastGMDate} : string</span> - Return date last GM alerted at.
 +
* <span class="highlight2">${GMCheck.LastGMZone} : string</span> - Return zone last GM alerted in.
 +
* <span class="highlight2">${GMCheck.GMEnterCmd} : string</span> - Return the GMEnterCmd option.
 +
* <span class="highlight2">${GMCheck.GMEnterCmdIf} : string</span> - Return the evaluated result of the GMEnterCmdIf option.
 +
* <span class="highlight2">${GMCheck.GMLeaveCmd} : string</span> - Return the GMLeaveCmd option.
 +
* <span class="highlight2">${GMCheck.GMLeaveCmdIf} : string</span> - Return the evaluated result of the GMLeaveCmdIf option.
 +
 
 +
==Configuration==
 +
The MQ2GMCheck.ini file can have the following options, some of which correspond to parameters available via slash commands in game:
 +
 
 +
[Settings] section:
 +
* <span class="highlight2">GMCheck</span> - GM checking is active by default, on plugin load.
 +
* <span class="highlight2">Sound</span> - Play sound files for alerts.
 +
* <span class="highlight2">Beep</span> - Beep the PC speaker for alerts (or play PC beep).
 +
* <span class="highlight2">Popup</span> - Show popup overlays for alerts.
 +
* <span class="highlight2">Corpse</span> - Exclude GM corpses from alerts.
 +
* <span class="highlight2">RemInt</span> - Number of seconds for reminder interval.
 +
* <span class="highlight2">EnterSound</span> - Alert enter sound filename.
 +
* <span class="highlight2">LeaveSound</span> - Alert leave sound filename.
 +
* <span class="highlight2">RemindSound</span> - Alert reminder sound filename.
 +
* <span class="highlight2">GMEnterCmd</span> - Command to execute when 1st GM enters zone.
 +
* <span class="highlight2">GMEnterCmdIf</span> - Optional evaluation to fine tune GMEnterCmd.
 +
* <span class="highlight2">GMLeaveCmd</span> - Command to execute when last GM exits zone.
 +
* <span class="highlight2">GMLeaveCmdIf</span> - Optional evaluation to fine tune GMLeaveCmd.
 +
 
 +
In addition, you can have a Section Name corresponding to a GM name, and those custom enter/leave sounds will be played for that GM instead:
 +
 
 +
[GMFirstName] section:
 +
* <span class="highlight2">EnterSound</span> - GM enter sound filename for this GM.
 +
* <span class="highlight2">LeaveSound</span> - GM leave sound filename for this GM.
  
 
==Sample Configuration==
 
==Sample Configuration==
Line 75: Line 122:
 
GMBeep=off
 
GMBeep=off
 
GMPopup=on
 
GMPopup=on
 +
GMChat=on
 
GMCorpse=off
 
GMCorpse=off
 
RemInt=30
 
RemInt=30
 +
EnterSound=c:\mq2\sounds\gmenter.mp3
 +
LeaveSound=C:\MQ2\Sounds\gmleave.mp3
 +
RemindSound=C:\MQ2\Sounds\gmremind.mp3
 +
GMEnterCmdIf=${If[${Zone.ID}==344 || ${Zone.ID}==345,1,0]}
 +
GMEnterCmd=/multiline ; /end ; /camp desktop
 +
GMLeaveCmdIf=${If[${Zone.ID}==344 || ${Zone.ID}==345,1,0]}
 +
GMLeaveCmd=
 +
 +
[Deodan]
 +
EnterSound=C:\MQ2\Sounds\prickishere.wav
 +
LeaveSound=C:\MQ2\Sounds\thankgod.wav
 
</pre>
 
</pre>
  

Latest revision as of 13:38, 22 April 2012

Plugin Info
Name MQ2GMCheck
Author htw
Link Wiki Link
Commands /gmcheck
Source Available No
Uses INI File Yes

Description

Alerts when GM in zone, as long as they are not in "stealth"

Features

  • This plugin has the ability to alert you in different ways such as sound and visual messages if a GM is detected.

Commands

  • /gmcheck status Displays plugin status and options.
  • /gmcheck [off|on] Toggles gm checking on/off, or force on/off.
  • /gmcheck quiet [off|on] Toggles all gm alert and reminder sounds, or force on/off (resets at next zone).
  • /gmcheck sound [off|on] Toggles playing the sound files for alerts, or force on/off.
  • /gmcheck beep [off|on] Toggles making beeping sounds for alerts, or force on/off.
  • /gmcheck popup [off|on] Toggles showing a popup msg for alerts, or force on/off.
  • /gmcheck chat [off|on] Toggles showing gm alerts in the mq2 chat window, or force on/off.
  • /gmcheck corpse [off|on] Toggles filtering of alerts for GM corpses, or force on/off.
  • /gmcheck rem ## Change alert reminder interval, in seconds (0 to disable).
  • /gmcheck save Saves current options to MQ2GMCheck.ini
  • /gmcheck load Load settings from MQ2GMCheck.ini
  • /gmcheck test [enter|leave|remind] Tests alerts & sounds for the indicated type.
  • /gmcheck ss [enter|leave|remind] SoundFileName Set the filename (wav/mp3) to play for indicated alert. Full path if sound file is not in your MQ2 dir.
  • /gmcheck help Shows command syntax and help.

Example Usage

This command will turn on GM checking.

  • /gmcheck on


This command will turn stop all alert sounds (Resets upon zoning).

  • /gmcheck quiet on


This command will turn on the use of sound files for alerts.

  • /gmcheck sound on


This command will turn on the use of beeps for alerts.

  • /gmcheck beep on


This command will turn allow the use of popups for alerts.

  • /gmcheck popup on


This command will set the reminder interval to 60 seconds.

  • /gmcheck rem 60


This command will disable the reminder alert.

  • /gmcheck rem 0


This command will save the current configuration to MQ2GMCheck.ini file.

  • /gmcheck save

Macro Data

This plugin adds a new TLO called GMCheck.

ExampleType

  • ${GMCheck} : string - Return TRUE if GM in zone.
  • ${GMCheck.Status} : bool - Return TRUE if GM checking is active.
  • ${GMCheck.GM} : bool - Return TRUE if GM in zone.
  • ${GMCheck.Names} : string - Return string with comma delimited list of names of the GMs in zone.
  • ${GMCheck.Sound} : bool - Return TRUE if GMSound is on.
  • ${GMCheck.Beep} : bool - Return TRUE if GMBeep is on.
  • ${GMCheck.Popup} : bool - Return TRUE if GMPopup is on.
  • ${GMCheck.Corpse} : bool - Return TRUE if GMCorpse is on.
  • ${GMCheck.Quiet} : bool - Return TRUE if GMQuiet is on.
  • ${GMCheck.Interval} : int - Return number of seconds for reminder interval.
  • ${GMCheck.Enter} : string - Return GM enter sound filename.
  • ${GMCheck.Leave} : string - Return GM leave sound filename.
  • ${GMCheck.Remind} : string - Return GM reminder sound filename.
  • ${GMCheck.LastGMName} : string - Return name of last GM alerted for.
  • ${GMCheck.LastGMTime} : string - Return time last GM alerted at.
  • ${GMCheck.LastGMDate} : string - Return date last GM alerted at.
  • ${GMCheck.LastGMZone} : string - Return zone last GM alerted in.
  • ${GMCheck.GMEnterCmd} : string - Return the GMEnterCmd option.
  • ${GMCheck.GMEnterCmdIf} : string - Return the evaluated result of the GMEnterCmdIf option.
  • ${GMCheck.GMLeaveCmd} : string - Return the GMLeaveCmd option.
  • ${GMCheck.GMLeaveCmdIf} : string - Return the evaluated result of the GMLeaveCmdIf option.

Configuration

The MQ2GMCheck.ini file can have the following options, some of which correspond to parameters available via slash commands in game:

[Settings] section:

  • GMCheck - GM checking is active by default, on plugin load.
  • Sound - Play sound files for alerts.
  • Beep - Beep the PC speaker for alerts (or play PC beep).
  • Popup - Show popup overlays for alerts.
  • Corpse - Exclude GM corpses from alerts.
  • RemInt - Number of seconds for reminder interval.
  • EnterSound - Alert enter sound filename.
  • LeaveSound - Alert leave sound filename.
  • RemindSound - Alert reminder sound filename.
  • GMEnterCmd - Command to execute when 1st GM enters zone.
  • GMEnterCmdIf - Optional evaluation to fine tune GMEnterCmd.
  • GMLeaveCmd - Command to execute when last GM exits zone.
  • GMLeaveCmdIf - Optional evaluation to fine tune GMLeaveCmd.

In addition, you can have a Section Name corresponding to a GM name, and those custom enter/leave sounds will be played for that GM instead:

[GMFirstName] section:

  • EnterSound - GM enter sound filename for this GM.
  • LeaveSound - GM leave sound filename for this GM.

Sample Configuration

MQ2GMCheck.ini

[Settings]
GMCheck=on
GMSound=on
GMBeep=off
GMPopup=on
GMChat=on
GMCorpse=off
RemInt=30
EnterSound=c:\mq2\sounds\gmenter.mp3
LeaveSound=C:\MQ2\Sounds\gmleave.mp3
RemindSound=C:\MQ2\Sounds\gmremind.mp3
GMEnterCmdIf=${If[${Zone.ID}==344 || ${Zone.ID}==345,1,0]}
GMEnterCmd=/multiline ; /end ; /camp desktop
GMLeaveCmdIf=${If[${Zone.ID}==344 || ${Zone.ID}==345,1,0]}
GMLeaveCmd=

[Deodan]
EnterSound=C:\MQ2\Sounds\prickishere.wav
LeaveSound=C:\MQ2\Sounds\thankgod.wav

Availability

This plugin is included with the MMOBugs Compile.