cmd_admin.html 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <html><head><title>Python: cmd_admin</title>
  3. </head><body bgcolor="#f0f0f8">
  4. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
  5. <tr bgcolor="#7799ee">
  6. <td valign=bottom>&nbsp;<br>
  7. <font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>cmd_admin</strong></big></big></font></td
  8. ><td align=right valign=bottom
  9. ><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>
  10. <p><tt>cmd_admin.py<br>
  11. &nbsp;<br>
  12. commands&nbsp;available&nbsp;only&nbsp;to&nbsp;admins.</tt></p>
  13. <p>
  14. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  15. <tr bgcolor="#aa55cc">
  16. <td colspan=3 valign=bottom>&nbsp;<br>
  17. <font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
  18. <tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  19. <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="display.html">display</a><br>
  20. <a href="hooks.html">hooks</a><br>
  21. <a href="inform.html">inform</a><br>
  22. </td><td width="25%" valign=top><a href="mud.html">mud</a><br>
  23. <a href="char.html">char</a><br>
  24. <a href="obj.html">obj</a><br>
  25. </td><td width="25%" valign=top><a href="room.html">room</a><br>
  26. <a href="mudsock.html">mudsock</a><br>
  27. <a href="mudsys.html">mudsys</a><br>
  28. </td><td width="25%" valign=top><a href="string.html">string</a><br>
  29. </td></tr></table></td></tr></table><p>
  30. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  31. <tr bgcolor="#eeaa77">
  32. <td colspan=3 valign=bottom>&nbsp;<br>
  33. <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
  34. <tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  35. <td width="100%"><dl><dt><a name="-cmd_at"><strong>cmd_at</strong></a>(ch, cmd, arg)</dt><dd><tt>Usage:&nbsp;at&nbsp;&lt;person&nbsp;|&nbsp;place&gt;&nbsp;&lt;command&gt;<br>
  36. &nbsp;<br>
  37. Perform&nbsp;a&nbsp;command&nbsp;at&nbsp;another&nbsp;room&nbsp;or&nbsp;person&nbsp;while&nbsp;never&nbsp;leaving&nbsp;your<br>
  38. current&nbsp;room.</tt></dd></dl>
  39. <dl><dt><a name="-cmd_connections"><strong>cmd_connections</strong></a>(ch, cmd, arg)</dt><dd><tt>lists&nbsp;all&nbsp;of&nbsp;the&nbsp;currently&nbsp;connected&nbsp;sockets,&nbsp;their&nbsp;status,&nbsp;and&nbsp;where<br>
  40. they&nbsp;are&nbsp;connected&nbsp;from.</tt></dd></dl>
  41. <dl><dt><a name="-cmd_copyover"><strong>cmd_copyover</strong></a>(ch, cmd, arg)</dt><dd><tt>Restarts&nbsp;the&nbsp;mud,&nbsp;and&nbsp;keep&nbsp;all&nbsp;sockets&nbsp;connected.</tt></dd></dl>
  42. <dl><dt><a name="-cmd_copyover_net"><strong>cmd_copyover_net</strong></a>(ch, cmd, arg)</dt><dd><tt>A&nbsp;trap&nbsp;to&nbsp;make&nbsp;sure&nbsp;we&nbsp;spell&nbsp;copyover&nbsp;out&nbsp;completely.</tt></dd></dl>
  43. <dl><dt><a name="-cmd_disconnect"><strong>cmd_disconnect</strong></a>(ch, cmd, arg)</dt><dd><tt>Usage:&nbsp;disconnect&nbsp;&lt;uid&gt;<br>
  44. &nbsp;<br>
  45. Disconnects&nbsp;a&nbsp;socket&nbsp;with&nbsp;the&nbsp;given&nbsp;uid.&nbsp;Use&nbsp;'connections'&nbsp;to&nbsp;see<br>
  46. current&nbsp;connected&nbsp;sockets.</tt></dd></dl>
  47. <dl><dt><a name="-cmd_eval"><strong>cmd_eval</strong></a>(ch, cmd, arg)</dt><dd><tt>Usage:&nbsp;eval&nbsp;&lt;python&nbsp;statement&gt;<br>
  48. &nbsp;<br>
  49. Evaluates&nbsp;a&nbsp;Python&nbsp;statement&nbsp;and&nbsp;sends&nbsp;its&nbsp;return&nbsp;value&nbsp;to&nbsp;the&nbsp;user.<br>
  50. For&nbsp;example:<br>
  51. &nbsp;<br>
  52. &gt;&nbsp;eval&nbsp;"Your&nbsp;name&nbsp;is&nbsp;"&nbsp;+&nbsp;ch.name<br>
  53. Evaluation:&nbsp;Your&nbsp;name&nbsp;is&nbsp;Alister<br>
  54. &nbsp;<br>
  55. &gt;&nbsp;eval&nbsp;dir()<br>
  56. Evaluation:&nbsp;['arg',&nbsp;'ch',&nbsp;'cmd']<br>
  57. &nbsp;<br>
  58. &gt;&nbsp;eval&nbsp;dir(ch)</tt></dd></dl>
  59. <dl><dt><a name="-cmd_exec"><strong>cmd_exec</strong></a>(ch, cmd, arg)</dt><dd><tt>Usage:&nbsp;exec&nbsp;&lt;python&nbsp;statement&gt;<br>
  60. &nbsp;<br>
  61. Execute&nbsp;any&nbsp;one-line&nbsp;python&nbsp;statement.</tt></dd></dl>
  62. <dl><dt><a name="-cmd_force"><strong>cmd_force</strong></a>(ch, cmd, arg)</dt><dd><tt>Usage:&nbsp;force&nbsp;&lt;person&gt;&nbsp;&lt;command&gt;<br>
  63. &nbsp;<br>
  64. Attempts&nbsp;to&nbsp;make&nbsp;the&nbsp;specified&nbsp;perform&nbsp;a&nbsp;command&nbsp;of&nbsp;your&nbsp;choosing.</tt></dd></dl>
  65. <dl><dt><a name="-cmd_goto"><strong>cmd_goto</strong></a>(ch, cmd, arg)</dt><dd><tt>Usage:&nbsp;goto&nbsp;&lt;person&nbsp;|&nbsp;place&nbsp;|&nbsp;thing&gt;<br>
  66. &nbsp;<br>
  67. Transfer&nbsp;yourself&nbsp;to&nbsp;a&nbsp;specified&nbsp;room,&nbsp;object,&nbsp;or&nbsp;person&nbsp;in&nbsp;game.&nbsp;Rooms<br>
  68. are&nbsp;referenced&nbsp;by&nbsp;their&nbsp;zone&nbsp;key.</tt></dd></dl>
  69. <dl><dt><a name="-cmd_instance"><strong>cmd_instance</strong></a>(ch, cmd, arg)</dt><dd><tt>Create&nbsp;an&nbsp;instanced&nbsp;version&nbsp;of&nbsp;the&nbsp;specified&nbsp;room</tt></dd></dl>
  70. <dl><dt><a name="-cmd_lockdown"><strong>cmd_lockdown</strong></a>(ch, cmd, arg)</dt><dd><tt>Usage:&nbsp;lockdown&nbsp;[allowed&nbsp;groups&nbsp;|&nbsp;off]<br>
  71. &nbsp;<br>
  72. Locks&nbsp;the&nbsp;game&nbsp;for&nbsp;anyone&nbsp;not&nbsp;a&nbsp;member&nbsp;of&nbsp;one&nbsp;of&nbsp;the&nbsp;user&nbsp;groups<br>
  73. specified.&nbsp;No&nbsp;argument&nbsp;will&nbsp;list&nbsp;all&nbsp;the&nbsp;user&nbsp;groups&nbsp;locked&nbsp;out&nbsp;of&nbsp;the<br>
  74. mud.&nbsp;The&nbsp;off&nbsp;argument&nbsp;will&nbsp;remove&nbsp;all&nbsp;lockdowns.</tt></dd></dl>
  75. <dl><dt><a name="-cmd_pulserate"><strong>cmd_pulserate</strong></a>(ch, cmd, arg)</dt><dd><tt>Usage:&nbsp;pulserate&nbsp;&lt;pulses&gt;<br>
  76. &nbsp;<br>
  77. Changes&nbsp;the&nbsp;number&nbsp;of&nbsp;pulses&nbsp;the&nbsp;mud&nbsp;experiences&nbsp;each&nbsp;second.&nbsp;The&nbsp;mud<br>
  78. makes&nbsp;one&nbsp;loop&nbsp;through&nbsp;the&nbsp;main&nbsp;game&nbsp;handler&nbsp;each&nbsp;pulse.</tt></dd></dl>
  79. <dl><dt><a name="-cmd_repeat"><strong>cmd_repeat</strong></a>(ch, cmd, arg)</dt><dd><tt>Usage:&nbsp;repeat&nbsp;&lt;times&gt;&nbsp;&lt;command&gt;<br>
  80. &nbsp;<br>
  81. Attempts&nbsp;to&nbsp;perform&nbsp;a&nbsp;single&nbsp;command&nbsp;multiple&nbsp;times.&nbsp;For&nbsp;example,&nbsp;one<br>
  82. may&nbsp;want&nbsp;to&nbsp;load&nbsp;20&nbsp;copies&nbsp;of&nbsp;an&nbsp;item:<br>
  83. &nbsp;<br>
  84. &nbsp;&nbsp;&gt;&nbsp;repeat&nbsp;20&nbsp;load&nbsp;obj&nbsp;beer@drinks</tt></dd></dl>
  85. <dl><dt><a name="-cmd_shutdown"><strong>cmd_shutdown</strong></a>(ch, cmd, arg)</dt><dd><tt>Shuts&nbsp;the&nbsp;mud&nbsp;down.</tt></dd></dl>
  86. <dl><dt><a name="-cmd_shutdown_net"><strong>cmd_shutdown_net</strong></a>(ch, cmd, arg)</dt><dd><tt>A&nbsp;trap&nbsp;to&nbsp;make&nbsp;sure&nbsp;we&nbsp;spell&nbsp;shutdown&nbsp;out&nbsp;completely.</tt></dd></dl>
  87. <dl><dt><a name="-cmd_transfer"><strong>cmd_transfer</strong></a>(ch, cmd, arg)</dt><dd><tt>Usage:&nbsp;transfer&nbsp;&lt;person&gt;&nbsp;[[to]&nbsp;room]<br>
  88. &nbsp;<br>
  89. The&nbsp;opposite&nbsp;of&nbsp;goto.&nbsp;Instead&nbsp;of&nbsp;moving&nbsp;to&nbsp;a&nbsp;specified&nbsp;location,&nbsp;it<br>
  90. takes&nbsp;the&nbsp;target&nbsp;to&nbsp;the&nbsp;user.&nbsp;If&nbsp;an&nbsp;additional&nbsp;argument&nbsp;is&nbsp;supplied,<br>
  91. instead&nbsp;transfers&nbsp;the&nbsp;target&nbsp;to&nbsp;the&nbsp;specifie&nbsp;room.</tt></dd></dl>
  92. <dl><dt><a name="-cmd_zinstance"><strong>cmd_zinstance</strong></a>(ch, cmd, arg)</dt><dd><tt>create&nbsp;an&nbsp;instanced&nbsp;copy&nbsp;of&nbsp;the&nbsp;specified&nbsp;zone.</tt></dd></dl>
  93. <dl><dt><a name="-do_transfer"><strong>do_transfer</strong></a>(ch, tgt, dest)</dt><dd><tt>ch&nbsp;transfers&nbsp;tgt&nbsp;to&nbsp;dest</tt></dd></dl>
  94. <dl><dt><a name="-do_zinstance"><strong>do_zinstance</strong></a>(zone)</dt><dd><tt>create&nbsp;a&nbsp;new&nbsp;instance&nbsp;of&nbsp;the&nbsp;specified&nbsp;zone.</tt></dd></dl>
  95. <dl><dt><a name="-try_force"><strong>try_force</strong></a>(ch, vict, cmd)</dt><dd><tt>tries&nbsp;to&nbsp;force&nbsp;a&nbsp;person&nbsp;to&nbsp;do&nbsp;something</tt></dd></dl>
  96. </td></tr></table><p>
  97. <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
  98. <tr bgcolor="#55aa55">
  99. <td colspan=3 valign=bottom>&nbsp;<br>
  100. <font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
  101. <tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
  102. <td width="100%"><strong>curr_instances</strong> = []</td></tr></table>
  103. </body></html>