Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ Add a new trigger example: command_prog

Add a new trigger example: command_prog

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Genlath   Brazil  (10 posts)  Bio
Date Wed 10 Dec 2014 11:29 AM (UTC)
Message
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.
Top

Posted by Genlath   Brazil  (10 posts)  Bio
Date Reply #1 on Fri 12 Dec 2014 03:34 PM (UTC)

Amended on Fri 12 Dec 2014 03:35 PM (UTC) by Genlath

Message
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?
Top

Posted by Fiendish   USA  (2,551 posts)  Bio   Global Moderator
Date Reply #2 on Fri 12 Dec 2014 04:28 PM (UTC)

Amended on Fri 12 Dec 2014 04:30 PM (UTC) by Fiendish

Message
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.

https://github.com/fiendish/aardwolfclientpackage
Top

Posted by Genlath   Brazil  (10 posts)  Bio
Date Reply #3 on Fri 12 Dec 2014 05:11 PM (UTC)
Message
Thank you. Added a TRUE and compiled.
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


14,784 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.