This is a basic formula for a drain life spell put it in magic.c probably after enery drain then set it up to be used as any other spell then if you have put weapon spells in your mud then you can add one for this spell. case SPELL_DRAIN_LIFE: if (GET_LEVEL(victim) <= 2) dam = 200; else dam = dice(1, 100); GET_HIT(ch) = MIN(GET_MAX_HIT(ch), GET_HIT(ch) + dam); break; Fiorin Mysts of Savagery +------------------------------------------------------------+ | 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/15/00 PST