Regeneration spell [by Anders Olsen]
Snippet Posted Friday, February 18th @ 10:46:19 AM, by George Greer in the Skills dept.
Anders Olsen writes "Hello all Circlemudders. I have taken so much from here, so now its my turn to return a thing. I made my own regeneration rooms, and thougt of the regeneration spell. Took me 5 minuttes to make it. simple but good!"
This is made for CyberMUD (dkmud.dk port: 5000)
which is a circlemud bpl15.

This is taken with copy/paste, please correct it.

All right, here goes:

In magic.c
----------

  case SPELL_REGENERATION:
    af[0].bitvector = AFF_REGENERATION;
    af[0].duration = 10;
    accum_duration = TRUE;
    to_vict = "You feel the regeneration going to its top.";
    break;

in structs.h
------------

#define SPELL_REGENERATION

and:

#define AFF_REGENERATION

in constants.c
--------------

/* regeneration rooms in room_x option */
"REGEN",

in limits.c
-----------

This line goes in INT MANA_GAIN and HP and move.

  if (AFF_FLAGGED(ch, AFF_REGENERATION))
    gain *= 2;


---END!

This is all there is to do, email me at klogetrold@get2net.dk if you want help with it.


-- Weaver

<< FTP Uploads | Reply | View as text | Flattened | The slay command [by Gad] >>

 


Related Links
  CircleMUD
Anders Olsen
Related Articles
More by greerga
 
 

CircleMUD Snippets
 
Note: Not all of these snippets will work perfectly with your version of code, so be prepared to fix one or two bugs that may arise, and please let me know what you needed to do to fix it. Sending a corrected version is always welcome.
Finally, if you wish to use any of the snippets from this page, you are more than welcome, just mention the authors in your credits. If you wish to release any of these snippets to the public on another site, contact me FIRST.