In this line: > GET_HPR(ch) = (GET_MAX_HIT(ch) / 50) if a player's max hps are less than 50, the result will be 0 and the same holds for the other. The error you're getting is the result of dividing by 0, a big no-no. Might wanna do something like: float val; /* find the ratio of max_hit / 50 */ val = GET_MAX_HIT(ch) / 50; /* here you wanna multiply, not divide by the val */ ASTERISK(ch) = GET_HIT(ch) * val; Christopher (awake@dcci.com)
This archive was generated by hypermail 2b30 : 12/07/00 PST