Add a new trigger example: command_prog

Posted by Genlath on Wed 10 Dec 2014 11:29 AM — 4 posts, 15,826 views.

Brazil #0
Good morning Nick Gammon!

I see in Herne Smaug's site, on the programs, a command that does not have the smaug or the smaufss, which is the command_prog in the syntax of rpedit and mpedit. How do I add it? There is already a ready script?
Could you help me please?
Thanks for the help already and attention.

Ps: I like your work with MUDs, am a big fan yours.
Brazil #1
Already managed to solve this problem. Now I'm with this problem by adding the remort system Smaug Remort 1.2 By Xerves with this error:

make -s smaug
Compiling o/remort.o....
remort.c: In function 'void do_remort(CHAR_DATA*, char*)':
remort.c:184:56: error: too few arguments to function 'bool load_char_obj(DESCRIPTOR_DATA*, char*, bool, bool)'
load_char_obj ( d, capitalize( oldch->name ), TRUE );
^
In file included from remort.c:31:0:
mud.h:4928:6: note: declared here
bool load_char_obj args( ( DESCRIPTOR_DATA * d, char *name, bool preload, bool
copyover ) );
^
Makefile:101: recipe for target 'o/remort.o' failed
make[1]: *** [o/remort.o] Error 1
Makefile:46: recipe for target 'all' failed
make: *** [all] Error 2

I can declare in mud.h or remort.c?
Amended on Fri 12 Dec 2014 03:35 PM by Genlath
USA Global Moderator #2
Quote:
remort.c: In function 'void do_remort(CHAR_DATA*, char*)'

Quote:
too few arguments to function 'bool load_char_obj(DESCRIPTOR_DATA*, char*, bool, bool)'

The function takes 4 arguments.

Quote:
load_char_obj ( d, capitalize( oldch->name ), TRUE );

You only give 3.
Amended on Fri 12 Dec 2014 04:30 PM by Fiendish
Brazil #3
Thank you. Added a TRUE and compiled.