WinMX World :: Forum

Metis Scripts and Help => Metis Script Help => Topic started by: sharing sarah on May 08, 2006, 03:54:49 pm

Title: script help
Post by: sharing sarah on May 08, 2006, 03:54:49 pm
Hi, We use the below script in our metis bot, in the room I Co-Host. Is there away to make line 6 an opmsg for a cleaner screen image to users in the room? Each time it resets it post to chat box (Starting script. Interval 1200 seconds.) I dont know programming but have played with it and cant get it. Thank You

//if no one talks

<command type="script" mode="thread" condition="0" lvalue="1" rvalue="$sil scr$">
<in>!run sil scri</in>
<out type="push" extdata="sil scr">1</out>
//exchange the 20 for the amount of minuites you wish to leave as idle time
<out type="push" extdata="simp mult"><operator type="*" lvalue="20" rvalue="60"/></out>
<out condition="-1">Starting script. Interval #c2#$simp mult$#c1# seconds.</out>        // [can this line be made "opmsg"]
<out type="push" extdata="timedown">$simp mult$</out>
<out type="sleep" extdata="1000"condition="-1"> </out>
<out type="goto" extdata="5" condition=">" lvalue="0" rvalue="$timedown$"> </out>
<out type="push" extdata="timedown2">$timedown$</out>
<out type="push" extdata="timedown"><operator type="-" lvalue="$timedown2$" rvalue="1"/></out> 
<out type="goto" extdata="-4" condition="0" lvalue="$timedown$" rvalue="0"> </out>
<out type="goto" extdata="3"> </out>
<out condition="-1">#c8##ERROR -0178</out>
<out type="goto" extdata="3"> </out>
<out>#c13#come on people. if i dont see some mouths blabbing soon im gunna get #c8#lonley!</out>
<out type="goto" extdata="-11"> </out>
<out type="push" extdata="sil scr">0</out>
<out type="break"></out>
</command>

<command type="script" mode="thread" condition="1" lvalue="1" rvalue="$sil scr$">
<in>*</in>
//place idle time in secconds here
<out type="push" extdata="timedown">1200</out>
</command>

RoboMx 2.06 Extreme
Metis 2.70test 6
Title: Re: script help
Post by: sharing sarah on May 08, 2006, 04:02:12 pm
Sorry just realized i forgot to go to bot section to Post :( Will pay better attention next time :)
Title: Re: script help
Post by: nylly444 on May 08, 2006, 05:17:06 pm
Quote
<out condition="-1">Starting script. Interval #c2#$simp mult$#c1# seconds.</out>        // [can this line be made "opmsg"]

errrrmmm - simply changing it to
Code: [Select]
<out condition="-1">/opmsg Starting script. Interval #c2#$simp mult$#c1# seconds.</out> doesn't work?

/me knows barely anything about codes :D
Title: Re: script help
Post by: sharing sarah on May 08, 2006, 06:48:43 pm
Thank You. I was close just couldent get it.  :)
Title: Re: script help
Post by: James420 on May 14, 2006, 06:44:00 pm
It is easy to do, but you can't use color codes in opmsg.
Title: Re: script help
Post by: Røçkåfë££ë® §kåñK on May 15, 2006, 12:19:17 am
Actually james you can, it depends on which server the room is on.

FXServer hosted rooms allow colour codes in opmsg