DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • July 23, 2019, 06:28:06 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Discussion: Event State Switcher  (Read 1779 times)
0 Members and 1 Guest are viewing this topic.
ThricebornPhoenix
Codemeister
****
Offline Offline

Posts: 370


Dying is the easy part.


View Profile
« on: July 23, 2015, 04:57:02 PM »

Module Title: Event State Switcher
Module Filename: eventswitch.php
Category: Administrative
Version: 0.99
Author: ThricebornPhoenix

This is something really old that I finally cleaned up enough to share.

Event (forest, travel, etc.) modules will be enabled or disabled for specific intervals (default: 50/50) of server newdays, with news (if added). Events with multiple locations are treated as multiple events - for example, an event which hooks to both forest and travel will show up as two events in the table, with all different settings. Setting -1 for the countdown will exempt a module from automatic toggling, though it can still be toggled manually. Event State Switcher uses blockmodule() and does not deactivate or uninstall any other module.

Currently, the table must be updated manually if an event is installed or uninstalled after Event State Switcher.

Tested and functional in 1.1.2.

Submission thread: http://dragonprime.net/index.php?topic=12715.0
« Last Edit: July 23, 2015, 04:59:12 PM by ThricebornPhoenix » Logged

"I was talking aloud to myself. A habit of the old: they choose the wisest person present to speak to; the long explanations needed by the young are wearying."
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Welcome to DragonPrime - The LoGD Resource Community!

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
87 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search