it tells season on connect and when you say /season
it ONLY works in northern hemisphere
on *:connect: {
/season
}
***********************************************************
**********Season Script (only works in Northern hemisphere)
***********************************************************
alias season {
if ($asctime(mmmm) == may || $asctime(mmmm) == june || $asctime(mmmm) == july || $asctime(mmmm) == august) { //echo 8,1 It's SUMMER!!! | set %ssn Its Summer }
if ($asctime(mmmm) == september || $asctime(mmmm) == october || $asctime(mmmm) == november) { //echo 5Its Fall | set %ssn Its Fall }
if ($asctime(mmmm) == December || $asctime(mmmm) == Janurary || $asctime(mmmm) == february) { //echo 3 Merry 4 Chrismas 3 Its 4 Winter | set %ssn its winter }
if ($asctime(mmmm) == March || $asctime(mmmm) == April) { //echo 2 It's 11 Spring | set %ssn its spring }
dialog -m season season
timerdate 1 3 //echo Current Date: $adate
}
dialog season {
size -1 -1 300 300
title "season"
text %ssn , 1, 150 150 100 100
button ok, 2, 150 200 50 50, ok
}
on 1:dialog:season:init*: {
/season
}
try $asctime(m) and then if out the numbers to save keystrokes
also declare a local varible and resolve $asctime(m) only once
also use else if statements and a final else then to reduce 'load'
this snippet inspired me to create a $season identifier
at http://www.hawkee.com/snippet/6558/