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, 12:41:19 pm
*
gfx*gfx
gfx
WinMX World :: Forum  |  Metis Scripts and Help  |  Metis Script Help  |  Help for 2 scripts
gfx
gfxgfx
 

Author Topic: Help for 2 scripts  (Read 1433 times)

0 Members and 1 Guest are viewing this topic.

Offline Camlan04

  • Forum Member
  • I love WinMX!
Help for 2 scripts
« on: January 04, 2022, 04:28:06 pm »
I have 2 scripts that I would love to have working in my channel but I can't get them to work at all. 1 is named Friends. It's a script made by Guru. It allows you to add channels that you support. It allows easy change when the Hash number changes. The other script is Room Channel Stats. I believe it was made by Reef. It allows accurate channel stats in the channel. I have included both scripts here.

Code: [Select]
<config>
<command type="script">
<in>!roomstats</in>
<out type="push" extdata="STATS">1</out>
<out>/hidecmd /stats</out>
</command>
<command mode="thread" type="script" condition="==" lvalue="%USERVAR[STATS]%" rvalue="1">
<in>Channel Name: %PARAM%</in>
<out>/hidecmd /notice #c1#Channel #c1#name#c58#: #c1#%PARAM%</out>
</command>
<command mode="thread" type="script" condition="==" lvalue="%USERVAR[STATS]%" rvalue="1">
<in>Host Uptime: %PARAM%</in>
<out>/hidecmd /notice #c1#Host #c1#Uptime#c58#: #c1#%PARAM%</out>
</command>
<command mode="thread" type="script" condition="==" lvalue="%USERVAR[STATS]%" rvalue="1">
<in>Channel Uptime: %PARAM%</in>
<out>/hidecmd /notice #c1#Channel #c1#Uptime#c58#: #c1#%PARAM%</out>
</command>
<command mode="thread" type="script" condition="==" lvalue="%USERVAR[STATS]%" rvalue="1">
<in>Current Users: %PARAM%</in>
<out>/hidecmd /notice #c1#Current #c1#Users#c58#: #c1#%PARAM%</out>
</command>
<command mode="thread" type="script" condition="==" lvalue="%USERVAR[STATS]%" rvalue="1">
<in>Total Joins: %PARAM%</in>
<out>/hidecmd /notice #c1#Total #c1#Joins#c58#: #c1#%PARAM%</out>
</command>
<command mode="thread" type="script" condition="==" lvalue="%USERVAR[STATS]%" rvalue="1">
<in>WCS Version: %PARAM%</in>
<out>/hidecmd /notice #c1#WCS #c1#Version#c58#: #c1#%PARAM%</out>
<out type="self">!advanced</out>
</command>
<command type="script" users="_BOT_SELF_TRIGGER_" mode="thread">
<in>!advanced*</in>
<out>/hidecmd /notice #c1#Time#c58#: #c1#%TIME% #c58#[#c1#-#c58#5#c1#GMT#c58#]</out>
<out>/hidecmd /notice #c1#Date#c58#: #c1#%DATE% #c58#[#c1#U#c58#.#c1#S#c58#]</out>
</command>
</config>



Code: [Select]
<OnEnter type="script">
<out type="push" extdata="FRIENDPATH">D:\Program Files\RoboMX\Plugins\</out>
<out type="push" extdata="MYIP">0.0.0.0</out>
<out type="push" extdata="LOOPBACK">127.0.0.1</out>
</OnEnter>

<command type="script">
<in>!friends</in>
<out>/hidecmd /privnotice %NAME% #c9#====================================================</out>
<out>/hidecmd /privnotice %NAME% #c9#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#c51#Movie Database Friends</out>
<out>/hidecmd /privnotice %NAME% #c9#====================================================</out>
<out type="push" extdata="FRIENDLINE">0</out>
<out type="push" extdata="FRIENDLINE"><operator type="++" lvalue="%USERVAR[FRIENDLINE]%"/></out>
<out type="push" extdata="FRIENDROOM"><operator type="readfile" nvalue="%USERVAR[FRIENDPATH]%Friends.ini" lvalue="l" rvalue="%USERVAR[FRIENDLINE]%"/></out>
<out type="push" extdata="FRIENDNAME">%USERVAR[FRIENDROOM]%</out>
<out type="push" extdata="FRIENDNAMELENGTH"><operator type="strlen" lvalue="%USERVAR[FRIENDNAME]%"/></out>
<out type="push" extdata="FRIENDNAMELENGTH"><operator type="-" lvalue="%USERVAR[FRIENDNAMELENGTH]%" rvalue="13"/></out>
<out type="push" extdata="FRIENDNAME"><operator type="strleft" lvalue="%USERVAR[FRIENDNAME]%" rvalue="%USERVAR[FRIENDNAMELENGTH]%"/></out>
<out type="push" extdata="FRIENDLINELENGTH"><operator type="strlen" lvalue="%USERVAR[FRIENDLINE]%"/></out>
<out type="push" extdata="FRIENDTRIGGER" condition="==" lvalue="%USERVAR[FRIENDLINELENGTH]%" rvalue="1">!0%USERVAR[FRIENDLINE]%</out>
<out type="push" extdata="FRIENDTRIGGER" condition="!=" lvalue="%USERVAR[FRIENDLINELENGTH]%" rvalue="1">!%USERVAR[FRIENDLINE]%</out>
<out condition="!=" lvalue="%USERVAR[FRIENDROOM]%" rvalue="">/hidecmd /privnotice %NAME% #c4#%USERVAR[FRIENDTRIGGER]% #c1#= #c62#%USERVAR[FRIENDNAME]%</out>
<out type="goto" extdata="-10" condition="!=" lvalue="%USERVAR[FRIENDROOM]%" rvalue=""/>
<out type="pop" extdata="FRIENDLINE"/>
<out type="pop" extdata="FRIENDROOM"/>
<out type="pop" extdata="FRIENDNAME"/>
<out type="pop" extdata="FRIENDNAMELENGTH"/>
<out type="pop" extdata="FRIENDLINELENGTH"/>
<out type="pop" extdata="FRIENDTRIGGER"/>
</command>

<command type="script" condition="!=" lvalue="%NAME%" rvalue="_BOT_SELF_TRIGGER_">
<in>!%PARAM%</in>
<out type="push" extdata="FRIENDPARAM">%PARAM%</out>
<out type="goto" extdata="23" condition="?" lvalue="%USERVAR[FRIENDPARAM]%" rvalue="_"/>
<out type="push" extdata="NUMBERLENGTH"><operator type="strlen" lvalue="%USERVAR[FRIENDPARAM]%"/></out>
<out type="push" extdata="FRIENDNUMBER">%USERVAR[FRIENDPARAM]%</out>
<out type="pop" extdata="FRIENDPARAM" condition="!=" lvalue="%USERVAR[NUMBERLENGTH]%" rvalue="2"/>
<out type="pop" extdata="NUMBERLENGTH" condition="!=" lvalue="%USERVAR[NUMBERLENGTH]%" rvalue="2"/>
<out type="push" extdata="VALIDNUMBER">FALSE</out>
<out type="push" extdata="VALIDNUMBER" condition="digit" lvalue="%USERVAR[FRIENDNUMBER]%">True</out>
<out type="pop" extdata="VALIDNUMBER" condition="==" lvalue="%USERVAR[VALIDNUMBER]%" rvalue="FALSE"/>
<out type="pop" extdata="FRIENDNUMBER" condition="==" lvalue="%USERVAR[VALIDNUMBER]%" rvalue=""/>
<out type="pop" extdata="FRIENDPARAM" condition="==" lvalue="%USERVAR[VALIDNUMBER]%" rvalue=""/>
<out type="pop" extdata="NUMBERLENGTH" condition="==" lvalue="%USERVAR[VALIDNUMBER]%" rvalue=""/>
<out type="break" condition="==" lvalue="%USERVAR[VALIDNUMBER]%" rvalue=""/>
<out type="break" condition="==" lvalue="%USERVAR[NUMBERLENGTH]%" rvalue=""/>
<out type="push" extdata="FRIENDNAME"><operator type="readfile" nvalue="%USERVAR[FRIENDPATH]%Friends.ini" lvalue="l" rvalue="%USERVAR[FRIENDPARAM]%"/></out>
<out type="break" condition="==" lvalue="%USERVAR[FRIENDNAME]%" rvalue=""/>
<out>/hidecmd /privnotice %NAME% #c2#%USERVAR[FRIENDNAME]%</out>
<out>/hidecmd /privnotice %NAME% #c62#To copy type #c1#CTRL#c0# + #c1#C#c0#.</out>
<out type="pop" extdata="FRIENDNAME"/>
<out type="pop" extdata="FRIENDNUMBER"/>
<out type="pop" extdata="NUMBERLENGTH"/>
<out type="pop" extdata="FRIENDPARAM"/>
<out type="pop" extdata="VALIDNUMBER"/>
<out type="break"/>
<out type="break" condition="!?" lvalue="%USERVAR[MYIP]%|%USERVAR[LOOPBACK]%" rvalue="%IP%"/>
<out type="push" extdata="FIRSTSPACE"><operator type="strfind" lvalue="%USERVAR[FRIENDPARAM]%" rvalue=" "/></out>
<out type="push" extdata="FRIENDNUMBER"><operator type="strleft" lvalue="%USERVAR[FRIENDPARAM]%" rvalue="%USERVAR[FIRSTSPACE]%"/></out>
<out type="pop" extdata="FRIENDPARAM" condition="==" lvalue="%USERVAR[FRIENDNUMBER]%" rvalue="00"/>
<out type="pop" extdata="FIRSTSPACE" condition="==" lvalue="%USERVAR[FRIENDNUMBER]%" rvalue="00"/>
<out type="pop" extdata="FRIENDNUMBER" condition="==" lvalue="%USERVAR[FRIENDNUMBER]%" rvalue="00"/>
<out type="break" condition="==" lvalue="%USERVAR[FRIENDNUMBER]%" rvalue=""/>
<out type="push" extdata="NUMBERLENGTH"><operator type="strlen" lvalue="%USERVAR[FRIENDNUMBER]%"/></out>
<out type="break" condition=">" lvalue="%USERVAR[NUMBERLENGTH]%" rvalue="2"/>
<out type="push" extdata="VALIDNUMBER"></out>
<out type="push" extdata="VALIDNUMBER" condition="digit" lvalue="%USERVAR[FRIENDNUMBER]%">True</out>
<out type="pop" extdata="FIRSTSPACE" condition="==" lvalue="%USERVAR[VALIDNUMBER]%" rvalue=""/>
<out type="pop" extdata="FRIENDNUMBER" condition="==" lvalue="%USERVAR[VALIDNUMBER]%" rvalue=""/>
<out type="pop" extdata="FRIENDPARAM" condition="==" lvalue="%USERVAR[VALIDNUMBER]%" rvalue=""/>
<out type="pop" extdata="NUMBERLENGTH" condition="==" lvalue="%USERVAR[VALIDNUMBER]%" rvalue=""/>
<out type="pop" extdata="VALIDNUMBER" condition="==" lvalue="%USERVAR[VALIDNUMBER]%" rvalue=""/>
<out type="break" condition="==" lvalue="%USERVAR[VALIDNUMBER]%" rvalue=""/>
<out type="push" extdata="ROOMNAME"><operator type="strright" lvalue="%USERVAR[FRIENDPARAM]%" rvalue="3"/></out>
<out type="push" extdata="UNDERSCORE"><operator type="strrfind" lvalue="%USERVAR[FRIENDPARAM]%" rvalue="_"/></out>
<out type="push" extdata="ROOMHASH"><operator type="strright" lvalue="%USERVAR[FRIENDPARAM]%" rvalue="%USERVAR[UNDERSCORE]%"/></out>
<out type="push" extdata="ROOMHASHLENGTH"><operator type="strlen" lvalue="%USERVAR[ROOMHASH]%"/></out>
<out type="break" condition="!=" lvalue="%USERVAR[ROOMHASHLENGTH]%" rvalue="13"/>
<out type="push" extdata="FRIENDLIST"><operator type="readfile" nvalue="%USERVAR[FRIENDPATH]%Friends.ini" lvalue="c" rvalue="-1"/></out>
<out type="file" mode="x" extdata="%USERVAR[FRIENDPATH]%Friends.temp">%USERVAR[FRIENDLIST]%</out>
<out condition="?" lvalue="%USERVAR[FRIENDLIST]%" rvalue="%USERVAR[ROOMNAME]%">/hidecmd /notice #c51#Sorry, #c4#%USERVAR[ROOMNAME]%#c0# is already listed.</out>
<out type="break" condition="?" lvalue="%USERVAR[FRIENDLIST]%" rvalue="%USERVAR[ROOMNAME]%"/>
<out type="push" extdata="NEWLIST"></out>
<out type="push" extdata="LINENUMBER">0</out>
<out type="push" extdata="LINENUMBER"><operator type="++" lvalue="%USERVAR[LINENUMBER]%"/></out>
<out type="push" extdata="NUMBERLENGTH"><operator type="strlen" lvalue="%USERVAR[LINENUMBER]%"/></out>
<out type="push" extdata="LINENUMBERCOMPARE" condition="==" lvalue="%USERVAR[NUMBERLENGTH]%" rvalue="1"><operator type="strcat" lvalue="0" rvalue="%USERVAR[LINENUMBER]%"/></out>
<out type="push" extdata="TEMPLINE"><operator type="readfile" nvalue="%USERVAR[FRIENDPATH]%Friends.temp" lvalue="l" rvalue="%USERVAR[LINENUMBER]%"/></out>
<out type="goto" extdata="5" condition="==" lvalue="%USERVAR[TEMPLINE]%" rvalue=""/>
<out type="push" extdata="TEMPLINE" condition="==" lvalue="%USERVAR[FRIENDNUMBER]%" rvalue="%USERVAR[LINENUMBERCOMPARE]%">%USERVAR[ROOMNAME]%</out>
<out type="push" extdata="NEWLIST" condition="!=" lvalue="%USERVAR[TEMPLINE]%" rvalue=""><operator type="strcat" lvalue="%USERVAR[NEWLIST]%" rvalue="%USERVAR[TEMPLINE]%"/></out>
<out type="file" mode="x" extdata="%USERVAR[FRIENDPATH]%Friends.ini" condition="==" lvalue="%USERVAR[LINENUMBERCOMPARE]%" rvalue="01">%USERVAR[TEMPLINE]%\n</out>
<out type="file" mode="y" extdata="%USERVAR[FRIENDPATH]%Friends.ini" condition="!=" lvalue="%USERVAR[LINENUMBERCOMPARE]%" rvalue="01">%USERVAR[TEMPLINE]%\n</out>
<out type="goto" extdata="-9" condition="!=" lvalue="%USERVAR[TEMPLINE]%" rvalue=""/>
<out>/hidecmd /notice #c51#You have changed #c1#%USERVAR[FRIENDNUMBER]%#c0# to: #c4#%USERVAR[ROOMNAME]%</out>
<out type="pop" extdata="FIRSTSPACE"/>
<out type="pop" extdata="FRIENDLIST"/>
<out type="pop" extdata="FRIENDNUMBER"/>
<out type="pop" extdata="FRIENDPARAM"/>
<out type="pop" extdata="LINENUMBER"/>
<out type="pop" extdata="LINENUMBERCOMPARE"/>
<out type="pop" extdata="NEWLIST"/>
<out type="pop" extdata="NUMBERLENGTH"/>
<out type="pop" extdata="ROOMHASH"/>
<out type="pop" extdata="ROOMHASHLENGTH"/>
<out type="pop" extdata="ROOMNAME"/>
<out type="pop" extdata="TEMPLINE"/>
<out type="pop" extdata="UNDERSCORE"/>
<out type="pop" extdata="VALIDNUMBER"/>
</command>

<command type="script" condition="?" lvalue="%USERVAR[MYIP]%|%USERVAR[LOOPBACK]%" rvalue="%IP%">
<in>!add %PARAM%</in>
<out type="push" extdata="TEMPNAME">%PARAM%</out>
<out type="push" extdata="UNDERSCORE"><operator type="strrfind" lvalue="%USERVAR[TEMPNAME]%" rvalue="_"/></out>
<out type="push" extdata="ROOMHASH"><operator type="strright" lvalue="%USERVAR[TEMPNAME]%" rvalue="%USERVAR[UNDERSCORE]%"/></out>
<out type="push" extdata="ROOMHASHLENGTH"><operator type="strlen" lvalue="%USERVAR[ROOMHASH]%"/></out>
<out type="break" condition="!=" lvalue="%USERVAR[ROOMHASHLENGTH]%" rvalue="13"/>
<out type="file" mode="y" extdata="%USERVAR[FRIENDPATH]%Friends.ini">%USERVAR[TEMPNAME]%\n</out>
<out>/hidecmd /notice #c51#You have added #c4#%USERVAR[TEMPNAME]%#c0# to the list of friends.</out>
</command>

<command type="script" condition="?" lvalue="%USERVAR[MYIP]%|%USERVAR[LOOPBACK]%" rvalue="%IP%">
<in>!remove %PARAM%</in>
<out type="push" extdata="VALIDNUMBER">FALSE</out>
<out type="push" extdata="VALIDNUMBER" condition="digit" lvalue="%USERVAR[FRIENDNUMBER]%">True</out>
<out type="break" condition="==" lvalue="%USERVAR[VALIDNUMBER]%" rvalue="FALSE"/>
<out type="break" condition="<" lvalue="%PARAM%" rvalue="1"/>
<out type="break" condition=">" lvalue="%PARAM%" rvalue="99"/>
<out type="push" extdata="FRIENDLIST"><operator type="readfile" nvalue="%USERVAR[FRIENDPATH]%Friends.ini" lvalue="c" rvalue="-1"/></out>
<out type="file" mode="x" extdata="%USERVAR[FRIENDPATH]%Friends.temp">%USERVAR[FRIENDLIST]%</out>
<out type="push" extdata="LINENUMBER">0</out>
<out type="push" extdata="WRITESTAGE">1</out>
<out type="push" extdata="LINENUMBER"><operator type="++" lvalue="%USERVAR[LINENUMBER]%"/></out>
<out type="push" extdata="NUMBERLENGTH"><operator type="strlen" lvalue="%USERVAR[LINENUMBER]%"/></out>
<out type="push" extdata="LINENUMBERCOMPARE" condition="==" lvalue="%USERVAR[NUMBERLENGTH]%" rvalue="1"><operator type="strcat" lvalue="0" rvalue="%USERVAR[LINENUMBER]%"/></out>
<out type="push" extdata="TEMPLINE"><operator type="readfile" nvalue="%USERVAR[FRIENDPATH]%Friends.temp" lvalue="l" rvalue="%USERVAR[LINENUMBER]%"/></out>
<out type="goto" extdata="6" condition="==" lvalue="%USERVAR[TEMPLINE]%" rvalue=""/>
<out type="goto" extdata="-5" condition="==" lvalue="%USERVAR[LINENUMBERCOMPARE]%" rvalue="%PARAM%"/>
<out type="push" extdata="WRITESTAGE" condition="==" lvalue="%USERVAR[WRITESTAGE]%" rvalue="1">FIRST</out>
<out type="file" mode="x" extdata="%USERVAR[FRIENDPATH]%Friends.ini" condition="==" lvalue="%USERVAR[WRITESTAGE]%" rvalue="FIRST">%USERVAR[TEMPLINE]%\n</out>
<out type="file" mode="y" extdata="%USERVAR[FRIENDPATH]%Friends.ini" condition="==" lvalue="%USERVAR[WRITESTAGE]%" rvalue="SECOND">%USERVAR[TEMPLINE]%\n</out>
<out type="push" extdata="WRITESTAGE" condition="==" lvalue="%USERVAR[WRITESTAGE]%" rvalue="FIRST">SECOND</out>
<out type="goto" extdata="-10" condition="!=" lvalue="%USERVAR[TEMPLINE]%" rvalue=""/>
<out>/hidecmd /notice #c51#You have removed #c1#%PARAM%#c0# from the list.</out>
</command>

</config>

Offline reef

  • WMW Volunteer
  • *****
  • ***
Re: Help for 2 scripts
« Reply #1 on: January 06, 2022, 10:31:45 am »
Edited post: added code tags to scripts

https://forum.winmxworld.com/index.php?topic=5909.0

That is the original post for the room stats script, it was not done by me as you can see looking at the post in that link  :P

I'm up to me ears in snow at the moment with no time to do little else but shovel snow lol... will take a look IF i get some time, that could be awhile. I'm sure you will figure it out long b4 then, or maybe somebody else will spot yer post and have some ideas on it  :)

Offline Camlan04

  • Forum Member
  • I love WinMX!
Re: Help for 2 scripts
« Reply #2 on: January 06, 2022, 03:58:23 pm »
Hahaha have fun with the snow Reef. I've been playing with it. but it's just not working right. And you know me and scripts.. well we don't exactly get along haha

Offline Camlan04

  • Forum Member
  • I love WinMX!
Re: Help for 2 scripts
« Reply #3 on: January 09, 2022, 03:16:31 am »
Well I fixed one. The Channel stats. Got that working. The other one not so much haha

WinMX World :: Forum  |  Metis Scripts and Help  |  Metis Script Help  |  Help for 2 scripts
 

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