Re: ACMD(do_petition): Help.

From: George Greer (greerga@circlemud.org)
Date: 12/02/01


On Sat, 1 Dec 2001, Daniel A. Koepke wrote:

>On Sat, 1 Dec 2001, David Cole wrote:
>
>> Trying add petition, like the one on Sojourn III etc... I know you
>> know what sojourn is :p
>
>I don't think that's a safe assumption.
>
>> [snip]
>
>The reason your code doesn't write anything to the immortals is simply
>this: it doesn't.  Code is not magic.  The program does not magically do
>what you intend; rather it, it does what you tell it to do.  So if you
>want to send a message to all immortals, you need to do that.  If there's
>not a prepackaged function for doing that, you need to write the loop to
>do it yourself.  Here's a function that will send an act() to each
>immortal that's on:

Perhaps you want to use mudlog() so that immortals can at least ignore it
if they want to? (Not that there is a mudlog_act() function.)
Alternatively, you could try the wiznet channel or some derivative.

--
George Greer
greerga@circlemud.org

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/24/03 PDT