This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Alchemical clock script (psuedo-code inside)

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
t
the_Wizard
Voice
Posts: 2
Joined: Tue Jun 17, 2014 3:16 am

Alchemical clock script (psuedo-code inside)

Post by the_Wizard »

Hey there!

The following is an explanation of a piece of code that i would like to see made by anyone who is willing to give it a try.

Description

According to the ancient philosophy of Alchemy, days, and hours of the day and night are ruled by planets. This works by dividing the time between sunrise and sundown by twelve, each section is an 'alchemical hour of the day', and the same applies to the time between sundown and sunrise. Those are the 'alchemical hours of the night'. The time can then be matched up with this table to see what is the actual alchemical hour:

Data table 1
Image

Data table 2
Image

Psuedocode

- msg !alchtime <location>
- for <location> find day of the week, current time, timezone, sunrise moment, sunset moment (using third party site)
- calculate time periods for the alchemical hours of the day, same for the nightly hours, store them temporarily.
- Match up current time to the 'data table 1' to detemine what is the current alchemical hour.
- Translate day of the week to the alchemical planet using 'data table 2'.
- Return the results.

Example input/output

Command: msg !alchtime Haarlem, the Netherlands
Return: Username: For you it iscurrently the hour of Venus, on the day of Mars.

Thanks in advance for your consideration.
Post Reply