PC Help And Information Easy Maintenance And Free Software
 
HomePortalFAQSearchRegisterLog in

Share | 
 

 RoomFinder by Mr Darn + justPaw

View previous topic View next topic Go down 
AuthorMessage
MrDarn™
Moderator

Moderator
avatar

Male
Number of posts : 299
Home : At My PC
Humor : Dry/Sarcastic
Registration date : 2007-09-27

PostSubject: RoomFinder by Mr Darn + justPaw   Tue Oct 09, 2007 1:37 pm

this is a work in progress, and another post will be added containing the script, with this one left for edit by myself.

to start looking type: !addy
eg:

Quote :
!addy movies
this will search for rooms or topics with the word 'movies'
it IS case sensitive
it ONLY displays 4 lines, but this can be changed at a certain line
by adding your normal privacy sub hedder to each responsive 'out' you can make the results private to the asker: ie add /message %RAWNAME% for wcs. (it dont take alot to work out which ones are display lines!)

you must make sure these settings are in place before you begin:
your bot must be connected to the wpn
your but must cache roomlist
your bot must NOT cache faves only
your bots roomlist must be closed for the roomlist to be updated.
the roomlist will only be as updated as the last closure of the roomlist in the bot which loads the script.
i am working on a way to have the list refresh, but this is proving too dificult, as no-one knows if the bots roomlist can be auto opened and closed by the bot.
you may only search ONE WORD AT ONCE! it does not recognise spaces from what i can tell.
help with this script can be found at my forum, as well as here.


Last edited by on Tue Oct 09, 2007 1:46 pm; edited 2 times in total
Back to top Go down
http://www.mrdarn.co.uk
MrDarn™
Moderator

Moderator
avatar

Male
Number of posts : 299
Home : At My PC
Humor : Dry/Sarcastic
Registration date : 2007-09-27

PostSubject: Re: RoomFinder by Mr Darn + justPaw   Tue Oct 09, 2007 1:37 pm

Code:
<command type="script">
<in>!addydisabled</in>
<out Type="goto" extdata="3" condition="0" lvalue="$roomsearchinuse$" rvalue="1"></out>
<out condition="1" lvalue="$roomsearchinuse$" rvalue="1">Search Active, please wait!</out>
<out type="break" condition="1" lvalue="$roomsearchinuse$" rvalue="1"/>
<out type="push" extdata="roomsearchinuse">1</out>
<out type="push" extdata="trigger">%TRIGGER%</out>
<out type="push" extdata="trigger"><operator type="strrem" lvalue="$trigger$" rvalue="!addy"/></out>
<out>test started, reading file...</out>
<out>searching for rooms or topics containing:$trigger$, this may take a few minutes!</out>
<out type="self" delay="5000">BeginRoomHunt</out>
</command>


<command type="script">
<in type="exact">BeginRoomHuntdisabled</in>
<out delay="5000" type="push" extdata="hitcounter">0</out>
<out type="push" extdata="linenumber">0</out>
<out type="push" extdata="linenumber"><operator type="+" lvalue="$linenumber$" rvalue="1"/></out>
<out type="push" extdata="line"><operator type="readfile" nvalue="C:\Program Files\Metis 2.8\roomlist.ccf" lvalue="l" rvalue="$linenumber$"/></out>
<out condition="4" lvalue="$line$" rvalue="$trigger$">$line$</out>
<out condition="4" lvalue="$line$" rvalue="$trigger$" type="push" extdata="hitcounter"><operator type="+" lvalue="$hitcounter$" rvalue="1"/></out>
<out condition="4" lvalue="$line$" rvalue="$trigger$">Results so far: $hitcounter$</out>
<out condition="4" lvalue="$line$" rvalue="$trigger$" type="push" extdata="LastLineNumber">$linenumber$</out>
<out condition=">" lvalue="$hitcounter$" rvalue="3">Result Maximum Reached. Please refine your search.</out>
<out type="goto" extdata="2" condition=">" lvalue="$hitcounter$" rvalue="3"/>
<out type="goto" extdata="-8" condition="<" lvalue="$linenumber$" rvalue="3000"/>
<out condition="<" lvalue="$hitcounter$" rvalue="1">Sorry, I did not find the room you requested. Please check the search criteria, remembering it can be case sensitive!</out>
<out type="push" extdata="roomsearchinuse">0</out>
<out>Created by Mr Darn and JustPaw. Work In Progress, Version 2.2</out>
<out>Please visit Mr Darn at: www.mrdarn.co.uk :) last Positive result on Line No: $LastLineNumber$</out>
</command>

Back to top Go down
http://www.mrdarn.co.uk
 
RoomFinder by Mr Darn + justPaw
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Those darn labels

Permissions in this forum:You cannot reply to topics in this forum
MaxTech ::  The World Of WinMX Chat :: Metis Working Scripts Centre-
Jump to: