Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
Bug in get_exp_worth( )
Oct 10, 2017, 1:26 am
By GatewaySysop
Bug in do_drag( )
Oct 8, 2017, 12:40 am
By GatewaySysop
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Beastmaster 6D sound files
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Yandex, DotBot

Members: 0
Guests: 5
Stats
Files
Topics
Posts
Members
Newest Member
476
3,704
19,231
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SmaugFUSS » Adding a command
Forum Rules | Mark all | Recent Posts

Adding a command
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Jan 28, 2010, 3:23 pm
Go to the top of the page
Go to the bottom of the page

bobo the bee
Fledgling
GroupMembers
Posts12
JoinedJan 19, 2010

In trying to add a command, I added a definition
DECLARE_DO_FUN( do_osay ) ;

and added a function in a file (act_comm.c in this case) but the command isn't showing up in the MUD. Is there anywhere else I need to add something? Do I need to manually add the information in the 'commands' system file
       
Post is unread #2 Jan 28, 2010, 3:28 pm
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,857
JoinedJul 26, 2005

well after doing a "make clean" and reboot/hotboot/copyover in the mud you need to create the command using (I think) "cedit create osay do_osay" (If I remember right) that should create a command called osay and set the code for it to do_osay. Lol, as you can tell I haven't really messed with adding commands in awhile.
       
Post is unread #3 Jan 28, 2010, 3:43 pm
Go to the top of the page
Go to the bottom of the page

bobo the bee
Fledgling
GroupMembers
Posts12
JoinedJan 19, 2010

cedit <command> create <code>


Thanks for the help! :-D
       
Post is unread #4 Jan 28, 2010, 3:52 pm   Last edited Jan 28, 2010, 3:53 pm by Hanaisse
Go to the top of the page
Go to the bottom of the page

Hanaisse
Magician
GroupMembers
Posts196
JoinedNov 25, 2007

You'll also want to set cedit <command> [field] with field being either level, position, log, flags

And always cedit save cmdtable when done.

See the cedit help files for more info. :)
       
Pages:<< prev 1 next >>