mIRC Home    About    Download    Register    News    Help

Print Thread
#36001 12/07/03 10:30 PM
C
captain_obvious
captain_obvious
C
hey,

i am trying to make my theme so it loks how i want and i am having troble with on input...

here is my problem...

i can get it to display how i want ex. 10:23pm (@captain_obvious) blah.

but when i press ctrl + enter it displays liek this...

10:23pm <captain_obvious> /clear

teh problem is i want it to diplay like the first one and here is my code... maybe you people can help me smile

Code:
 
on *:INPUT:#: { 
  if ($left($1,1) != /) &amp;&amp; ($ctrlenter == $false) { 
    echo $active $tstamp ( $+ $nick($chan,$me).pnick $+ ) $1- 
    .msg $active $1-
    halt 
  } 
  elseif ($left($1,1) == /) &amp;&amp; $ctrlenter == $true) {
    echo $active $tstamp ( $+ $nick($chan,$me).pnick $+ ) $1- 
    .msg $active $1-
    halt 
  } 

}

 



again thanks for any help you can offer!

#36002 12/07/03 11:18 PM
Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
elseif ($left($1,1) == /) && ($ctrlenter == $true)

Perhaps?

#36003 12/07/03 11:33 PM
C
captain_obvious
captain_obvious
C
hey man thanks! i still have a problem tough, although my first problem is fixed it still looks liek <nickname> when i type /say or /msg #chan when i want it to echo like (nickname) is teher a way to change that display? any help would be appreciated.

#36004 13/07/03 12:03 AM
Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
input doesn't cover aliases. You have to redefine /msg, /amsg, /me, /ame, /say, /query and all the rest for a "complete" theme to work.

#36005 13/07/03 01:23 AM
C
captain_obvious
captain_obvious
C
ahh i fugured out a different way of doing it!
thanks for the help smile

#36006 13/07/03 07:21 AM
C
captain_obvious
captain_obvious
C
i haven't tried it yet but i figure before i do i might as well ask...

wouldn't this work?

Code:
 
if ($left($1,4) == /msg) { 
echo -a ...theme here 
.msg $2-
}


i am a nweb to the max so i really don't know what all this stuff does yet... but im guessing that $left is the left side of the edit box or what not, and 4 would go 4 charecters over i think i just dont want to go and make all of them if they wont work smile

#36007 13/07/03 07:48 AM
P
pheonix
pheonix
P
if ($left($1,4) == /msg) {
echo -a ...theme here
.msg # $2-
}

#36008 13/07/03 10:13 AM
Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
Actually pheonix $2- was correct if they are going to type it in input event. Ex: The user types

/msg #mychan hi

that would trigger the id == /msg and the $2 = #mychan $3 = hi

where as your saying /msg # $2- which is now:

/msg #typed-in-chan #mychan hi

as for redifining captain_obvios, try this:

alias msg {
.msg $1-
/echo $color(own) -ti2 $1 (theme here)
}

#36009 13/07/03 07:25 PM
V
vexx0r
vexx0r
V
thanks kingtomato, i tried writing an alias before i tried the if ($left.... bit but it didnt seem practicle call msg inside the alias message... but thanks for teh example it helped me alot!

#36010 14/07/03 02:46 AM
Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
np, glad to help >:D


Link Copied to Clipboard