egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Alchemical clock script (psuedo-code inside)

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
the_Wizard
Voice


Joined: 17 Jun 2014
Posts: 2

PostPosted: Tue Jun 17, 2014 3:35 am    Post subject: Alchemical clock script (psuedo-code inside) Reply with quote

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


Data table 2


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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber