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, 10:09:35 am
*
gfx*gfx
gfx
WinMX World :: Forum  |  Metis Scripts and Help  |  Other Metis scripts  |  Link Grabber (Fixed)
gfx
gfxgfx
 

Author Topic: Link Grabber (Fixed)  (Read 3691 times)

0 Members and 1 Guest are viewing this topic.

Offline Stevi

  • #1 DJ
  • MX Hosts
  • *****
  • Ooops! I blew up the commercials!
    • WinMX Radio
Link Grabber (Fixed)
« on: January 05, 2010, 01:46:44 am »
This is Link Grabber originally created by James.

This version is modified to work well for Metis v2.8. There were some people who said that Link Grabber didnt work with 2.8, so I thought I would fix that. If you do not have Link Grabber and would love to use it, I have included everything you need.

NOTE: You will need to find CHANGE ME in the OnJoinRoom and add the directory to your plugins folder. Ex: C:\Program Files\Metis\Plugins. Your name also has to go into the usergroup in place of [Your Username].

You need this OnJoinRoom command for it to work. If you already have an OnJoinRoom command just add the needed lines.

Code: [Select]
<OnJoinRoom type="script">
<out type="push" extdata="LGDIRECTORY">CHANGE ME</out>
<out type="push" extdata="LINKCOUNT"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="1"/></out>
<out type="push" extdata="LINKGRABCOLOR"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="2"/></out>
<out type="push" extdata="LINKCOLOR"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="3"/></out>
<out type="push" extdata="DEFAULTTEXTCOLOR"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="4"/></out>
<out type="push" extdata="SEARCHCOUNT"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="5"/></out>
</OnJoinRoom>

Here is Link Grabber!!!

Code: [Select]
<config>

/////////////////////////////////////////////////////////
//                 Link Grabber Pro                    //
//                                                     //
//                Created by: JÁMÈS                    //
//          For more great scripts, visit:             //
//            http://www.mxcontrol.org/                //
/////////////////////////////////////////////////////////



/////////////////////////////////////////////////////////
//               Link Grabber Usergroup                //
/////////////////////////////////////////////////////////

<usergroup name="Link Grabber" case="1">
*[Your Username]*
*BOT_SELF_TRIGGER*
</usergroup>

/////////////////////////////////////////////////////////
//                 Include Temp File                   //
/////////////////////////////////////////////////////////

<include file="Link Grabber Temp.xml"/>


<command type="script">
<in>!link count</in>
<out type="push" extdata="LINKCOUNT"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="1"/></out>
<out>#c$DEFAULTTEXTCOLOR$#Number of links saved: #c4#$LINKCOUNT$</out>
</command>

<command type="script">
<in>!link colors</in>
<out type="push" extdata="LINKGRABCOLOR"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="2"/></out>
<out type="push" extdata="LINKCOLOR"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="3"/></out>
<out type="push" extdata="DEFAULTTEXTCOLOR"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="4"/></out>
<out>#c$DEFAULTTEXTCOLOR$#Link grabber color: #c$LINKGRABCOLOR$##c#c$LINKGRABCOLOR$#$LINKGRABCOLOR$# #c$DEFAULTTEXTCOLOR$#</out>
<out>#c$DEFAULTTEXTCOLOR$#Link display color: #c$LINKCOLOR$##c#c$LINKCOLOR$#$LINKCOLOR$# #c$DEFAULTTEXTCOLOR$#</out>
<out>#c$DEFAULTTEXTCOLOR$#Default text color: #c$DEFAULTTEXTCOLOR$##c#c$DEFAULTTEXTCOLOR$#$DEFAULTTEXTCOLOR$#</out>
</command>

/////////////////////////////////////////////////////////
//                Script Remote Setup                  //
/////////////////////////////////////////////////////////

<command type="script" usergroup="Link Grabber">
<in type="exact">!l-g</in>
<out type="push" extdata="LINKCOUNT"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="1"/></out>
<out type="push" extdata="LINKGRABCOLOR"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="2"/></out>
<out type="push" extdata="LINKCOLOR"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="3"/></out>
<out type="push" extdata="DEFAULTTEXTCOLOR"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="4"/></out>
<out type="push" extdata="SEARCHCOUNT"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="5"/></out>
<out>#c$DEFAULTTEXTCOLOR$#Number of links saved: #c4#$LINKCOUNT$</out>
<out>#c$DEFAULTTEXTCOLOR$#Search count: #c4#$SEARCHCOUNT$ #c$DEFAULTTEXTCOLOR$#To change type #c4#!l-g-s ##c$DEFAULTTEXTCOLOR$#, replacing #c4###c$DEFAULTTEXTCOLOR$# with the number.</out>
<out>#c$DEFAULTTEXTCOLOR$#Link grabber color: #c$LINKGRABCOLOR$##c#c$LINKGRABCOLOR$#$LINKGRABCOLOR$# #c$DEFAULTTEXTCOLOR$#To change type #c4#!l-g-c ##c$DEFAULTTEXTCOLOR$#, replacing #c4###c$DEFAULTTEXTCOLOR$# with the number.</out>
<out>#c$DEFAULTTEXTCOLOR$#Link display color: #c$LINKCOLOR$##c#c$LINKCOLOR$#$LINKCOLOR$# #c$DEFAULTTEXTCOLOR$#To change type #c4#!l-d-c ##c$DEFAULTTEXTCOLOR$#, replacing #c4###c$DEFAULTTEXTCOLOR$# with the number.</out>
<out>#c$DEFAULTTEXTCOLOR$#Default text color: #c$DEFAULTTEXTCOLOR$##c#c$DEFAULTTEXTCOLOR$#$DEFAULTTEXTCOLOR$# #c$DEFAULTTEXTCOLOR$#To change type #c4#!l-t-c ##c$DEFAULTTEXTCOLOR$#, replacing #c4###c$DEFAULTTEXTCOLOR$# with the number.</out>
</command>

<command type="script" usergroup="!Link Grabber">
<in type="exact">!l-g</in>
<in>!l-g-c %PARAM%</in>
<in>!l-d-c %PARAM%</in>
<in>!l-t-c %PARAM%</in>
<in>!l-t-s %PARAM%</in>
<out>/message %NAME% #c8#Sorry #c1#%NAME%#c51#, you don't have access to this command </out>
</command>

<command type="script" usergroup="Link Grabber">
<in>!l-g-c %PARAM%</in>
<out type="push" extdata="COLORCODE">%PARAM%</out>
<out type="pop" extdata="ALLOW1"></out>
<out type="pop" extdata="ALLOW2"></out>
<out type="push" extdata="LINKCOUNT"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="1"/></out>
<out type="push" extdata="LINKGRABCOLOR"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="2"/></out>
<out type="push" extdata="LINKCOLOR"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="3"/></out>
<out type="push" extdata="DEFAULTTEXTCOLOR"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="4"/></out>
<out type="push" extdata="SEARCHCOUNT"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="5"/></out>
<out type="push" extdata="ALLOW1" condition="<" lvalue="$COLORCODE$" rvalue="256">1</out>
<out type="push" extdata="ALLOW2" condition=">" lvalue="$COLORCODE$" rvalue="0">1</out>
<out type="push" extdata="ALLOW"><operator type="+" lvalue="$ALLOW1$" rvalue="$ALLOW2$"/></out>
<out condition="!=" lvalue="$ALLOW$" rvalue="2">#c$DEFAULTTEXTCOLOR$#Please select a correct color code!</out>
<out type="break" condition="!=" lvalue="$ALLOW$" rvalue="2"></out>
<out type="file" extdata="$LGDIRECTORY$\Link Grabber\Config.ini" mode="t">$LINKCOUNT$\n</out>
<out type="file" extdata="$LGDIRECTORY$\Link Grabber\Config.ini" mode="a">$COLORCODE$\n</out>
<out type="file" extdata="$LGDIRECTORY$\Link Grabber\Config.ini" mode="a">$LINKCOLOR$\n</out>
<out type="file" extdata="$LGDIRECTORY$\Link Grabber\Config.ini" mode="a">$DEFAULTTEXTCOLOR$\n</out>
<out type="file" extdata="$LGDIRECTORY$\Link Grabber\Config.ini" mode="a">$SEARCHCOUNT$</out>
<out>#c$DEFAULTTEXTCOLOR$#New link grabber color set to: #c$COLORCODE$##c#c$COLORCODE$#$COLORCODE$#</out>
</command>

<command type="script" usergroup="Link Grabber">
<in>!l-d-c %PARAM%</in>
<out type="push" extdata="COLORCODE">%PARAM%</out>
<out type="pop" extdata="ALLOW1"></out>
<out type="pop" extdata="ALLOW2"></out>
<out type="push" extdata="LINKCOUNT"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="1"/></out>
<out type="push" extdata="LINKGRABCOLOR"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="2"/></out>
<out type="push" extdata="LINKCOLOR"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="3"/></out>
<out type="push" extdata="DEFAULTTEXTCOLOR"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="4"/></out>
<out type="push" extdata="SEARCHCOUNT"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="5"/></out>
<out type="push" extdata="ALLOW1" condition="<" lvalue="$COLORCODE$" rvalue="256">1</out>
<out type="push" extdata="ALLOW2" condition=">" lvalue="$COLORCODE$" rvalue="0">1</out>
<out type="push" extdata="ALLOW"><operator type="+" lvalue="$ALLOW1$" rvalue="$ALLOW2$"/></out>
<out condition="!=" lvalue="$ALLOW$" rvalue="2">#c$DEFAULTTEXTCOLOR$#Please select a correct color code!</out>
<out type="break" condition="!=" lvalue="$ALLOW$" rvalue="2"></out>
<out type="file" extdata="$LGDIRECTORY$\Link Grabber\Config.ini" mode="t">$LINKCOUNT$\n</out>
<out type="file" extdata="$LGDIRECTORY$\Link Grabber\Config.ini" mode="a">$LINKGRABCOLOR$\n</out>
<out type="file" extdata="$LGDIRECTORY$\Link Grabber\Config.ini" mode="a">$COLORCODE$\n</out>
<out type="file" extdata="$LGDIRECTORY$\Link Grabber\Config.ini" mode="a">$DEFAULTTEXTCOLOR$\n</out>
<out type="file" extdata="$LGDIRECTORY$\Link Grabber\Config.ini" mode="a">$SEARCHCOUNT$</out>
<out>#c$DEFAULTTEXTCOLOR$#New link display color set to: #c$COLORCODE$##c#c$COLORCODE$#$COLORCODE$#</out>
</command>

<command type="script" usergroup="Link Grabber">
<in>!l-t-c %PARAM%</in>
<out type="push" extdata="COLORCODE">%PARAM%</out>
<out type="pop" extdata="ALLOW1"></out>
<out type="pop" extdata="ALLOW2"></out>
<out type="push" extdata="LINKCOUNT"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="1"/></out>
<out type="push" extdata="LINKGRABCOLOR"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="2"/></out>
<out type="push" extdata="LINKCOLOR"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="3"/></out>
<out type="push" extdata="DEFAULTTEXTCOLOR"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="4"/></out>
<out type="push" extdata="SEARCHCOUNT"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="5"/></out>
<out type="push" extdata="ALLOW1" condition="<" lvalue="$COLORCODE$" rvalue="256">1</out>
<out type="push" extdata="ALLOW2" condition=">" lvalue="$COLORCODE$" rvalue="0">1</out>
<out type="push" extdata="ALLOW"><operator type="+" lvalue="$ALLOW1$" rvalue="$ALLOW2$"/></out>
<out condition="!=" lvalue="$ALLOW$" rvalue="2">#c$DEFAULTTEXTCOLOR$#Please select a correct color code!</out>
<out type="break" condition="!=" lvalue="$ALLOW$" rvalue="2"></out>
<out type="file" extdata="$LGDIRECTORY$\Link Grabber\Config.ini" mode="t">$LINKCOUNT$\n</out>
<out type="file" extdata="$LGDIRECTORY$\Link Grabber\Config.ini" mode="a">$LINKGRABCOLOR$\n</out>
<out type="file" extdata="$LGDIRECTORY$\Link Grabber\Config.ini" mode="a">$LINKCOLOR$\n</out>
<out type="file" extdata="$LGDIRECTORY$\Link Grabber\Config.ini" mode="a">$COLORCODE$\n</out>
<out type="file" extdata="$LGDIRECTORY$\Link Grabber\Config.ini" mode="a">$SEARCHCOUNT$</out>
<out>#c$DEFAULTTEXTCOLOR$#New default text color set to: #c$COLORCODE$##c#c$COLORCODE$#$COLORCODE$#</out>
</command>

<command type="script" usergroup="Link Grabber">
<in>!l-t-s %PARAM%</in>
<out type="push" extdata="SEARCHNUMBER">%PARAM%</out>
<out type="pop" extdata="ALLOW1"></out>
<out type="pop" extdata="ALLOW2"></out>
<out type="push" extdata="LINKCOUNT"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="1"/></out>
<out type="push" extdata="LINKGRABCOLOR"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="2"/></out>
<out type="push" extdata="LINKCOLOR"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="3"/></out>
<out type="push" extdata="DEFAULTTEXTCOLOR"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="4"/></out>
<out type="push" extdata="SEARCHCOUNT"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="5"/></out>
<out type="push" extdata="ALLOW1" condition=">" lvalue="$SEARCHNUMBER$" rvalue="11">1</out>
<out type="push" extdata="ALLOW2" condition="<" lvalue="$COLORCODE$" rvalue="0">1</out>
<out type="push" extdata="ALLOW2" condition="<" lvalue="$SEARCHNUMBER$" rvalue="0">1</out>
<out condition="!=" lvalue="$ALLOW$" rvalue="2">#c$DEFAULTTEXTCOLOR$#Please select a number less then 10, to avoid flooding!</out>
<out type="break" condition="!=" lvalue="$ALLOW$" rvalue="2"></out>
<out type="file" extdata="$LGDIRECTORY$\Link Grabber\Config.ini" mode="t">$LINKCOUNT$\n</out>
<out type="file" extdata="$LGDIRECTORY$\Link Grabber\Config.ini" mode="a">$LINKGRABCOLOR$\n</out>
<out type="file" extdata="$LGDIRECTORY$\Link Grabber\Config.ini" mode="a">$LINKCOLOR$\n</out>
<out type="file" extdata="$LGDIRECTORY$\Link Grabber\Config.ini" mode="a">$DEFAULTTEXTCOLOR$\n</out>
<out type="file" extdata="$LGDIRECTORY$\Link Grabber\Config.ini" mode="a">$SEARCHNUMBER$</out>
<out>#c$DEFAULTTEXTCOLOR$#New default search number set to: #c4#$SEARCHNUMBER$</out>
</command>

/////////////////////////////////////////////////////////
//                   Grab The Links                    //
/////////////////////////////////////////////////////////

<command type="script">
<in>www.%PARAM%</in>
<out type="push" extdata="LINK">www.%PARAM%</out>
<out type="push" extdata="LINKS"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Grabbed Links.ini" lvalue="c" rvalue="-1"/></out>
<out type="push" extdata="DOUBLELINK"><operator type="strfind" lvalue="$LINKS$" rvalue="$LINK$"/></out>
<out type="break" condition="!=" lvalue="$DOUBLELINK$" rvalue="-1"></out>
<out type="push" extdata="LINKCOUNT"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="1"/></out>
<out type="push" extdata="LINKGRABCOLOR"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="2"/></out>
<out type="push" extdata="LINKCOLOR"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="3"/></out>
<out type="push" extdata="DEFAULTTEXTCOLOR"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="4"/></out>
<out type="push" extdata="SEARCHCOUNT"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="5"/></out>
<out type="push" extdata="LINKCOUNT"><operator type="+" lvalue="$LINKCOUNT$" rvalue="1"/></out>
<out type="file" extdata="$LGDIRECTORY$\Link Grabber\Config.ini" mode="t">$LINKCOUNT$\n</out>
<out type="file" extdata="$LGDIRECTORY$\Link Grabber\Config.ini" mode="a">$LINKGRABCOLOR$\n</out>
<out type="file" extdata="$LGDIRECTORY$\Link Grabber\Config.ini" mode="a">$LINKCOLOR$\n</out>
<out type="file" extdata="$LGDIRECTORY$\Link Grabber\Config.ini" mode="a">$DEFAULTTEXTCOLOR$</out>
<out type="file" extdata="$LGDIRECTORY$\Link Grabber\Grabbed Links.ini" mode="a">\n$LINK$</out>
<out>#c$LINKGRABCOLOR$#Link grabbed...</out>
</command>

/////////////////////////////////////////////////////////
//                  Show Last Link                     //
/////////////////////////////////////////////////////////

<command type="script">
<in type="exact">!last link</in>
<out type="push" extdata="LINKCOUNT"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="1"/></out>
<out type="push" extdata="LINKGRABCOLOR"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="2"/></out>
<out type="push" extdata="LINKCOLOR"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="3"/></out>
<out type="push" extdata="DEFAULTTEXTCOLOR"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="4"/></out>
<out type="push" extdata="SEARCHCOUNT"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="5"/></out>
<out type="push" extdata="LASTLINK"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Grabbed Links.ini" lvalue="l" rvalue="$LINKCOUNT$"/></out>
<out>#c$DEFAULTTEXTCOLOR$#Last link: #c$LINKCOLOR$#$LASTLINK$</out>
</command>

/////////////////////////////////////////////////////////
//                Show Random Link                     //
/////////////////////////////////////////////////////////

<command type="script">
<in type="exact">!random link</in>
<out type="push" extdata="LINKCOUNT"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="1"/></out>
<out type="push" extdata="LINKGRABCOLOR"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="2"/></out>
<out type="push" extdata="LINKCOLOR"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="3"/></out>
<out type="push" extdata="DEFAULTTEXTCOLOR"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="4"/></out>
<out type="push" extdata="SEARCHCOUNT"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="5"/></out>
<out type="file" extdata="$LGDIRECTORY$\Link Grabber Temp.xml" mode="t">&lt;config&gt;\n\n</out>
<out type="file" extdata="$LGDIRECTORY$\Link Grabber Temp.xml" mode="a">&lt;command type="script" usergroup="Link Grabber"&gt;\n</out>
<out type="file" extdata="$LGDIRECTORY$\Link Grabber Temp.xml" mode="a">&lt;in type="exact"&gt;!processrandomlink&lt;/in&gt;\n</out>
<out type="file" extdata="$LGDIRECTORY$\Link Grabber Temp.xml" mode="a">&lt;out type="push" extdata="RANDOMLINE"&gt;%</out>
<out type="file" extdata="$LGDIRECTORY$\Link Grabber Temp.xml" mode="a">RANDOMNUM[$LINKCOUNT$]</out>
<out type="file" extdata="$LGDIRECTORY$\Link Grabber Temp.xml" mode="a">%&lt;/out&gt;\n</out>
<out type="file" extdata="$LGDIRECTORY$\Link Grabber Temp.xml" mode="a">&lt;out type="goto" extdata="-1" condition="==" lvalue="$</out>
<out type="file" extdata="$LGDIRECTORY$\Link Grabber Temp.xml" mode="a">RANDOMLINE</out>
<out type="file" extdata="$LGDIRECTORY$\Link Grabber Temp.xml" mode="a">$" rvalue="0"&gt;&lt;/out&gt;\n</out>
<out type="file" extdata="$LGDIRECTORY$\Link Grabber Temp.xml" mode="a">&lt;out type="self"&gt;Return RandomLine: $</out>
<out type="file" extdata="$LGDIRECTORY$\Link Grabber Temp.xml" mode="a">RANDOMLINE</out>
<out type="file" extdata="$LGDIRECTORY$\Link Grabber Temp.xml" mode="a">$&lt;/out&gt;\n</out>
<out type="file" extdata="$LGDIRECTORY$\Link Grabber Temp.xml" mode="a">&lt;/command&gt;\n\n</out>
<out type="file" extdata="$LGDIRECTORY$\Link Grabber Temp.xml" mode="a">&lt;/config&gt;</out>
<out>/mxc load</out>
<out type="self">!processrandomlink</out>
</command>

<command type="script" usergroup="Link Grabber">
<in>Return RandomLine: %PARAM%</in>
<out type="push" extdata="LINKCOUNT"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="1"/></out>
<out type="push" extdata="LINKGRABCOLOR"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="2"/></out>
<out type="push" extdata="LINKCOLOR"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="3"/></out>
<out type="push" extdata="DEFAULTTEXTCOLOR"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="4"/></out>
<out type="push" extdata="SEARCHCOUNT"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="5"/></out>
<out type="push" extdata="RANDOMLINK"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Grabbed Links.ini" lvalue="l" rvalue="%PARAM%"/></out>
<out>#c$DEFAULTTEXTCOLOR$#Random link: #c$LINKCOLOR$#$RANDOMLINK$</out>
</command>

/////////////////////////////////////////////////////////
//                   Search Links                      //
/////////////////////////////////////////////////////////

<command type="script">
<in>!link search %PARAM%</in>
<out>/message %NAME% #c$DEFAULTTEXTCOLOR$#Search results for #c4#%PARAM%#c$DEFAULTTEXTCOLOR$#:</out>
<out type="push" extdata="SEARCHFOR">%PARAM%</out>
<out type="push" extdata="LINKCOUNT"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="1"/></out>
<out type="push" extdata="LINKGRABCOLOR"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="2"/></out>
<out type="push" extdata="LINKCOLOR"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="3"/></out>
<out type="push" extdata="DEFAULTTEXTCOLOR"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="4"/></out>
<out type="push" extdata="SEARCHCOUNT"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Config.ini" lvalue="l" rvalue="5"/></out>
<out type="push" extdata="SEARCHLINE">0</out>
<out type="push" extdata="VALIDSEARCH">0</out>
<out type="push" extdata="SEARCHNUM"><operator type="+" lvalue="$SEARCHNUM$" rvalue="1"/></out>
<out type="push" extdata="SEARCHLINE"><operator type="+" lvalue="$SEARCHLINE$" rvalue="1"/></out>
<out type="push" extdata="SEARCHTEMP"><operator type="readfile" nvalue="$LGDIRECTORY$\Link Grabber\Grabbed Links.ini" lvalue="l" rvalue="$SEARCHLINE$"/></out>
<out type="push" extdata="SEARCHINCLUDE"><operator type="strfind" lvalue="$SEARCHTEMP$" rvalue="$SEARCHFOR$"/></out>
<out type="push" extdata="VALIDSEARCH" condition="!=" lvalue="$SEARCHINCLUDE$" rvalue="-1"><operator type="+" lvalue="$VALIDSEARCH$" rvalue="-1"/></out>
<out type="goto" extdata="2" condition=">" lvalue="$VALIDSEARCH$" rvalue="$SEARCHCOUNT$"/>
<out condition="!=" lvalue="$SEARCHINCLUDE$" rvalue="-1">/message %NAME% #c$LINKCOLOR$#$SEARCHTEMP$</out>
<out condition="==" lvalue="$SEARCHLINE$" rvalue="$LINKCOUNT$">/message %NAME% #c$DEFAULTTEXTCOLOR$#Finished searching...</out>
<out type="break" condition="==" lvalue="$SEARCHLINE$" rvalue="$LINKCOUNT$"></out>
<out type="goto" extdata="-9" condition="!=" lvalue="$SEARCHLINE$" rvalue="$LINKCOUNT$"></out>
</command>

</config>

Offline Stevi

  • #1 DJ
  • MX Hosts
  • *****
  • Ooops! I blew up the commercials!
    • WinMX Radio
Re: Link Grabber (Fixed)
« Reply #1 on: February 06, 2010, 12:41:12 am »
Someone pointed out a small bug in the link grabber.xml file where it wouldnt let you change the search limit from within the chat room. This new file allows you to do so.

WinMX World :: Forum  |  Metis Scripts and Help  |  Other Metis scripts  |  Link Grabber (Fixed)
 

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 20 queries.
Helios Multi © Bloc
gfx
Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!