mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2004
Posts: 96
G
Gremel Offline OP
Babel fish
OP Offline
Babel fish
G
Joined: Mar 2004
Posts: 96
Okay, i got this Script from mircscripts.org, tried to email the creator but his email is no longer active. So i thought I would post my question here and see if you kind people have a clue as to why this script wont work on one channel, although it works on all others fine.

Script is here: http://www.mircscripts.org/archive.php?s...&perpage=20

It is Nick Completor v2.0

Now when I type something like:
Mi: test

it produces:
<Gararion> [Mina] : test

which is is suppse to do. But if me and Mina go to the channel called #Santharia, it comes up with this:
<Gararion> Mi:test
<Gararion> [Mina] : test

Why does this happen only in the #Santharia channel?

Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
You most likely have another on input event that has something to do with that channel.


New username: hixxy
Joined: Mar 2004
Posts: 96
G
Gremel Offline OP
Babel fish
OP Offline
Babel fish
G
Joined: Mar 2004
Posts: 96
If only I could find out what was causing it... frown

Joined: Nov 2004
Posts: 332
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
looks like there might be a halt missing somewhere
like previously said possibly from another on input


The Kodokan will move you, one way or another.
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
A huge script for something as simple as a nick completer, why not use:
[code]
1:INPUT:#:{
if ($chr(58) == $right($1,1)) {
set %nick $remove($1,:)
set %n 0
:start
inc %n
if ($nick($active,%n) == $null) { say $1- | halt }
if ($left($nick($active,%n),$len(%nick)) == %nick) {
set %nick $nick($active,%n)

echo -a < $+ $me $+ > $chr(91) $+ %nick $+ $chr(93) : $2- | .msg $active $- $chr(91) $+ %nick $+ $chr(93) : $2- | halt
}
goto start
}
}
[code]
the thing marked red is the brackets around the [nick] you want to complete. didnt test if this one work, but should work..
---------- edit -----------
by the way, its trigged by ni: so the first letters, then a : and it should complete the nick..

Last edited by sparta; 14/02/05 08:14 PM.

if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Mar 2004
Posts: 175
Vogon poet
Offline
Vogon poet
Joined: Mar 2004
Posts: 175
Code:
[color:red]on[/color] 1:INPUT:#:{
  if ($chr(58) == $right($1,1)) { 
    set %nick $remove($1,:)
    set %n 0
    :start
    inc %n
    if ($nick($active,%n) == $null) { say $1- | halt }
    if ($left($nick($active,%n),$len(%nick)) == %nick) {
      set %nick $nick($active,%n)
      echo -a &lt; $+ $me $+ &gt; $chr(91) $+ %nick $+ $chr(93) : $2- | .msg $active $- $chr(91) $+ %nick $+ $chr(93) : $2- | halt
    }
    goto start
  }
}


- Relinsquish
Joined: Nov 2004
Posts: 332
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
enter enough of the nick to distinquish it from the other and hit tab


The Kodokan will move you, one way or another.
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Then u only also have to press <HOME> [ <END> ] <SPACE> : <SPACE>

Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
grin
Code:
on *:input:#:{
  if *: iswm $1 {
    var %a = $replace($1,:,*)
    if $line(#,$fline(#,%a,1,1),1) { %a = $+([,$v1,] :) | echo -a $+(&lt;,$me,&gt;) %a $2- | .msg # %a $2- | halt }
  }
}

It will still only find the first matching nick though.

Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Quote:
A huge script for something as simple as a nick completer, why not use:

This is funny coming from a person that always produces code that is huger than it's supposed to be, due to all the spaghetti code.


Gone.
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
didnt see u post anything bether.. so maybe just ST*U ?


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
Please don't start flaming, either of you. smile

Regards,


Mentality/Chris
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
-edit-

See my post above.

Last edited by Mentality; 15/02/05 11:49 PM.

Gone.
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
-edit-

See my post above.

Last edited by Mentality; 15/02/05 11:49 PM.

if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
That were hardly flames, we didn't even call each other names (and I wasn't planning on it), but well, if you think its necessary to edit it out, then so be it.


Gone.
Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
It was clear from both your attitudes that the situation was going to escalate.

Your comment was completely unnecessary in the first place and, IMO, rude. Sparta should not have replied with rude comments however (re: ST*U).

I prefer to save myself and others from logging on and finding a thread expanded into 5 pages of useless arguing and nitpicking, so yes, I do find it necessary. Let's keep on topic smile

Regards,


Mentality/Chris
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
It wasn't going to escalate since I kept it calm in my reply after being said "stfu". I didn't even attack back, just said the truth hurts, which is true in this case, and sparta knows it.

My initial comment is 100% true, it is funny seeing that person say that, whether it is rude or not. If you look at the code sparta has posted the last months, you would see why it's funny, hehe.

Btw I'm still very calm, note how there's no name calling, attacks etc smile

Anyway, looks like there isn't much room for debating around here, so it'll be wisest to keep this my final post in this thread and move along.


Gone.
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Quote:

It was clear from both your attitudes that the situation was going to escalate.

sorry but it wasnt, as i said i wouldent talk further about it.. im off. gn


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Link Copied to Clipboard