mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Aug 2004
Posts: 8
G
gosan Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
G
Joined: Aug 2004
Posts: 8
can someone edit this coding so it does the following:

1. enable users to search a few lines for e.g. !search [1:12-17]
2. has a timer of like 400 so it doesnt flood it out
3. must make the chatter use !search [:] otherwise it should say something like "Please type !search [:] "

Thanks in advance


Code:
 #searchbot on
on *:text:!search *:#: {
  var %line = $read(search.txt,w,* $+ $2 $+ * ) 
  if ($readn == 0) msg # No such search exists for $2 
  else msg # %line 
} 

Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
[1:12-17] - i'm guessing the 12-17 are the lines, what is the 1.

Eamonn.

Joined: Aug 2004
Posts: 8
G
gosan Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
G
Joined: Aug 2004
Posts: 8
[1:14-17]

1= the chapter
14-17 = the lines in the chapter that need to be messaged.

Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
You'll also need to actually tell us the format of the file since there is a chapter, how are you defining a chapter?

Joined: Aug 2004
Posts: 8
G
gosan Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
G
Joined: Aug 2004
Posts: 8
erm its .txt file in note pad .

chapter 1
" " 2
" " 3
" " 4
are all in the SAME notepad file.

they are all in a line in the file like this:

[1:1] ltsetlishetlieshtlij
[1:2] osihtoiesht
[2:1] oaioiah
[2:2] aflakjf
[2:3] oajflakjf and so on.



Link Copied to Clipboard