« blib/lib/auto/share/dist/Games-Axmud/plugins/mcptest.pm
↑ Summary
blib/lib/auto/share/dist/Games-Axmud/plugins/zmptest.pm »
| 1 | #!/usr/bin/perl | ||
| 2 | package wilderness; | ||
| 3 | #: Version: 1.0 | ||
| 4 | #: Description: Converts pre-configured worlds to use wilderness mode | ||
| 5 | #: Author: A S Lewis | ||
| 6 | #: Copyright: This plugin is in the public domain, but you are encouraged to share any modifications | ||
| 7 | # and improvements you make! | ||
| 8 | |||
| 9 | # =-=-=-=-=-=-=-=-=-= | ||
| 10 | # PLUGIN INSTRUCTIONS | ||
| 11 | # =-=-=-=-=-=-=-=-=-= | ||
| 12 | # | ||
| 13 | # Axmud v1.1.138 introduces wilderness mode for worlds that have large regions containing many | ||
| 14 | # rooms, when those rooms have no exit lists. (Usually there's some kind of ASCII map instead) | ||
| 15 | # Some of Axmud's pre-configured worlds are set up to draw maps without using wilderness mode; you | ||
| 16 | # can use this plugin to modify them, so that maps can be more easily drawn using wilderness | ||
| 17 | # mode | ||
| 18 | # | ||
| 19 | # The pre-configured worlds which are modified by this plugin are: | ||
| 20 | # | ||
| 21 | # EmpireMUD 2.0 ('empire') | ||
| 22 | # | ||
| 23 | # NB It is not a good idea to use this plugin, if you've modified a pre-configured world profile | ||
| 24 | # to change the way it interprets room statements (for example, if you have used the Locator | ||
| 25 | # wizard on it). If you're not sure, ask for advice on the Axmud Github page. | ||
| 26 | # | ||
| 27 | # Before doing any conversions, you have to load the plugin | ||
| 28 | # | ||
| 29 | # 1. Connect to any of the worlds listed above (in online or offline mode) | ||
| 30 | # | ||
| 31 | # 2. Load the plugin using this (client) command: | ||
| 32 | # | ||
| 33 | # ;loadplugin -s | ||
| 34 | # | ||
| 35 | # The plugin adds some new client commands. The command modifies the world profile. If you use the | ||
| 36 | # same command a second time, those modificiations are reversed | ||
| 37 | # | ||
| 38 | # 3. Use one of these commands: | ||
| 39 | # | ||
| 40 | # ;wildempire | ||
| 41 | # | ||
| 42 | # 4. Don't forget to save your changes! | ||
| 43 | # | ||
| 44 | # ;save | ||
| 45 | |||
| 46 | use strict; | ||
| 47 | #use diagnostics; | ||
| 48 | use warnings; | ||
| 49 | |||
| 50 | # Modules used by this plugin | ||
| 51 | require _wilderness_cmds; | ||
| 52 | |||
| 53 | # Standard BEGIN / END functions | ||
| 54 | BEGIN {} | ||
| 55 | END {} | ||
| 56 | |||
| 57 | # Add client commands | ||
| 58 | $axmud::CLIENT->addPluginCmds( | ||
| 59 | 'wilderness', | ||
| 60 | '@wilderness plugin', | ||
| 61 | 'WildEmpire' | ||
| 62 | ); | ||
| 63 | |||
| 64 | # Package must return a true value | ||
| 65 | 1 |