Hey all, I made some changes do the death code. Now when you die, you return to a starting room, loose a bunch of exp but keep the stuff with you. Its working fine, but I have two doubts about it: -To do this, I changed the extract_char function. Since this function is called from the DT rotine too, I had to add a test, so if the person died due to a DT he would loose everything and return to the menu. So I added a !GET_POS(ch)=POS_DEAD teste. Is this a good way to test if the person died or DT? -Also, to see how much exp the person loose, I'd like to calculete the HIT and MAX_HIT from the mob, but FIGHTING(ch) is returning a nul pointer, even if I call it before stop_fighting (from fight.c). So, how do I know who te person was fighting with ? Thanks! Marcelo +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | +-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST