Author Topic: Adding New local channels  (Read 2665 times)

Offline vini

  • Acquaintance
  • *
  • Posts: 3
    • View Profile
Adding New local channels
« on: September 12, 2007, 04:27:27 pm »
I've done some searching, but haven't found anything to guide me in creating a few new local channels in DS. Is this easily done? Can anyone provide a hint or two to move me along? Help would be much appreciated or even an indication that it is very complex to attempt. Thanks.

Offline Tricky

  • BFF
  • ***
  • Posts: 189
  • I like what I code and I code what I like!
    • View Profile
Re: Adding New local channels
« Reply #1 on: September 12, 2007, 04:43:34 pm »
You need to look at /secure/daemon/chat.c

Good luck

Oh yeah, bug Crat about it on the dead_souls channel. :)

Tricky

Offline vini

  • Acquaintance
  • *
  • Posts: 3
    • View Profile
Re: Adding New local channels
« Reply #2 on: September 12, 2007, 04:53:48 pm »
Thanks for the guidance Tricky, I was hung up on searching for "local channel". I need to open my mind I guess and think more broadly about how things can be named.

Offline cratylus

  • Your favorite and best
  • Administrator
  • ***
  • Posts: 1024
  • Cratylus@Dead Souls <ds> np
    • View Profile
    • About Cratylus
Re: Adding New local channels
« Reply #3 on: September 12, 2007, 06:03:01 pm »
I wouldn't mess with CHAT_D for adding a channel.

You don't really add local channels to the mud, you add
local channels to *people*.

If you

call me->AddChannel("localchan")

and then

call joe->AddChannel("localchan")


Then you and joe will be able to use the localchan channel.

It's that simple.

If you want all new users to have access to localchan,
add it to /lib/player.c along with the other channels,
for example, after this line:

Code: [Select]
AddChannel( ({ "gossip" }) );
Then type:

update -r /lib/creator


Make sure you make a backup copy of player.c before editing it.

-Crat