|
NeoNY
|
NeoNY
|
Hello.. I'm having Problem with my Nick Completer, when i type "aw" its says nick from my channel "<NeoNY> «±[ PrincesOfDarkness ]±» «±[ ]±» if i type some world and if the word match its just say the user name... but i want this nick Compeleter to work with out , so Please help me fix this problem thank you... for EX: there is 2 user on a Channel 1. NewNY 2. Guest1 when i will type gue[color:red], msg-here its will say full name <Guest1> msg-here Please help me with it... thank you all. P,S - sorry for my bad english on *:INPUT:#: {
if ($regex($1,^[^/]+.*,$)) {
if ($fline(#,$+(*,$left($1,-1),*),1,1)) {
/say 13,1«9,1±11,1[ 9,1 $line(#,$v1,1)11,1 ]9,1±13,1» 13,1«9,1±11,1[ 9,1 $2- 11,1 ]9,1±13,1» | halt }
if (/* !iswm $1) { /say 13,1«9,1±11,1[ 9,1 $+($chr(3),9,$1-) 11,1 ]9,1±13,1» | halt }
}
}
|
|
|
|
DaveC
|
DaveC
|
on *:INPUT:#: {
if ($regex($1,^[^/]+.*,$)) {
if ((!$istok(/ $readini($mircini, text, commandchar), $left($1, 1), 32)) && (!$ctrlenter) && (!$inpaste)) {
if ($fline(#,$+(*,$1,*),1,1)) {
say 13,1«9,1±11,1[ 9,1 $line(#,$v1,1) 11,1 ]9,1±13,1» 13,1«9,1±11,1[ 9,1 $2- 11,1 ]9,1±13,1»
else {
say 13,1«9,1±11,1[ 9,1 $+($chr(3),9,$1) 11,1 ]9,1±13,1» 13,1«9,1±11,1[ 9,1 $2- 11,1 ]9,1±13,1»
}
haltdef
}
} See if that is what you want.
|
|
|
|
NeoNY
|
NeoNY
|
hm.... no its doesn't work.... i mean there is a few user on the Channel and BOT BOT name : AOL User Name: Hero User name: evilboy User Name : BeYoNd_dA_cAlL_oF_dUtY if any letters match from the current list of name, let say "al" its will say <BeYoNd_dA_cAlL_oF_dUtY>, i don't want its to say the name with out the , so Please help me get it ~ thank you Guys ~ thanks once again ~ 
|
|
|
|
DaveC
|
DaveC
|
Im amazzed it worked at all. By mistake I left an old line of code  however... i don't want its to say the name with out the , you did not say that, you said the oppersite. have alook below. but i want this nick Compeleter to work with out , Anyway try this.... on *:INPUT:#: {
if ((!$istok(/ $readini($mircini, text, commandchar), $left($1, 1), 32)) && (!$ctrlenter) && (!$inpaste) && ($1 != ,) && ($right($1,1) == ,)) {
if ($fline(#,$+(*,$left($1,-1),*),1,1)) {
say 13,1«9,1±11,1[ 9,1 $line(#,$v1,1) 11,1 ]9,1±13,1» 13,1«9,1±11,1[ 9,1 $2- 11,1 ]9,1±13,1»
else {
say 13,1«9,1±11,1[ 9,1 $+($chr(3),9,$1) 11,1 ]9,1±13,1» 13,1«9,1±11,1[ 9,1 $2- 11,1 ]9,1±13,1»
}
haltdef
}
}
|
|
|
|
NeoNY
|
NeoNY
|
Thank you very much.... that work perfect.. one more thing how can i add this on *:INPUT:*: if (/* !iswm $1) { /say i want this code to include with the code ? is the possible ? Please... thank you DaveC
|
|
|
|
Joined: Dec 2002
Posts: 1,245
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,245 |
I believe you are wanting this if ((!$istok(/ $readini($mircini, text, commandchar), $left($1, 1), 32)) which is i the code
|
|
|
|
NeoNY
|
NeoNY
|
that doesn't work, saying
* /if: invalid format (line 3, script.ini)
|
|
|
|
Joined: Dec 2002
Posts: 1,245
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,245 |
Thank you very much.... that work perfect.. one more thing how can i add this on *:INPUT:*: if (/* !iswm $1) { /say i want this code to include with the code ? is the possible ? Please... thank you DaveC add it where, that string checks for the first character being a / what I was saying was the first part of Dave's code does that and checks for a custom command character. Maybe I misunderstand What you want to "add", and Where
|
|
|
|
NeoNY
|
NeoNY
|
sorry for not being clear.... i want to add this on *:INPUT:*: if (/* !iswm $1) { /say 13,1«9,1±11,1[ 9,1 $+($chr(3),9,$1) 11,1 ]9,1±13,1» with this code here on *:INPUT:#: {
if ((!$istok(/ $readini($mircini, text, commandchar), $left($1, 1), 32)) && (!$ctrlenter) && (!$inpaste) && ($1 != ,) && ($right($1,1) == ,)) {
if ($fline(#,$+(*,$left($1,-1),*),1,1)) {
say 13,1«9,1±11,1[ 9,1 $line(#,$v1,1) 11,1 ]9,1±13,1» 13,1«9,1±11,1[ 9,1 $2- 11,1 ]9,1±13,1»
else {
say 13,1«9,1±11,1[ 9,1 $+($chr(3),9,$1) 11,1 ]9,1±13,1» 13,1«9,1±11,1[ 9,1 $2- 11,1 ]9,1±13,1»
}
haltdef
}
} both work fine, but the prob is when i type any User nick from Channel list from the flowing user list, the TEXT repeat 2 times, one with the <nick> and msgg and 2nd one comes with the half of the nick and msg for EX: User: Guest1 User: NeoNY NeoNY: <Guest1> Hello NeoNY: Gue, Hello Please  thank you ~
|
|
|
|
DaveC
|
DaveC
|
on *:INPUT:*: if (/* !iswm $1) { /say As Mike has correctly said. The above code IS NOT NEEDED. Try a command like //echo - wow the time is $time You well find it well work with the code i previously posted.
|
|
|
|
NeoNY
|
NeoNY
|
sorry forgot to say it.. I wanted the text to be color...  sorry 
Last edited by NeoNY; 08/02/06 05:22 AM.
|
|
|
|
DaveC
|
DaveC
|
well color it then
$2- is the text simply get before it and go ctrl-c then the color code, then a space then $+
|
|
|
|
NeoNY
|
NeoNY
|
sorry... is this where u want pe to put it ? on *:INPUT:#: {
if ((!$istok(/ $readini($mircini, text, commandchar), $left($1, 1), 32)) && (!$ctrlenter) && (!$inpaste) && ($1 != ,) && ($right($1,1) == ,)) {
if ($fline(#,$+(*,$left($1,-1),*),1,1)) {
say [color:red] 4 $2- $+ [/color] 13,1«9,1±11,1[ 9,1 $line(#,$v1,1) 11,1 ]9,1±13,1» 13,1«9,1±11,1[ 9,1 $2 11,1 ]9,1±13,1»
else {
say 13,1«9,1±11,1[ 9,1 $+($chr(3),9,$1) 11,1 ]9,1±13,1» 13,1«9,1±11,1[ 9,1 $2- +$ $2 +$ 11,1 ]9,1±13,1»
}
haltdef
}
}
} sorry for being annoying  i'm not so good at it  , edit the for me and put it please.... Again, my apologies and thank you
Last edited by NeoNY; 08/02/06 01:48 PM.
|
|
|
|
DaveC
|
DaveC
|
i can not color something for you with out knowing what you want colored. you aslo used +$ when i said $+
The whole line has colors in it already so i dont know what you wanted.
|
|
|
|
NeoNY
|
NeoNY
|
i mean like... For Ex: User: Guest1 User: NeoNY let say we r the 2 person on the channel and i msged to Guest <NeoNY> Gue, Hello --> Guest Helloo this part with color work fine.. but i want my normal text to be colored as like <NeoNY> Hello --> Hello i want it to be color to... right now its a normal text color, how can i color it from my code? you don't have to color it.. but code it for me...please, i will color it my self, its will be a great help, and Thank you....
|
|
|
|
|