how to code in ooc channel

Posted by Darzeth on Wed 07 Jun 2006 08:40 PM — 12 posts, 40,714 views.

#0
im having trouble, let me say first off im new to this and i cant seem to find a site that will show me how to do this. But i want to code in a ooc channel for my mud. I also want to know if anyone knows any sites that will show how to code muds and has alot of info on it. Also any other sites with mud code will help.
USA #1
If you check www.afkmud.org and www.smaugfuss.org they have download sections with snippets and even how to add channels, one of the sections on afkmud explains how to add an OOC channel to boot.

[EDIT - 11 March 2008] - The Smaug FUSS site is now http://www.smaugmuds.org/
Amended on Tue 11 Mar 2008 03:29 AM by Nick Gammon
USA #2
A good place to start with your channel issue would be www.afkmud.com. You can go to their download sections and click on the 'Lost Prophecy Snippets' section, which have been reconstructed by Samson (Thanks Samson!). There is a section in there dedicated to making new channels. That should get you started.

If you're just starting to learn how to code, this forum will help you. Post a reasonable question and I'm sure you'll get answers rather quickly. But remember, the best way to learn is through trial and error. Pick up a book on C (or C++, depending on your source code) programming and give it a glance. It'll help you learn what things like "if ( !strcmp (ch->name, "Tzaro") )" is actually saying.

Alternatively, www.mudbytes.net is a great place to gain knowledge on MUD games. Again, it's a place to go when you need that little extra help to figure something out.

In both cases, always check the forums before posting to make sure you're not repeating a question :).

Best luck,
Tzaro
USA #3
Take a look at this tutorial, it's exactly what you want:
http://www.auricmud.com/snippets/new-channel.html
#4
if i use fuss can i still edit it like i would normal smaug?
USA #5
I'm not exactly sure what you mean, but yes. You compile it the same, etc.
#6
Hi. I'm trying to develop this OOC channel in smaugFUSS using the "how to add an OOC channel" guide. (links above) Unfortunately, its first step, which says to go to mud.h and search for channel_ gives me no results.

Quote:

" in mud.h do a search for channel_ and add:
#define CHANNEL_OOC BV30 (or whatever BV is next in your channel defines) "

(I go to edit-find in gVIM and search for it). I've tried finding "channel" but it just gives me some echo commentary...

Any ideas?
USA #7
Are you searching for "channel" or "CHANNEL"? Searches are case-sensitive.
#8
That was it. Thanks Ksil. Sometimes it's those small things. *embarassed*
#9
Alright. Thus far I've managed to get every step done in the OOC add-a-channel guide at http://www.auricmud.com/snippets/new-channel.html , but I'm stuck on the very last paragraph of instructions.

"Once you've completed all this need to finish up by adding the 'do_ooc' to mud.h and tables.c as per a normal new command, reboot, cedit it in, and you're done."

I suppose my question is - what and where do I add for this cryptic 'do_ooc'? I have to do something with it in mud.h and tables.c, but I'm not sure what I should add in total. Any ideas?
USA #10
need to place DECLARE_DO_FUN( do_ooc ); in mud.h then there are two entries in tables.c to make, look for do_immtalk and you'll see
#11
Don't neglect to look at the documentation that comes with Smaug too. Check it out in the Doc folder, there are a lot of good things, including Adding a New Command, which tells you step by step how to do those things you mentioned, like cedit, etc...
Gadush