PC Help And Information Easy Maintenance And Free Software
 
HomePortalFAQSearchRegisterLog in

Share | 
 

 World Clock : By LightSideJedi

View previous topic View next topic Go down 
AuthorMessage
Steve™
Management

Management
avatar

Male
Number of posts : 2447
Home : At Home
Humor : If Im Not Back Later... Wait Longer
Registration date : 2007-07-30

PostSubject: World Clock : By LightSideJedi   Tue Mar 09, 2010 8:34 am

As this is a large game script, it is easier this way


Code:
<config>

// --- WorldClock by LļghtSļdėJėdļ v. 1.2 --- //
// --- Changes: Support for UK Time Zone      --- //

<command type="script">
<in>!time</in>
<out type="push" extdata="name">%NAME%</out>
<out type="push" extdata="place">%PARAM%</out>

##########################################################################
# You can turn off or on individual times here, to disable set to 1 to 0 #
##########################################################################

<out type="push" extdata="AUSE">1</out>
<out type="push" extdata="AUSW">1</out>
<out type="push" extdata="UK">1</out>
<out type="push" extdata="EST">1</out>
<out type="push" extdata="CST">1</out>
<out type="push" extdata="MST">1</out>
<out type="push" extdata="PST">1</out>

#################
# pop variables #
#################

<out type="push" extdata="HOUR">0</out>
<out type="push" extdata="MINUTE">0</out>
<out type="push" extdata="DAY">0</out>
<out type="push" extdata="MONTH">0</out>
<out type="push" extdata="YEAR">0</out>
<out type="push" extdata="CHANGEMONTH">0</out>
<out type="push" extdata="DAY1">0</out>
<out type="push" extdata="MONTH1">0</out>

<out type="push" extdata="AUSEHOUR">0</out>
<out type="push" extdata="AUSWHOUR">0</out>
<out type="push" extdata="UKHOUR">0</out>
<out type="push" extdata="ESTHOUR">0</out>
<out type="push" extdata="CSTHOUR">0</out>
<out type="push" extdata="MSTHOUR">0</out>
<out type="push" extdata="PSTHOUR">0</out>
<out type="push" extdata="AUSEAMPM">AM</out>
<out type="push" extdata="AUSWAMPM">AM</out>
<out type="push" extdata="UKAMPM">AM</out>
<out type="push" extdata="ESTAMPM">AM</out>
<out type="push" extdata="CSTAMPM">AM</out>
<out type="push" extdata="MSTAMPM">AM</out>
<out type="push" extdata="PSTAMPM">AM</out>
<out type="push" extdata="AUSETIME"></out>
<out type="push" extdata="AUSWTIME"></out>
<out type="push" extdata="UKTIME"></out>
<out type="push" extdata="ESTTIME"></out>
<out type="push" extdata="CSTTIME"></out>
<out type="push" extdata="MSTTIME"></out>
<out type="push" extdata="PSTTIME"></out>
<out type="push" extdata="timestring"></out>

<out type="push" extdata="HOUR">%HOUR%</out>
<out type="push" extdata="MINUTE">%MINUTE%</out>
<out type="push" extdata="DAY">%DAY%</out>
<out type="push" extdata="MONTH">%MONTH%</out>
<out type="push" extdata="YEAR">%YEAR%</out>

#################################################################################
# Set this to your timezone offset from GMT, i.e PST set to 8, EST set to 5, UK set to 0, Aussie East set to -9 ... etc #
#################################################################################

<out type="push" extdata="TIMEZONEOFFSET">5</out>

######################################
# Get GMT Hour for time calculations #
######################################

<out type="push" extdata="MINUTE" condition="<" lvalue="$MINUTE$" rvalue="10">0$MINUTE$</out>
<out type="push" extdata="GMTHOUR" condition="" lvalue="" rvalue=""><operator type="+" lvalue="$HOUR$" rvalue="$TIMEZONEOFFSET$"/></out>

<out type="push" extdata="AUSEHOUR" condition="" lvalue="" rvalue=""><operator type="+" lvalue="$GMTHOUR$" rvalue="9"/></out>
<out type="push" extdata="AUSEAMPM" condition=">" lvalue="$AUSEHOUR$" rvalue="11">PM</out>
<out type="push" extdata="AUSEAMPM" condition=">" lvalue="$AUSEHOUR$" rvalue="23">AM</out>
<out type="push" extdata="AUSEAMPM" condition=">" lvalue="$AUSEHOUR$" rvalue="35">PM</out>
<out type="push" extdata="AUSEHOUR" condition=">" lvalue="$AUSEHOUR$" rvalue="24"><operator type="-" lvalue="$AUSEHOUR$" rvalue="24"/></out>
<out type="push" extdata="AUSEHOUR" condition=">" lvalue="$AUSEHOUR$" rvalue="12"><operator type="-" lvalue="$AUSEHOUR$" rvalue="12"/></out>

<out type="push" extdata="AUSWHOUR" condition="" lvalue="" rvalue=""><operator type="+" lvalue="$GMTHOUR$" rvalue="8"/></out>
<out type="push" extdata="AUSWAMPM" condition=">" lvalue="$AUSWHOUR$" rvalue="11">PM</out>
<out type="push" extdata="AUSWAMPM" condition=">" lvalue="$AUSWHOUR$" rvalue="23">AM</out>
<out type="push" extdata="AUSWAMPM" condition=">" lvalue="$AUSWHOUR$" rvalue="35">PM</out>
<out type="push" extdata="AUSWHOUR" condition=">" lvalue="$AUSWHOUR$" rvalue="24"><operator type="-" lvalue="$AUSWHOUR$" rvalue="24"/></out>
<out type="push" extdata="AUSWHOUR" condition=">" lvalue="$AUSWHOUR$" rvalue="12"><operator type="-" lvalue="$AUSWHOUR$" rvalue="12"/></out>

<out type="push" extdata="UKHOUR" condition="" lvalue="" rvalue=""><operator type="-" lvalue="$GMTHOUR$" rvalue="0"/></out>
<out type="push" extdata="UKAMPM" condition=">" lvalue="$UKHOUR$" rvalue="11">PM</out>
<out type="push" extdata="UKAMPM" condition=">" lvalue="$UKHOUR$" rvalue="23">AM</out>
<out type="push" extdata="UKHOUR" condition=">" lvalue="$UKHOUR$" rvalue="24"><operator type="-" lvalue="$UKHOUR$" rvalue="24"/></out>
<out type="push" extdata="UKHOUR" condition=">" lvalue="$UKHOUR$" rvalue="12"><operator type="-" lvalue="$UKHOUR$" rvalue="12"/></out>

<out type="push" extdata="ESTHOUR" condition="" lvalue="" rvalue=""><operator type="-" lvalue="$GMTHOUR$" rvalue="5"/></out>
// ------ If hour is 0 set to 24
<out type="push" extdata="ESTHOUR" condition="==" lvalue="$ESTHOUR$" rvalue="0">24</out>
// ------  If the hour is less then the timezone-gmtvalue 5, then add 24 to hour
<out type="push" extdata="ESTHOUR" condition="<" lvalue="$ESTHOUR$" rvalue="5"><operator type="+" lvalue="$ESTHOUR$" rvalue="24"/></out>
<out type="push" extdata="ESTAMPM" condition=">" lvalue="$ESTHOUR$" rvalue="11">PM</out>
<out type="push" extdata="ESTAMPM" condition=">" lvalue="$ESTHOUR$" rvalue="23">AM</out>
<out type="push" extdata="ESTHOUR" condition=">" lvalue="$ESTHOUR$" rvalue="24"><operator type="-" lvalue="$ESTHOUR$" rvalue="24"/></out>
<out type="push" extdata="ESTHOUR" condition=">" lvalue="$ESTHOUR$" rvalue="12"><operator type="-" lvalue="$ESTHOUR$" rvalue="12"/></out>

<out type="push" extdata="CSTHOUR" condition="" lvalue="" rvalue=""><operator type="-" lvalue="$GMTHOUR$" rvalue="6"/></out>
// ------ If hour is 0 set to 24
<out type="push" extdata="CSTHOUR" condition="==" lvalue="$CSTHOUR$" rvalue="0">24</out>
// ------  If the hour is less then the timezone-gmtvalue 6, then add 24 to hour
<out type="push" extdata="CSTHOUR" condition="<" lvalue="$CSTHOUR$" rvalue="6"><operator type="+" lvalue="$CSTHOUR$" rvalue="24"/></out>
<out type="push" extdata="CSTAMPM" condition=">" lvalue="$CSTHOUR$" rvalue="11">PM</out>
<out type="push" extdata="CSTAMPM" condition=">" lvalue="$CSTHOUR$" rvalue="23">AM</out>
<out type="push" extdata="CSTHOUR" condition=">" lvalue="$CSTHOUR$" rvalue="24"><operator type="-" lvalue="$CSTHOUR$" rvalue="24"/></out>
<out type="push" extdata="CSTHOUR" condition=">" lvalue="$CSTHOUR$" rvalue="12"><operator type="-" lvalue="$CSTHOUR$" rvalue="12"/></out>

<out type="push" extdata="MSTHOUR" condition="" lvalue="" rvalue=""><operator type="-" lvalue="$GMTHOUR$" rvalue="7"/></out>
// ------ If hour is 0 set to 24
<out type="push" extdata="MSTHOUR" condition="==" lvalue="$MSTHOUR$" rvalue="0">24</out>
// ------  If the hour is less then the timezone-gmtvalue 7, then add 24 to hour
<out type="push" extdata="MSTHOUR" condition="<" lvalue="$MSTHOUR$" rvalue="7"><operator type="+" lvalue="$MSTHOUR$" rvalue="24"/></out>
<out type="push" extdata="MSTAMPM" condition=">" lvalue="$MSTHOUR$" rvalue="11">PM</out>
<out type="push" extdata="MSTAMPM" condition=">" lvalue="$MSTHOUR$" rvalue="23">AM</out>
<out type="push" extdata="MSTHOUR" condition=">" lvalue="$MSTHOUR$" rvalue="24"><operator type="-" lvalue="$MSTHOUR$" rvalue="24"/></out>
<out type="push" extdata="MSTHOUR" condition=">" lvalue="$MSTHOUR$" rvalue="12"><operator type="-" lvalue="$MSTHOUR$" rvalue="12"/></out>

<out type="push" extdata="PSTHOUR" condition="" lvalue="" rvalue=""><operator type="-" lvalue="$GMTHOUR$" rvalue="8"/></out>
// ------ If hour is 0 set to 24
<out type="push" extdata="PSTHOUR" condition="==" lvalue="$PSTHOUR$" rvalue="0">24</out>
// ------  If the hour is less then the timezone-gmtvalue 8, then add 24 to hour
<out type="push" extdata="PSTHOUR" condition="<" lvalue="$PSTHOUR$" rvalue="8"><operator type="+" lvalue="$PSTHOUR$" rvalue="24"/></out>
<out type="push" extdata="PSTAMPM" condition=">" lvalue="$PSTHOUR$" rvalue="11">PM</out>
<out type="push" extdata="PSTAMPM" condition=">" lvalue="$PSTHOUR$" rvalue="23">AM</out>
<out type="push" extdata="PSTHOUR" condition=">" lvalue="$PSTHOUR$" rvalue="24"><operator type="-" lvalue="$PSTHOUR$" rvalue="24"/></out>
<out type="push" extdata="PSTHOUR" condition=">" lvalue="$PSTHOUR$" rvalue="12"><operator type="-" lvalue="$PSTHOUR$" rvalue="12"/></out>

<out type="push" extdata="AUSETIME" condition="==" lvalue="$AUSE$" rvalue="1">#c51#Australia Eastern #c57#$AUSEHOUR$#c51#:#c57#$MINUTE$ $AUSEAMPM$ </out>
<out type="push" extdata="AUSWTIME" condition="==" lvalue="$AUSW$" rvalue="1">#c51#Australia Western #c57#$AUSWHOUR$#c51#:#c57#$MINUTE$ $AUSWAMPM$ </out>
<out type="push" extdata="UKTIME" condition="==" lvalue="$UK$" rvalue="1">#c51#U.K. #c57#$UKHOUR$#c51#:#c57#$MINUTE$ $UKAMPM$ </out>
<out type="push" extdata="ESTTIME" condition="==" lvalue="$EST$" rvalue="1">#c51#USA Eastern #c57#$ESTHOUR$#c51#:#c57#$MINUTE$ $ESTAMPM$ </out>
<out type="push" extdata="CSTTIME" condition="==" lvalue="$CST$" rvalue="1">#c51#USA Central #c57#$CSTHOUR$#c51#:#c57#$MINUTE$ $CSTAMPM$ </out>
<out type="push" extdata="MSTTIME" condition="==" lvalue="$MST$" rvalue="1">#c51#USA Mountain #c57#$MSTHOUR$#c51#:#c57#$MINUTE$ $MSTAMPM$ </out>
<out type="push" extdata="PSTTIME" condition="==" lvalue="$PST$" rvalue="1">#c51#USA Pacific #c57#$PSTHOUR$#c51#:#c57#$MINUTE$ $PSTAMPM$</out>

<out type="push" extdata="timestring" condition="==" lvalue="$AUSE$" rvalue="1"><operator type="strcat" lvalue="$timestring$" rvalue="$AUSETIME$"/></out>
<out type="push" extdata="timestring" condition="==" lvalue="$AUSW$" rvalue="1"><operator type="strcat" lvalue="$timestring$" rvalue="$AUSWTIME$"/></out>
<out type="push" extdata="timestring" condition="==" lvalue="$UK$" rvalue="1"><operator type="strcat" lvalue="$timestring$" rvalue="$UKTIME$"/></out>
<out type="push" extdata="timestring" condition="==" lvalue="$EST$" rvalue="1"><operator type="strcat" lvalue="$timestring$" rvalue="$ESTTIME$"/></out>
<out type="push" extdata="timestring" condition="==" lvalue="$CST$" rvalue="1"><operator type="strcat" lvalue="$timestring$" rvalue="$CSTTIME$"/></out>
<out type="push" extdata="timestring" condition="==" lvalue="$MST$" rvalue="1"><operator type="strcat" lvalue="$timestring$" rvalue="$MSTTIME$"/></out>
<out type="push" extdata="timestring" condition="==" lvalue="$PST$" rvalue="1"><operator type="strcat" lvalue="$timestring$" rvalue="$PSTTIME$"/></out>

<out delay="200">$timestring$</out>
<out type="self" extdata="">!timerestart</out>
</command>

#################
# pop variables #
#################

<command>
<in>!timerestart</in>
<out type="push" extdata="HOUR">0</out>
<out type="push" extdata="MINUTE">0</out>
<out type="push" extdata="DAY">0</out>
<out type="push" extdata="MONTH">0</out>
<out type="push" extdata="YEAR">0</out>
<out type="push" extdata="CHANGEMONTH">0</out>
<out type="push" extdata="DAY1">0</out>
<out type="push" extdata="MONTH1">0</out>

<out type="push" extdata="AUSEHOUR">0</out>
<out type="push" extdata="AUSWHOUR">0</out>
<out type="push" extdata="UKHOUR">0</out>
<out type="push" extdata="ESTHOUR">0</out>
<out type="push" extdata="CSTHOUR">0</out>
<out type="push" extdata="MSTHOUR">0</out>
<out type="push" extdata="PSTHOUR">0</out>
<out type="push" extdata="AUSEAMPM">AM</out>
<out type="push" extdata="AUSWAMPM">AM</out>
<out type="push" extdata="UKAMPM">AM</out>
<out type="push" extdata="ESTAMPM">AM</out>
<out type="push" extdata="CSTAMPM">AM</out>
<out type="push" extdata="MSTAMPM">AM</out>
<out type="push" extdata="PSTAMPM">AM</out>
<out type="push" extdata="AUSETIME"></out>
<out type="push" extdata="AUSWTIME"></out>
<out type="push" extdata="UKTIME"></out>
<out type="push" extdata="ESTTIME"></out>
<out type="push" extdata="CSTTIME"></out>
<out type="push" extdata="MSTTIME"></out>
<out type="push" extdata="PSTTIME"></out>
<out type="push" extdata="timestring"></out>
</command>
</config>



Back to top Go down
http://maxtech.youneed.us
 
World Clock : By LightSideJedi
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Naturalizer Around the World Contest *usa only*
» General Tours World Travel Photo Contest *usa only*
» WORLD SERIES TICKETS GIVEAWAY *Canada and usa only*
» The World at War - The Desert North Africa (1973) DVDRip x264
» Portuguese pool is among most beautiful in world

Permissions in this forum:You cannot reply to topics in this forum
MaxTech ::  The World Of WinMX Chat :: Metis Working Scripts Centre-
Jump to: