Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
 parse description bug
Yesterday, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
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
LOP 1.45
Author: Remcon
Submitted by: Remcon
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
Users Online
CommonCrawl, Yandex, Yahoo!, Google, DotBot

Members: 0
Guests: 8
Stats
Files
Topics
Posts
Members
Newest Member
477
3,706
19,240
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » AFKMud Support & Development » Dumb question probably
Forum Rules | Mark all | Recent Posts

Dumb question probably
< Newer Topic :: Older Topic > Announcements

Pages:<< prev 1 next >>
Post is unread #1 Jul 30, 2002, 11:11 am
Go to the top of the page
Go to the bottom of the page

BroRich

GroupMembers
Posts20
JoinedJul 12, 2002

How do you add in things like announcements or a tip system that echo through the whole mud. I have seen some muds that have a tip system that randomly scrolls a different tip at a desired time in the game.
       
Post is unread #2 Jul 30, 2002, 11:22 am
Go to the top of the page
Go to the bottom of the page

Guest - (Unregistered)

How do you add in things like announcements or a tip system that echo through the whole mud. I have seen some muds that have a tip system that randomly scrolls a different tip at a desired time in the game.

Quick overview which in essense should work in any stock Diku derivative.

Two parts, the bit that does stuff...

Create a function to perform the echo, either using a CHAR_DATA* to run through the character list and echo to the players based on thier config, or you could just send_to_all() (or you have it or equiv) to echo out to everyone regardless. Exactly how this works (random selection of a tip or whatever, or more specific announcements) is something you have to decide for yourself.

.. and the bit that does it periodically...

In update.c create yourself a new pulse timer section (or choose an existing one, creating a new one based on whats there already shouldn't be hard) based on the frequency of the echo's you want to produce (PULSE_TICK or whatever they are called for you). Inside this block you want to call the function you wrote to perform the output.

I have a few other ways to doing this, but those changes require a rather significant adjustment to the internals of the system, so I'll leave them well alone
       
Post is unread #3 Jul 30, 2002, 11:59 am
Go to the top of the page
Go to the bottom of the page

BroRich

GroupMembers
Posts20
JoinedJul 12, 2002

Hmm, would it be possible for you to put an example of the first thing here? I am clueless about coding from scratch but am getting more familiar with the code as I change things. I think I can dupe an existing call as you stated for the second procedure.
       
Pages:<< prev 1 next >>