[NEWBIE] [CODE]

From: Ice (cooremr@IHB1.VUB.AC.BE)
Date: 12/19/97


 I searched and searched ... but found absolutelly no clue to what
 the problem would be.  The initial purpose was to implement a new
 armor spell:  stone skin.

 I edited therefore the following (and only those) from the
 stock circle (bpl11):

 - constant.c
 - magic.c
 - spell_parser.c
 - spells.h
 - class.h

 And here are the sections i changed:
 -constant.c :
 ...
 "Your night vision seems to fade",   /*50*/
 "Your feet seems to be less boyant.",
 "Your skin feels soft again.",
 "!unused!"
 };
 ...

 -magic.c:
 ...                                                  (in mag_effects)
 case SPELL_STONE_SKIN:
   af[0].location=APLLY_STR;
   af[0].modifier=-30;
   af[0].duration=24;
   accum_duration=TRUE;
   to_vict="Your skin turns to stone.";
   break;

 case SPELL_STRENGTH:
   af[0].location=APLLY_STR;
   af[0].duration=(GET_LEVEL(ch)>>1)+4;
   af[0].modifier=1+(level>18);
   accum_duration=TRUE;
   accum_affect=TRUE;
   to_vict="You feel stronger!";
   break;
...

-class.h
...                                                  (init_spells_level)
  spell_level(SPELL_STONE_SKIN,CLASS_CLERIC,16);
  spell_level(SPELL_CONTROL_WEATHER,CLASS_CLERIC,17);
  spell_level(SPELL_HARM,CLASS_CLERIC,19);
  spell_level(SPELL_GROUP_HEAL,CLASS_CLERIC,22);
  spell_level(SPELL_REMOVE_CURSE,CLASS_CLERIC,26);
  ...
- spells.h
  ...
  #define SPELL_INFRAVISION         50 /* Reserved Skill() DO NOT CHANGE */
  #define SPELL_WATERWALK           51 /* Reserved Skill() DO NOT CHANGE */
  #define SPELL_STONE_SKIN          52 /* New SPY 13-11-1997 */
  /* Insert new spells here, up to MAX_SPELLS */
  #define MAX_SPELLS               130
  ...

- spell_parser.c
  ...
  char *spells[]=
  {
  "!RESERVED!",                   /* 0 -reserved */

  /* SPELLS */

  "armor",                        /* 1 */
  "teleport",
  ...
  "waterwalk",
  "stone skin",
  "!UNUSED!",
  "!UNUSED!",
  ...
  spello(SPELL_SLEEP,40,25,5,POS_STANDING,TAR_CHAR_ROMM,TRUE,MAG_EFFECTS);
  spello(SPELL_STONE_SKIN,35,5,3,POS_FIGHTING,TAR_CHAR_ROOM,FALSE,MAG_EFFECTS);
  spello(SPELL_STRENGTH,35,30,1,POS_STANDING,TAR_CHAR_ROOM,FALSE,MAG_EFFECTS);
  ...

I get a lot of parse errors in spells.c, the first at line 58,
which is the first line of the first function in the file.
I assume the error is in spells.h, but I don't find any mistake.
Did I forget something ? I'm desperate ... *sigh*


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST