[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  Global messages on timer

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: Global messages on timer
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please).
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Posted by Orik   USA  (182 posts)  [Biography] bio
Date Mon 23 Mar 2009 04:27 PM (UTC)  quote  ]
Message
You should probably add in a config option to turn that off as I would never play a game that spams me to vote every 30 minutes. That's just a personal preference though.

To me, that's just poor taste and makes the mud look bad. Again, just my personal opinion.
[Go to top] top

Posted by Zeno   USA  (2,867 posts)  [Biography] bio   Moderator
Date Sun 22 Mar 2009 05:05 PM (UTC)  quote  ]
Message
Try it in the char_check function. That one is called more frequently.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Solo   (4 posts)  [Biography] bio
Date Sun 22 Mar 2009 09:27 AM (UTC)  quote  ]
Message
Ok I went into update.c and added an if check, under char_update. But its not doing what its supposed to do.

if ( (current_time % 1800) == 0 )
{
do_help( ch, "voteinfo" );
}

Now, if I'm not mistaken, this should, every 30 minutes, every character should have the voteinfo hfile displayed. I am I missing something?
[Go to top] top

Posted by Zeno   USA  (2,867 posts)  [Biography] bio   Moderator
Date Sat 21 Mar 2009 11:41 PM (UTC)  quote  ]
Message
During the update tick function in update.c, you could do an ifcheck on the current real time and then perform whatever is needed. I think the function is char_update?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Solo   (4 posts)  [Biography] bio
Date Sat 21 Mar 2009 11:38 PM (UTC)  quote  ]
Message
Yes, was looking to do it roughly every 30 to 45 minutes.
[Go to top] top

Posted by Zeno   USA  (2,867 posts)  [Biography] bio   Moderator
Date Sat 21 Mar 2009 06:39 PM (UTC)  quote  ]
Message
Do you want to echo this stuff at same intervals?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Solo   (4 posts)  [Biography] bio
Date Sat 21 Mar 2009 07:32 AM (UTC)  quote  ]
Message
Ok I figured out the layer thing by myself. Felt kinda dumb afterward. But still having trouble with the timer function. Any help or a pointer in the right direction would be appreciated.
[Go to top] top

Posted by Solo   (4 posts)  [Biography] bio
Date Sat 21 Mar 2009 12:34 AM (UTC)  quote  ]
Message
Relatively new to coding for smaug, was wondering two things. One I was wanting to display the layer value on objects specifically armor when you analyze it, and two, is there any way to code in a timer that sends a global message or forces the player to perform certain actions. IE reading a hfile or something along those lines.
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


2,297 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]