Welcome to the Builder Academy

Question Newbie Messages Snippet

More
25 Jul 2012 02:16 - 29 Jul 2012 08:33 #434 by Liko
Newbie Messages Snippet was created by Liko
Hey guys,

I found an old snippet on the circlemud site for displaying newbie messages. I updated the code that allows toggling of a newbie flag. It also doesn't display while your writing anymore.

I hope you guys find some use for it.

Newbie Message Snippet

Randian(0.0.0)
Owner/Developer
Last edit: 29 Jul 2012 08:33 by Liko. Reason: Updated Snippet Link
The following user(s) said Thank You: bakarus

Please Log in or Create an account to join the conversation.

More
28 Jul 2012 23:15 #463 by bakarus
Replied by bakarus on topic Re: Newbie Messages Snippet
I used your instructions, and added everything in the txt file, when I compile I get 1 error,

comm.o: In function: 'heartbeat': comm.c:999: undefined reference to `check_newbie'

here is the function:
Code:
if (!(heart_pulse % (SECS_PER_MUD_HOUR * PASSES_PER_SEC))) { /* Tick ! */ next_tick = SECS_PER_MUD_HOUR; /* Reset tick coundown */ weather_and_time(1); check_time_triggers(); affect_update(); point_update(); check_timed_quests(); check_newbie(); }

Please Log in or Create an account to join the conversation.

More
29 Jul 2012 00:57 #464 by Halenbane
Did you add check_newbie in comm.c?

Please Log in or Create an account to join the conversation.

More
29 Jul 2012 01:09 #465 by bakarus
Replied by bakarus on topic Re: Newbie Messages Snippet
Nope, following the text file it said to add the check_newbie function in act.informative.c

Please Log in or Create an account to join the conversation.

More
29 Jul 2012 01:44 - 29 Jul 2012 01:45 #466 by Liko
Replied by Liko on topic Re: Newbie Messages Snippet

bakarus wrote: Nope, following the text file it said to add the check_newbie function in act.informative.c


You need to add this in act.h and under void free_recent_players(void)
Code:
void check_newbie(void);

Randian(0.0.0)
Owner/Developer
Last edit: 29 Jul 2012 01:45 by Liko.

Please Log in or Create an account to join the conversation.

More
29 Jul 2012 04:22 #467 by bakarus
Replied by bakarus on topic Re: Newbie Messages Snippet
I did add that to act.h, per the text file, here's the code:
Code:
/* Utility Functions */ /** @todo Move to a utility library */ char *find_exdesc(char *word, struct extra_descr_data *list); /** @todo Move to a mud centric string utility library */ void space_to_minus(char *str); /** @todo Move to a help module? */ int search_help(const char *argument, int level); void free_history(struct char_data *ch, int type); void free_recent_players(void); void check_newbie(void); /* functions with subcommands */ /* do_commands */ ACMD(do_commands);

Please Log in or Create an account to join the conversation.

Time to create page: 0.227 seconds