123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- <!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <html><head><title>Python: cmd_admin</title>
- </head><body bgcolor="#f0f0f8">
- <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
- <tr bgcolor="#7799ee">
- <td valign=bottom> <br>
- <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>cmd_admin</strong></big></big></font></td
- ><td align=right valign=bottom
- ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/Users/hollis/Desktop/nakedmud/lib/pymodules/cmd_admin.py">/Users/hollis/Desktop/nakedmud/lib/pymodules/cmd_admin.py</a></font></td></tr></table>
- <p><tt>cmd_admin.py<br>
- <br>
- commands available only to admins.</tt></p>
- <p>
- <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
- <tr bgcolor="#aa55cc">
- <td colspan=3 valign=bottom> <br>
- <font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
-
- <tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
- <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="display.html">display</a><br>
- <a href="hooks.html">hooks</a><br>
- <a href="inform.html">inform</a><br>
- </td><td width="25%" valign=top><a href="mud.html">mud</a><br>
- <a href="char.html">char</a><br>
- <a href="obj.html">obj</a><br>
- </td><td width="25%" valign=top><a href="room.html">room</a><br>
- <a href="mudsock.html">mudsock</a><br>
- <a href="mudsys.html">mudsys</a><br>
- </td><td width="25%" valign=top><a href="string.html">string</a><br>
- </td></tr></table></td></tr></table><p>
- <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
- <tr bgcolor="#eeaa77">
- <td colspan=3 valign=bottom> <br>
- <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
-
- <tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
- <td width="100%"><dl><dt><a name="-cmd_at"><strong>cmd_at</strong></a>(ch, cmd, arg)</dt><dd><tt>Usage: at <person | place> <command><br>
- <br>
- Perform a command at another room or person while never leaving your<br>
- current room.</tt></dd></dl>
- <dl><dt><a name="-cmd_connections"><strong>cmd_connections</strong></a>(ch, cmd, arg)</dt><dd><tt>lists all of the currently connected sockets, their status, and where<br>
- they are connected from.</tt></dd></dl>
- <dl><dt><a name="-cmd_copyover"><strong>cmd_copyover</strong></a>(ch, cmd, arg)</dt><dd><tt>Restarts the mud, and keep all sockets connected.</tt></dd></dl>
- <dl><dt><a name="-cmd_copyover_net"><strong>cmd_copyover_net</strong></a>(ch, cmd, arg)</dt><dd><tt>A trap to make sure we spell copyover out completely.</tt></dd></dl>
- <dl><dt><a name="-cmd_disconnect"><strong>cmd_disconnect</strong></a>(ch, cmd, arg)</dt><dd><tt>Usage: disconnect <uid><br>
- <br>
- Disconnects a socket with the given uid. Use 'connections' to see<br>
- current connected sockets.</tt></dd></dl>
- <dl><dt><a name="-cmd_eval"><strong>cmd_eval</strong></a>(ch, cmd, arg)</dt><dd><tt>Usage: eval <python statement><br>
- <br>
- Evaluates a Python statement and sends its return value to the user.<br>
- For example:<br>
- <br>
- > eval "Your name is " + ch.name<br>
- Evaluation: Your name is Alister<br>
- <br>
- > eval dir()<br>
- Evaluation: ['arg', 'ch', 'cmd']<br>
- <br>
- > eval dir(ch)</tt></dd></dl>
- <dl><dt><a name="-cmd_exec"><strong>cmd_exec</strong></a>(ch, cmd, arg)</dt><dd><tt>Usage: exec <python statement><br>
- <br>
- Execute any one-line python statement.</tt></dd></dl>
- <dl><dt><a name="-cmd_force"><strong>cmd_force</strong></a>(ch, cmd, arg)</dt><dd><tt>Usage: force <person> <command><br>
- <br>
- Attempts to make the specified perform a command of your choosing.</tt></dd></dl>
- <dl><dt><a name="-cmd_goto"><strong>cmd_goto</strong></a>(ch, cmd, arg)</dt><dd><tt>Usage: goto <person | place | thing><br>
- <br>
- Transfer yourself to a specified room, object, or person in game. Rooms<br>
- are referenced by their zone key.</tt></dd></dl>
- <dl><dt><a name="-cmd_instance"><strong>cmd_instance</strong></a>(ch, cmd, arg)</dt><dd><tt>Create an instanced version of the specified room</tt></dd></dl>
- <dl><dt><a name="-cmd_lockdown"><strong>cmd_lockdown</strong></a>(ch, cmd, arg)</dt><dd><tt>Usage: lockdown [allowed groups | off]<br>
- <br>
- Locks the game for anyone not a member of one of the user groups<br>
- specified. No argument will list all the user groups locked out of the<br>
- mud. The off argument will remove all lockdowns.</tt></dd></dl>
- <dl><dt><a name="-cmd_pulserate"><strong>cmd_pulserate</strong></a>(ch, cmd, arg)</dt><dd><tt>Usage: pulserate <pulses><br>
- <br>
- Changes the number of pulses the mud experiences each second. The mud<br>
- makes one loop through the main game handler each pulse.</tt></dd></dl>
- <dl><dt><a name="-cmd_repeat"><strong>cmd_repeat</strong></a>(ch, cmd, arg)</dt><dd><tt>Usage: repeat <times> <command><br>
- <br>
- Attempts to perform a single command multiple times. For example, one<br>
- may want to load 20 copies of an item:<br>
- <br>
- > repeat 20 load obj beer@drinks</tt></dd></dl>
- <dl><dt><a name="-cmd_shutdown"><strong>cmd_shutdown</strong></a>(ch, cmd, arg)</dt><dd><tt>Shuts the mud down.</tt></dd></dl>
- <dl><dt><a name="-cmd_shutdown_net"><strong>cmd_shutdown_net</strong></a>(ch, cmd, arg)</dt><dd><tt>A trap to make sure we spell shutdown out completely.</tt></dd></dl>
- <dl><dt><a name="-cmd_transfer"><strong>cmd_transfer</strong></a>(ch, cmd, arg)</dt><dd><tt>Usage: transfer <person> [[to] room]<br>
- <br>
- The opposite of goto. Instead of moving to a specified location, it<br>
- takes the target to the user. If an additional argument is supplied,<br>
- instead transfers the target to the specifie room.</tt></dd></dl>
- <dl><dt><a name="-cmd_zinstance"><strong>cmd_zinstance</strong></a>(ch, cmd, arg)</dt><dd><tt>create an instanced copy of the specified zone.</tt></dd></dl>
- <dl><dt><a name="-do_transfer"><strong>do_transfer</strong></a>(ch, tgt, dest)</dt><dd><tt>ch transfers tgt to dest</tt></dd></dl>
- <dl><dt><a name="-do_zinstance"><strong>do_zinstance</strong></a>(zone)</dt><dd><tt>create a new instance of the specified zone.</tt></dd></dl>
- <dl><dt><a name="-try_force"><strong>try_force</strong></a>(ch, vict, cmd)</dt><dd><tt>tries to force a person to do something</tt></dd></dl>
- </td></tr></table><p>
- <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
- <tr bgcolor="#55aa55">
- <td colspan=3 valign=bottom> <br>
- <font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
-
- <tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
- <td width="100%"><strong>curr_instances</strong> = []</td></tr></table>
- </body></html>
|