[ScryMUD] SVN Commit Info r980 - in trunk/mud/grrmud: Help server

svn-log at scrymud.net svn-log at scrymud.net
Mon Mar 3 14:52:45 PST 2008


Author: kaj
Date: 2008-03-03 14:52:45 -0800 (Mon, 03 Mar 2008)
New Revision: 980

Added:
   trunk/mud/grrmud/Help/light_1
Modified:
   trunk/mud/grrmud/server/commands.cc
   trunk/mud/grrmud/server/gen_cmds.spec
   trunk/mud/grrmud/server/translations.spec
Log:
When a player tries to "hold <lightsource>" and it fails, it will now inform them to light it. Wear lightsource already works as expected, but hold is a specific command to put it in your hand, hence the confusion for lighting a torch since it actually has to be "light"-ed.



Added: trunk/mud/grrmud/Help/light_1
===================================================================
--- trunk/mud/grrmud/Help/light_1	                        (rev 0)
+++ trunk/mud/grrmud/Help/light_1	2008-03-03 22:52:45 UTC (rev 980)
@@ -0,0 +1,13 @@
+<help general light>
+
+Attempt to light a light source. Objects that are light sources,
+such as torches and lanterns, need to be lit to give off light.
+
+Syntax:  light <<i_th> [item]
+
+Example:  light lantern 
+	  light 2.torch
+
+<color = red>
+See Also:  remove, wield, hold, wear
+</color></help>

Modified: trunk/mud/grrmud/server/commands.cc
===================================================================
--- trunk/mud/grrmud/server/commands.cc	2008-03-03 22:22:38 UTC (rev 979)
+++ trunk/mud/grrmud/server/commands.cc	2008-03-03 22:52:45 UTC (rev 980)
@@ -3314,6 +3314,9 @@
 
    if (!obj.OBJ_FLAGS.get(21 + posn) || posn == 0) {
       if (do_msg) {
+         if (posn == 10 && obj.OBJ_FLAGS.get(32)) {
+            pc.show(CS_TRY_LIGHT_OBJ);
+         }
          pc.show(CS_CANT_WEAR_THERE);
       }//if
       mudlog.log(DBG, "obj_wear_by failed, wrong posn.\n");

Modified: trunk/mud/grrmud/server/gen_cmds.spec
===================================================================
--- trunk/mud/grrmud/server/gen_cmds.spec	2008-03-03 22:22:38 UTC (rev 979)
+++ trunk/mud/grrmud/server/gen_cmds.spec	2008-03-03 22:52:45 UTC (rev 980)
@@ -476,7 +476,7 @@
 laugh(i, &(cooked_strs[1]), pc, (*(pc.getCurRoom()))); return 0;
 lick socials ~
 lick(i, &(cooked_strs[1]), pc, (*(pc.getCurRoom()))); return 0;
-light wear ~
+light ~
 return light(i, &(cooked_strs[1]), pc);
 list ~
 return list_merchandise(i, &(cooked_strs[1]), pc);

Modified: trunk/mud/grrmud/server/translations.spec
===================================================================
--- trunk/mud/grrmud/server/translations.spec	2008-03-03 22:22:38 UTC (rev 979)
+++ trunk/mud/grrmud/server/translations.spec	2008-03-03 22:52:45 UTC (rev 980)
@@ -1208,6 +1208,10 @@
         ser "Nemozes da nosis to tu.\n"
 	~
 
+CS_TRY_LIGHT_OBJ
+	eng "See 'help light' to light an object.\n"
+	~
+
 CS_TOO_EVIL
         eng "You're too evil for your %S!\n"
         spa "Eres demasiado malvado para %S!\n"




More information about the ScryMUD mailing list