When damage is delivered through the use of poison or other similar spells, both 'ch' and 'victim' are the same. So, do it like this: if (!IS_NPC(ch) && !IS_NPC(victim) && (ch != victim)) { send_to_char("You cannot kill players on this mud!\n\r", ch); return; } in the damage() function. This will prevent at the basest level players from delivering damage to each other, without having to put in special checks for POISON or any other damage types that might be taking place. You should put similar checks in do_hit() and other functions at a higher level as well, to prevent the combat from even being initiated. - tim (Tim Maddux, tbmaddux@engineering.ucsb.edu)
This archive was generated by hypermail 2b30 : 12/07/00 PST