mIRC Home    About    Download    Register    News    Help

Print Thread
G
Gremel
Gremel
G
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,321
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,321
You most likely have another on input event that has something to do with that channel.

G
Gremel
Gremel
G
If only I could find out what was causing it... frown

R
ricky_knuckles
ricky_knuckles
R
looks like there might be a halt missing somewhere
like previously said possibly from another on input

Joined: Feb 2003
Posts: 3,412
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,412
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.
Joined: Mar 2004
Posts: 175
R
Vogon poet
Offline
Vogon poet
R
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
  }
}

R
ricky_knuckles
ricky_knuckles
R
enter enough of the nick to distinquish it from the other and hit tab

D
DaveC
DaveC
D
Then u only also have to press <HOME> [ <END> ] <SPACE> : <SPACE>

I
Iori
Iori
I
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,013
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Feb 2004
Posts: 2,013
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.

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

Joined: Jun 2003
Posts: 4,670
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 4,670
Please don't start flaming, either of you. smile

Regards,

Joined: Feb 2004
Posts: 2,013
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Feb 2004
Posts: 2,013
-edit-

See my post above.

Last edited by Mentality; 15/02/05 11:49 PM.
Joined: Feb 2003
Posts: 3,412
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,412
-edit-

See my post above.

Last edited by Mentality; 15/02/05 11:49 PM.
Joined: Feb 2004
Posts: 2,013
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Feb 2004
Posts: 2,013
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.

Joined: Jun 2003
Posts: 4,670
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 4,670
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,

Joined: Feb 2004
Posts: 2,013
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Feb 2004
Posts: 2,013
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.

Joined: Feb 2003
Posts: 3,412
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,412
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


Link Copied to Clipboard