On Wed, 3 Sep 1997, J.T. wrote:
> In limits.c above void point_update(void)
>
> void werewolf_update(void)
I would do it this way:
void werewolf_update(void)
{
struct char_data *i, *next_i;
extern struct time_info_data time_info;
if (time_info.hours == 21) {
for (i = character_list; i; i = next_i) {
next_i = i->nextl
if (IS_WEREWOLF(i)) {
...
stuff to change, modify...
...
}
} /* char list */
} else if (time_info.hours == 6) {
...
here goes the code to scan thru all the chars and if they are
werewolves then lower their stats...
...
} /* morning */
}
Hm, this is mailer code of course :) Face it it's buggy... :)
But I think it's still better to check what's the time and then scan thru
all the ch's in the game... :)
Hope that this helps... :)
David!
+------------------------------------------------------------+
| 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/08/00 PST