Season dialog

By Weasel on Aug 10, 2009

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
}

Comments

Sign in to comment.
Weasel   -  Aug 11, 2009

Cool, im working on an update

 Respond  
gooshie   -  Aug 10, 2009

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/

 Respond  
sunslayer   -  Aug 10, 2009

mybe use $istok or $regex instead of all those "||"

but this is 500% better then ur old snippets

also there is no real need for the /'s

 Respond  
pickle16   -  Aug 10, 2009

why don't it work in the south hemisphere?
I DEMAND YOU TO FIX! >;(

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.