mirror of
https://github.com/tbamud/tbamud.git
synced 2025-12-24 03:00:13 +01:00
Removed the display_usage() event
This commit is contained in:
parent
01dc0b79b6
commit
c9b9872888
3 changed files with 0 additions and 32 deletions
28
src/limits.c
28
src/limits.c
|
|
@ -528,31 +528,3 @@ int decrease_bank(struct char_data *ch, int deduction)
|
|||
increase_bank(ch, amt);
|
||||
return (GET_BANK_GOLD(ch));
|
||||
}
|
||||
|
||||
EVENTFUNC(display_usage)
|
||||
{
|
||||
struct descriptor_data * d;
|
||||
struct char_data * tch;
|
||||
struct list_data * player_list;
|
||||
|
||||
player_list = create_list();
|
||||
|
||||
for (d = descriptor_list; d; d = d->next)
|
||||
if (d->character && STATE(d) == CON_PLAYING)
|
||||
add_to_list(d->character, player_list);
|
||||
|
||||
game_info("News:");
|
||||
game_info("Currently %d Players Online", player_list->iSize);
|
||||
|
||||
if (player_list->iSize) {
|
||||
tch = (struct char_data *) random_from_list(player_list);
|
||||
if (player_list->iSize == 1)
|
||||
game_info("%s is apparently very lonely.", GET_NAME(tch));
|
||||
else
|
||||
game_info("%s last seen at %s", GET_NAME(tch), world[IN_ROOM(tch)].name);
|
||||
}
|
||||
|
||||
free_list(player_list);
|
||||
|
||||
return (10 * 60 * PASSES_PER_SEC);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,9 +16,6 @@ void init_events(void)
|
|||
{
|
||||
/* Allocate Event List */
|
||||
world_events = create_list();
|
||||
|
||||
/* Attach Our Events */
|
||||
attach_mud_event(display_usage, new_mud_event(EVENT_WORLD, NULL, NULL), 10 * PASSES_PER_SEC);
|
||||
}
|
||||
|
||||
void attach_mud_event(void (*func), struct mud_event_data *pMudEvent, long time)
|
||||
|
|
|
|||
|
|
@ -31,6 +31,5 @@ void free_mud_event(struct mud_event_data *pMudEvent);
|
|||
|
||||
/* Events */
|
||||
EVENTFUNC(get_protocols);
|
||||
EVENTFUNC(display_usage);
|
||||
|
||||
#endif /* _MUD_EVENT_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue