Difference between revisions of "MQ2MercManager" - MMOBugs Wiki

(→‎Example: added examples)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
{{plugin}}
 
{{Pluginbox
 
{{Pluginbox
| name=MQ2MercManager
+
| name = MQ2MercManager
| author=[[User:htw]]
+
| author = [[user:htw|htw]]
 +
| link = [http://www.mmobugs.com/wiki/index.php/MQ2MercManager Wiki Link]
 
| commands=/mercman
 
| commands=/mercman
 +
| source = No
 +
| usesini = Yes
 
}}
 
}}
 
==Description==
 
==Description==
  
This plugin will set your mercenary to passive after a configurable time of inactivity, so you don't have to pay the plat upkeep costs.
+
This plugin will set your mercenary to passive after a configurable time of being afk and/or not moving, so you don't have to pay the plat upkeep costs.
  
 
==Commands==
 
==Commands==
 +
* <span class="highlight2">/mercman</span> Displays current settings and command format.
 +
* <span class="highlight2">/mercman afk ##</span> Change the number of minutes that if you are afk to set the merc to passive (0 to disable).
 +
* <span class="highlight2">/mercman move ##</span> Change the number of minutes that if you do not move to set the merc to passive (0 to disable).
  
* <span class="highlight2">/mercman</span> shows basic usage and current settings
 
* <span class="highlight2">/mercman afkvalue | movevalue </span> changes the time the plugin will wait with you afk, or wait without you moving, before it sets the merc to passive.
 
 
/mercman<br/>
 
MQ2MercManager: Usage is /mercmanager [afkvalue]|[movevalue] (where value is number of minutes afk or not moving, before making sure merc is passive - 0 to disable)<br/>
 
Current settings: AFK=30 minutes Move=30 minutes<br/>
 
 
==Example Usage==
 
==Example Usage==
 
This command will set your afk value to 30 minutes.
 
This command will set your afk value to 30 minutes.
Line 27: Line 28:
 
This command will show usage and your current settings.
 
This command will show usage and your current settings.
 
* <span class="highlight2">/mercman</span>
 
* <span class="highlight2">/mercman</span>
 +
 +
 +
==Configuration==
 +
The MQ2MercManager section of your servername_charactername.ini file can have the following options, which correspond to parameters available via slash command in game (/mercman):
 +
 +
[MQ2MercManager] section:
 +
* <span class="highlight2">AFK</span> - The number of minutes you need to be afk before setting merc to passive (0 = disable).
 +
* <span class="highlight2">Move</span> - The number of minutes you need to not be moving before setting merc to passive (0 = disable).
 +
 +
==Sample Configuration==
 +
 +
For character named Bubba on the Povar server:
 +
 +
povar_bubba.ini
 +
<pre>
 +
[MQ2MercManager]
 +
AFK=120
 +
Move=90
 +
</pre>
  
 
==Availability==
 
==Availability==
  
MQ2MercManager is available as a compiled binary in the MMOBugs binary distribution. The source code is not available.
+
This plugin is included with the MMOBugs Compile.

Latest revision as of 18:41, 21 December 2015

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

Description

This plugin will set your mercenary to passive after a configurable time of being afk and/or not moving, so you don't have to pay the plat upkeep costs.

Commands

  • /mercman Displays current settings and command format.
  • /mercman afk ## Change the number of minutes that if you are afk to set the merc to passive (0 to disable).
  • /mercman move ## Change the number of minutes that if you do not move to set the merc to passive (0 to disable).

Example Usage

This command will set your afk value to 30 minutes.

  • /mercman afk 30


This command will set your move value to 10 minutes.

  • /mercman move 10


This command will show usage and your current settings.

  • /mercman


Configuration

The MQ2MercManager section of your servername_charactername.ini file can have the following options, which correspond to parameters available via slash command in game (/mercman):

[MQ2MercManager] section:

  • AFK - The number of minutes you need to be afk before setting merc to passive (0 = disable).
  • Move - The number of minutes you need to not be moving before setting merc to passive (0 = disable).

Sample Configuration

For character named Bubba on the Povar server:

povar_bubba.ini

[MQ2MercManager]
AFK=120
Move=90

Availability

This plugin is included with the MMOBugs Compile.