gfxgfx
 
Please login or register.

Login with username, password and session length
 
gfx gfx
gfx
76793 Posts in 13502 Topics by 1651 Members - Latest Member: Arnold99 October 14, 2024, 08:37:48 pm
*
gfx*gfx
gfx
WinMX World :: Forum  |  Metis Scripts and Help  |  Metis Script Help  |  metis script
gfx
gfxgfx
 

Author Topic: metis script  (Read 4682 times)

0 Members and 1 Guest are viewing this topic.

Offline swaggie

  • Forum Member
metis script
« on: November 09, 2008, 09:35:49 pm »
HIya I was wondering if anyone could help me with a metis script to countdown days plz,
example 30 day count down   thanks

Offline F£¥è®

  • Forum Member
Re: metis script
« Reply #1 on: November 11, 2008, 06:51:44 pm »
This is a very simple coutdown script,I suggest that you run it in its own bot.
To start the timer = !st%PARAM%  where %PARAM% is the number of days to countdown eg.!st30
Alter the text output lines to whatever you want to show.

hope this is what you wanted,
F£¥è®

Code: [Select]
<config>
<command type = "script">
<in>!st%PARAM%</in>
<out type = "push" extdata = "minute">0</out>
<out type = "push" extdata = "hour">0</out>
<out type = "push" extdata = "daystocount">%PARAM%</out>
<out type = "push" extdata = "wkdy">%DAY-OF-WEEK%</out>
<out type = "push" extdata = "wkday" condition = "1" lvalue = "$wkdy$" rvalue = "0">Sunday</out>
<out type = "push" extdata = "wkday" condition = "1" lvalue = "$wkdy$" rvalue = "1">Monday</out>
<out type = "push" extdata = "wkday" condition = "1" lvalue = "$wkdy$" rvalue = "2">Tueday</out>
<out type = "push" extdata = "wkday" condition = "1" lvalue = "$wkdy$" rvalue = "3">Wednesday</out>
<out type = "push" extdata = "wkday" condition = "1" lvalue = "$wkdy$" rvalue = "4">Thursday</out>
<out type = "push" extdata = "wkday" condition = "1" lvalue = "$wkdy$" rvalue = "5">Friday</out>
<out type = "push" extdata = "wkday" condition = "1" lvalue = "$wkdy$" rvalue = "6">Saturday</out>
<out>#c16#It is now #c8#$wkday$ #c7#%LONGDATE% #c16#the #c7#$daystocount$ #c16#day counter has begun</out>
</command>

<OnTimer type = "script" interval = "60" condition = "3" lvalue = "$daystocount$" rvalue = "-1">
<out type = "push" extdata = "minute"><operator type = "+" lvalue = "$minute$" rvalue = "1"/></out>
<out type = "goto" extdata = "2" condition = "1" lvalue = "$minute$" rvalue = "60"/>
<out type = "break" condition = "0" lvalue = "$minute$" rvalue = "60"/>
<out type = "push" extdata = "hour"><operator type = "+" lvalue = "$hour$" rvalue = "1"/></out>
<out type = "push" extdata = "minute">0</out>
<out type = "self" condition = "1" lvalue = "$hour$" rvalue = "24">!displayer</out>
</OnTimer>

<command type = "script">
<in>!displayer</in>
<out type = "push" extdata = "daystocount"><operator type = "-" lvalue = "$daystocount$" rvalue = "1"/></out>
<out condition = "1" lvalue = "$daystocount$" rvalue = "0">#c16#It is now #c8#$wkday$ #c7#%LONGDATE% #c16#The day has finally arrived</out>
<out type = "break" condition = "1" lvalue = "$daystocount$" rvalue = "0"/>
<out>#c16#It is now #c8#$wkday$ #c7#%LONGDATE% #c16#there are #c7#$daystocount$ #c16#days left until.........</out>
<out type = "push" extdata = "hour">0</out>
</command>
</config>
OS Microsoft® Windows Vista™ Home Premium, Processor Intel(R) Core(TM)2 Quad CPU  Q8200  @ 2.33GHz, 2331 Mhz, 4 Core(s), 4 Logical Processor(s), Installed Physical Memory (RAM) 6.00 GB

Offline swaggie

  • Forum Member
Re: metis script
« Reply #2 on: November 13, 2008, 12:39:52 am »
Thanks F£¥è® thats going to work for me i realy appreciate it   thanks again Swaggie

WinMX World :: Forum  |  Metis Scripts and Help  |  Metis Script Help  |  metis script
 

gfxgfx
gfx
©2005-2024 WinMXWorld.com. All Rights Reserved.
SMF 2.0.19 | SMF © 2021, Simple Machines | Terms and Policies
Page created in 0.012 seconds with 23 queries.
Helios Multi © Bloc
gfx
Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!