I've followed the instructions completly, However my new commands are still not showing up. Heres basically what I did.
I went into act_info.c copied do_where, and below it pasted it. Then I changed the functions name do_where, to do_newwho.
Next I went into tables.c and added both a
if ( skill == do_newwho ) return "do_newwho";
and
if ( !str_cmp( name, "do_newwho")) return do_newwho;
Both in there appropriate fields under do_where.
Next I went into mud.h and added a declare_do_fun like so,
DECLARE_DO_FUN( do_newwho );
I added this right below do_where like the others.
I then build the source code, and with no errors I then run it. When i'm in the game I type the following,
cedit newwho create do_newwho
Which gives me the error,
Command added.
Code do_newwho not found. Set to no code.
Now that I got that error, I mine as well trying to add it literally in commands.dat in the system folder. So I go in, copy do_where, paste it under itself and re-name it to do the newwho, and command do_newwho.
I reboot the mud, and try "newwho" in game, which gives me a lovely huh?
Well, I must be doing something wrong.. But I'm unsure what, can you please help me?!
Thanks,
Akira
I went into act_info.c copied do_where, and below it pasted it. Then I changed the functions name do_where, to do_newwho.
Next I went into tables.c and added both a
if ( skill == do_newwho ) return "do_newwho";
and
if ( !str_cmp( name, "do_newwho")) return do_newwho;
Both in there appropriate fields under do_where.
Next I went into mud.h and added a declare_do_fun like so,
DECLARE_DO_FUN( do_newwho );
I added this right below do_where like the others.
I then build the source code, and with no errors I then run it. When i'm in the game I type the following,
cedit newwho create do_newwho
Which gives me the error,
Command added.
Code do_newwho not found. Set to no code.
Now that I got that error, I mine as well trying to add it literally in commands.dat in the system folder. So I go in, copy do_where, paste it under itself and re-name it to do the newwho, and command do_newwho.
I reboot the mud, and try "newwho" in game, which gives me a lovely huh?
Well, I must be doing something wrong.. But I'm unsure what, can you please help me?!
Thanks,
Akira