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 November 21, 2024, 05:36:43 pm
*
gfx*gfx
gfx
WinMX World :: Forum  |  Metis Scripts and Help  |  Metis Script Help  |  need a little help with this
gfx
gfxgfx
 

Author Topic: need a little help with this  (Read 2227 times)

0 Members and 2 Guests are viewing this topic.

])e]/[o][

  • Guest
need a little help with this
« on: December 02, 2006, 03:18:07 pm »
I have a script i want to use in our room that shows how long the room has been open for and can't get the day to show correctly.  I have entered all info right for the opening date.Everything works except the correct day. Thanks for your help in advance  :D

Code: [Select]
<command type="script">
<in>!uptime</in>
<out type="push" extdata="AWAYSECOND0">00</out>
<out type="push" extdata="AWAYMINUTE0">00</out>
<out type="push" extdata="AWAYHOUR0">18</out>
<out type="push" extdata="AWAYDAYDATE0">9</out>
<out type="push" extdata="AWAYMONTH10">3</out>
<out type="push" extdata="AWAYYEAR0">2005</out>

<out type="push" extdata="AWAYSECONDlength0"><operator type="strlen" lvalue="$AWAYSECOND0$"/></out>
<out type="push" extdata="AWAYSECOND0" condition="==" lvalue="$AWAYSECONDlength0$" rvalue="1">0$AWAYSECOND0$</out>
<out type="push" extdata="AWAYMINUTElength0"><operator type="strlen" lvalue="$AWAYMINUTE0$"/></out>
<out type="push" extdata="AWAYMINUTE0" condition="==" lvalue="$AWAYMINUTElength0$" rvalue="1">0$AWAYMINUTE0$</out>
<out type="push" extdata="AWAYHOURlength0"><operator type="strlen" lvalue="$AWAYHOUR0$"/></out>
<out type="push" extdata="AWAYHOUR0" condition="==" lvalue="$AWAYHOURlength0$" rvalue="1">0$AWAYHOUR0$</out>

<out type="push" extdata="AWAYMONTH0" condition="==" lvalue="$AWAYMONTH10$" rvalue="1">January</out>
<out type="push" extdata="AWAYMONTH0" condition="==" lvalue="$AWAYMONTH10$" rvalue="2">February</out>
<out type="push" extdata="AWAYMONTH0" condition="==" lvalue="$AWAYMONTH10$" rvalue="3">March</out>
<out type="push" extdata="AWAYMONTH0" condition="==" lvalue="$AWAYMONTH10$" rvalue="4">April</out>
<out type="push" extdata="AWAYMONTH0" condition="==" lvalue="$AWAYMONTH10$" rvalue="5">May</out>
<out type="push" extdata="AWAYMONTH0" condition="==" lvalue="$AWAYMONTH10$" rvalue="6">June</out>
<out type="push" extdata="AWAYMONTH0" condition="==" lvalue="$AWAYMONTH10$" rvalue="7">July</out>
<out type="push" extdata="AWAYMONTH0" condition="==" lvalue="$AWAYMONTH10$" rvalue="8">August</out>
<out type="push" extdata="AWAYMONTH0" condition="==" lvalue="$AWAYMONTH10$" rvalue="9">September</out>
<out type="push" extdata="AWAYMONTH0" condition="==" lvalue="$AWAYMONTH10$" rvalue="10">October</out>
<out type="push" extdata="AWAYMONTH0" condition="==" lvalue="$AWAYMONTH10$" rvalue="11">November</out>
<out type="push" extdata="AWAYMONTH0" condition="==" lvalue="$AWAYMONTH10$" rvalue="12">December</out>

<out type="push" extdata="AWAYDATE10">$AWAYDAYDATE0$ : $AWAYMONTH0$ : $AWAYYEAR0$</out>
<out type="push" extdata="AWAYTIME10">$AWAYHOUR0$ : $AWAYMINUTE0$ : $AWAYSECOND0$</out>
<out type="push" extdata="SET0">1</out>
<out>#c13#Movies and Entertainment Has Been open since - #c15#$AWAYDAYDATE0$ #c21#: #c15#$AWAYMONTH0$ #c21#: #c15#$AWAYYEAR0$ #c21#@ #c15#$AWAYHOUR0$ #c21#: #c15#$AWAYMINUTE0$ #c21#: #c15#$AWAYSECOND0$ #c21#-</out>
</command>

<OnEnter type="script" condition="==" lvalue="$SET0$" rvalue="1">
<out type="pop" extdata="SAMEMONTH0"></out>
<out type="pop" extdata="SAMEDAY0"></out>
<out type="pop" extdata="GONEDAY0"></out>
<out type="pop" extdata="GONEINHOURS0"></out>
<out type="pop" extdata="GONEINMINS0"></out>
<out type="pop" extdata="GONEINSECS0"></out>
<out type="pop" extdata="AWAYTIMEMINS0"></out>
<out type="pop" extdata="AWAYTIMESECS20"></out>
<out type="pop" extdata="AWAYTIMESECS0"></out>
<out type="pop" extdata="AWAYTIMEHOURS0"></out>
<out type="pop" extdata="AWAYTIMEMINS20"></out>
<out type="pop" extdata="AWAYTIMEDAYS0"></out>
<out type="pop" extdata="AWAYTIMEHOURS20"></out>

<out type="push" extdata="SAMEDAY0" condition="==" lvalue="$AWAYDAYDATE0$" rvalue="%DAY%">1</out>

<out type="push" extdata="GONEDAY0" condition="!=" lvalue="$SAMEDAY0$" rvalue="1"><operator type="-" lvalue="%DAY%" rvalue="$AWAYDAY0$"/></out>
<out type="push" extdata="GONEINHOURS0" condition=">" lvalue="$GONEDAY0$" rvalue="0"><operator type="*" lvalue="$GONEDAY0$" rvalue="24"/></out>
<out type="push" extdata="GONEINHOURS0"><operator type="+" lvalue="$GONEINHOURS0$" rvalue="%HOUR%"/></out>
<out type="push" extdata="GONEINHOURS0"><operator type="-" lvalue="$GONEINHOURS0$" rvalue="$AWAYHOUR0$"/></out>
<out type="push" extdata="GONEINMINS0" condition=">" lvalue="$GONEINHOURS0$" rvalue="0"><operator type="*" lvalue="$GONEINHOURS0$" rvalue="60"/></out>
<out type="push" extdata="GONEINMINS0"><operator type="+" lvalue="$GONEINMINS0$" rvalue="%MINUTE%"/></out>
<out type="push" extdata="GONEINMINS0"><operator type="-" lvalue="$GONEINMINS0$" rvalue="$AWAYMINUTE0$"/></out>
<out type="push" extdata="GONEINSECS0" condition=">" lvalue="$GONEINMINS0$" rvalue="0"><operator type="*" lvalue="$GONEINMINS0$" rvalue="60"/></out>
<out type="push" extdata="GONEINSECS0"><operator type="+" lvalue="$GONEINSECS0$" rvalue="%SECOND%"/></out>
<out type="push" extdata="GONEINSECS0"><operator type="-" lvalue="$GONEINSECS0$" rvalue="$AWAYSECOND0$"/></out>

<out type="push" extdata="AWAYTIMEMINS0"><operator type="/" lvalue="$GONEINSECS0$" rvalue="60"/></out>
<out type="push" extdata="AWAYTIMESECS20"><operator type="*" lvalue="$AWAYTIMEMINS0$" rvalue="60"/></out>
<out type="push" extdata="AWAYTIMESECS0"><operator type="-" lvalue="$GONEINSECS0$" rvalue="$AWAYTIMESECS20$"/></out>
<out type="push" extdata="AWAYTIMEHOURS0"><operator type="/" lvalue="$AWAYTIMEMINS0$" rvalue="60"/></out>
<out type="push" extdata="AWAYTIMEMINS20"><operator type="*" lvalue="$AWAYTIMEHOURS0$" rvalue="60"/></out>
<out type="push" extdata="AWAYTIMEMINS0"><operator type="-" lvalue="$AWAYTIMEMINS0$" rvalue="$AWAYTIMEMINS20$"/></out>
<out type="push" extdata="AWAYTIMEDAYS0"><operator type="/" lvalue="$AWAYTIMEHOURS0$" rvalue="24"/></out>
<out type="push" extdata="AWAYTIMEHOURS20"><operator type="*" lvalue="$AWAYTIMEDAYS0$" rvalue="24"/></out>
<out type="push" extdata="AWAYTIMEHOURS0"><operator type="-" lvalue="$AWAYTIMEHOURS0$" rvalue="$AWAYTIMEHOURS20$"/></out>

<out type="push" extdata="AWAYTIMEDAYS0" condition="<" lvalue="$AWAYTIMEDAYS0$" rvalue="10">0$AWAYTIMEDAYS0$</out>
<out type="push" extdata="AWAYTIMEHOURS0" condition="<" lvalue="$AWAYTIMEHOURS0$" rvalue="10">0$AWAYTIMEHOURS0$</out>
<out type="push" extdata="AWAYTIMEMINS0" condition="<" lvalue="$AWAYTIMEMINS0$" rvalue="10">0$AWAYTIMEMINS0$</out>
<out type="push" extdata="AWAYTIMESECS0" condition="<" lvalue="$AWAYTIMESECS0$" rvalue="10">0$AWAYTIMESECS0$</out>
 
<out type="push" extdata="AWAYTIMEDAYS0" condition=">" lvalue="$AWAYTIMEDAYS0$" rvalue="01">$AWAYTIMEDAYS0$</out>
<out type="push" extdata="AWAYTIMEDAYS0" condition="==" lvalue="$AWAYTIMEDAYS0$" rvalue="01">$AWAYTIMEDAYS0$</out>
<out type="push" extdata="AWAYTIMEDAYS0" condition="==" lvalue="$AWAYTIMEDAYS0$" rvalue="00"></out>
<out type="push" extdata="AWAYTIMEHOURS0" condition=">" lvalue="$AWAYTIMEHOURS0$" rvalue="01">$AWAYTIMEHOURS0$</out>
<out type="push" extdata="AWAYTIMEHOURS0" condition="==" lvalue="$AWAYTIMEHOURS0$" rvalue="01">$AWAYTIMEHOURS0$</out>
<out type="push" extdata="AWAYTIMEHOURS0" condition="==" lvalue="$AWAYTIMEHOURS0$" rvalue="00">00</out>
<out type="push" extdata="AWAYTIMEMINS0" condition=">" lvalue="$AWAYTIMEMINS0$" rvalue="01">$AWAYTIMEMINS0$</out>
<out type="push" extdata="AWAYTIMEMINS0" condition="==" lvalue="$AWAYTIMEMINS0$" rvalue="01">$AWAYTIMEMINS0$</out>
<out type="push" extdata="AWAYTIMEMINS0" condition="==" lvalue="$AWAYTIMEMINS0$" rvalue="00">00</out>
<out type="push" extdata="AWAYTIMESECS0" condition=">" lvalue="$AWAYTIMESECS0$" rvalue="01">$AWAYTIMESECS0$</out>
<out type="push" extdata="AWAYTIMESECS0" condition="==" lvalue="$AWAYTIMESECS0$" rvalue="01">$AWAYTIMESECS0$</out>
<out type="push" extdata="AWAYTIMESECS0" condition="==" lvalue="$AWAYTIMESECS0$" rvalue="00">00</out>

<out type="push" extdata="localtime21">%MONTH%</out>
<out type="push" extdata="AWAYMONTH10" condition="==" lvalue="$localtime21$" rvalue="January">1</out>
<out type="push" extdata="AWAYMONTH10" condition="==" lvalue="$localtime21$" rvalue="February">2</out>
<out type="push" extdata="AWAYMONTH10" condition="==" lvalue="$localtime21$" rvalue="March">3</out>
<out type="push" extdata="AWAYMONTH10" condition="==" lvalue="$localtime21$" rvalue="April">4</out>
<out type="push" extdata="AWAYMONTH10" condition="==" lvalue="$localtime21$" rvalue="May">5</out>
<out type="push" extdata="AWAYMONTH10" condition="==" lvalue="$localtime21$" rvalue="June">6</out>
<out type="push" extdata="AWAYMONTH10" condition="==" lvalue="$localtime21$" rvalue="July">7</out>
<out type="push" extdata="AWAYMONTH10" condition="==" lvalue="$localtime21$" rvalue="August">8</out>
<out type="push" extdata="AWAYMONTH10" condition="==" lvalue="$localtime21$" rvalue="September">9</out>
<out type="push" extdata="AWAYMONTH10" condition="==" lvalue="$localtime21$" rvalue="October">10</out>
<out type="push" extdata="AWAYMONTH10" condition="==" lvalue="$localtime21$" rvalue="November">11</out>
<out type="push" extdata="AWAYMONTH10" condition="==" lvalue="$localtime21$" rvalue="December">12</out>
<out type="push" extdata="shortlocaltime21"><operator type="strleft" rvalue="2" lvalue="$localtime21$"/></out>
<out type="push" extdata="localminutes"><operator type="strrem" rvalue="$shortlocaltime21$" lvalue="$localtime21$"/></out>
<out type="push" extdata="MINUSMONTHS"><operator type="-" lvalue="$shortlocaltime21$" rvalue="$AWAYMONTH10$"/></out>
<out delay="1000">#c13#Movies and Entertainment has been open for: #c2# 1 #c21#Year #c2#$MINUSMONTHS$ #c21#Months #c2#$AWAYTIMEDAYS0$ #c21#Days #c2#$AWAYTIMEHOURS0$ #c21#Hours #c2#$AWAYTIMEMINS0$ #c21#Mins #c2#$AWAYTIMESECS0$ #c21#Secs</out>
</OnEnter>



Edit by Omega (Put in code tags)

Offline Stevi

  • #1 DJ
  • MX Hosts
  • *****
  • Ooops! I blew up the commercials!
    • WinMX Radio
Re: need a little help with this
« Reply #1 on: December 02, 2006, 03:35:27 pm »
There seems to be a little difference in the numbers in your script compared to the one posted here. You can compare and change anything in yours that is different from the other one.

Offline Max™

  • MX Hosts
  • *****
  • If Im Not Back later... Wait Longer
    • Maxtech
Re: need a little help with this
« Reply #2 on: December 02, 2006, 04:48:32 pm »
Hi Demon, and thanx Omega for linking to the 1 i posted, it does work very well, all u need to do is put the date u opened atb the top and your welcome at the botom and its ready to go



Try Connecting, the attacks may let you  https://patch.winmxconex.com/

])e]/[o][

  • Guest
Re: need a little help with this
« Reply #3 on: December 02, 2006, 04:55:07 pm »
I did put all info for room start date in at the top. but the day of the month always counts from the beginning of the month not from the 9th like i have in it now.  everything else works good the month  hours min and sec jut the day will only show from the beginning of the month not the 9th

Offline Max™

  • MX Hosts
  • *****
  • If Im Not Back later... Wait Longer
    • Maxtech
Re: need a little help with this
« Reply #4 on: December 02, 2006, 05:03:10 pm »
Hi Demon, i looked at your script, the only idea you can try is add another digit to the day so it reads 09
Code: [Select]
<out type="push" extdata="AWAYDAYDATE0">09</out> see if this makes a diff because there are upto 31 days in a month, just an idea



Try Connecting, the attacks may let you  https://patch.winmxconex.com/

])e]/[o][

  • Guest
Re: need a little help with this
« Reply #5 on: December 02, 2006, 05:13:17 pm »
I tried that but thanks MAX.  Can't seem to figure it out. everything but the day is correct.  Well hopefully someone will figure it out.  Thanks for your help Max and omega  is a cool little script.

Offline Max™

  • MX Hosts
  • *****
  • If Im Not Back later... Wait Longer
    • Maxtech
Re: need a little help with this
« Reply #6 on: December 04, 2006, 04:06:38 pm »
i have gone back over that script and i cant find anything wrong or out of place, sorry but im confused too.



Try Connecting, the attacks may let you  https://patch.winmxconex.com/

WinMX World :: Forum  |  Metis Scripts and Help  |  Metis Script Help  |  need a little help with this
 

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