Fiorin wrote: > > I recently coded a drain life spell and can't seem to figure out how to get the damage that it does to be added to the player or mobs current hp which is what I want the spell to do. Any help would be greatly appreciated. > uh? /******** mailer code *********/ struct char_data *mob; hp_to_be_drained = dice(number, sides); mob = FIGHTING(ch); if ( mob ) { GET_HIT(mob) -= hp_to_be_drained; GET_HIT(ch) += hp_to_be_drained; } /******************************/ something like that? > Thanks in advance, > > Fiorin > Mysts of Savagery .... -- Leonardo Herrera L. mailto:leherrer@entelchile.net http://www.geocities.com/TimesSquare/Castle/4515/ "Me voy a subai, me voy a costai, me voy a tapai y me voy a hacei tuto." -- Ruy +------------------------------------------------------------+ | 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