mIRC Home    About    Download    Register    News    Help

Print Thread
#79474 15/04/04 10:01 PM
C
CRadleOfFilth
CRadleOfFilth
C
How i make * Into an ~ in the script. I see * for modes and connecting but i wanna see if anyone knows a code to change it to an ~

#79475 15/04/04 11:37 PM
Z
Zeusbwr
Zeusbwr
Z
you mean like when mirc says a mode like "* Nick sets mode: +v Someone"? and you want the * to a ~? try this..
Code:
on ^*:VOICE:*:{
  haltdef
  echo $chan $+([,$time(hh:nn:sstt),]) ~ $nick sets mode: $1 $vnick
}
on ^*:DEVOICE:*:{
  haltdef
  echo $chan $+([,$time(hh:nn:sstt),]) ~ $nick sets mode: $1 $vnick
}


Now this is just for voice, you should be able to figure out the other modes, but if you need help i'll be more than happy to try.

For help try "/help on OP", all the modes are basicly the same. gl smile

btw, if you want color, like the default mirc color, instead of "$+([,$time(hh:nn:sstt),])" use "$+(3,[,$time(hh:nn:sstt),])"

Hope this Helps smile

#79476 15/04/04 11:57 PM
C
CRadleOfFilth
CRadleOfFilth
C
Okay i did it myself lol easy.

Code:
on 1:MODE:#:{ 
haltdef
echo $chan $+([,$time(hh:nn:sstt),]) ~ $nick sets mode: $1- }
}  

#79477 16/04/04 12:07 AM
C
CRadleOfFilth
CRadleOfFilth
C
someone Help lol it doesnt show in the channel it shows in the window i am in.
Code:
on 1:MODE:#:{ 
  haltdef
  echo -a [ $+ $time(hh:nn) $+ ] ~ $nick sets mode: $1- 
}
on 1:Voice:#:{ 
  haltdef
  echo -a [ $+ $time(hh:nn) $+ ] ~ $nick sets mode: $1- 
}
on 1:Op:#:{ 
  haltdef
  echo -a [ $+ $time(hh:nn) $+ ] ~ $nick sets mode: $1- 
}
on ^*:VOICE:*:{  
  haltdef  
  echo $chan $+([,$time(hh:nn:sstt),]) ~ $nick sets mode: $1 $vnick
}
on ^*:DEVOICE:*:{  
  haltdef  
  echo $chan $+([,$time(hh:nn:sstt),]) ~ $nick sets mode: $1 $vnick
}  

#79478 16/04/04 12:08 AM
C
CRadleOfFilth
CRadleOfFilth
C
and i think its not working anymore lol

#79479 16/04/04 02:18 AM
Joined: Oct 2003
Posts: 143
D
Vogon poet
Offline
Vogon poet
D
Joined: Oct 2003
Posts: 143
People will not see that change you made Only you will see it. So if your trying to make it so other people see ha good luck.

#79480 16/04/04 03:09 AM
Z
Zeusbwr
Zeusbwr
Z
ya making it so other users see "~ Nick sets mode" is impossible. unless you write a script for them and have them all use it. i dunno why you want otherpeople to see it anyway lol.

#79481 16/04/04 06:50 AM
Joined: Jan 2003
Posts: 423
P
Fjord artisan
Offline
Fjord artisan
P
Joined: Jan 2003
Posts: 423
OK, I see what you mean.

It shows in the window you are in because you have used echo -a. The -a switch tells mIRC to show you the line in your ACTIVE window, wherever that is, so the script is actually doing exactly what you told it to do!

Try specifiying the channel name with $chan instead - /help /echo is your friend! wink

PM

#79482 16/04/04 12:31 PM
Z
Zeusbwr
Zeusbwr
Z
/me says oops bout the -a vs $chan flag and slowly walks away while whistling....

#79483 16/04/04 02:58 PM
D
Daedalus
Daedalus
D
Try this:

Code:
on ^*:JOIN:#: {
  if ($nick == $me) {
    echo -t[color:red] $chan [/color]=> Now talking in $chan
    haltdef
  }
  else {
    echo -t[color:red] $chan [/color]=> Joins: $nick ( $+ $address $+ )
    haltdef
  }
}  

#79484 16/04/04 03:01 PM
D
Daedalus
Daedalus
D
And you can alter the timestamp by using:
Code:
 on *:START: {
  .timestamp -fe [color:red] [HH:nn] [/color] 
} 


Change the red text to whatever format you want, remember you have to restart mIRC before the effects take place...

#79485 16/04/04 03:19 PM
Z
Zeusbwr
Zeusbwr
Z
btw i havent tested yours, but with "[ $+ $time(hh:nn) $+ ]" it will most likely not display the "[,]"'s, as they are being used to evaluate. if you dont want to use the $+([,$time,]) format, use "$chr(blah) $+ $time $+ $chr(blah)", the value for each $chr is a asc number for the character you wish to use. such as $chr(46) displays a ".", to find the asc value for a character you can simply use //echo T: $asc(char). that will display the character number, though for some characters that wont work.. i believe the halt pipe dont work with that, and a couple others i think. GL smile

#79486 16/04/04 04:40 PM
D
Daedalus
Daedalus
D
why bother, just change the timestamp with "on start" and then use -t when you echo...

#79487 16/04/04 06:19 PM
Z
Zeusbwr
Zeusbwr
Z
personally im not a fan of /timestamp :P, i like to control each echo so i do it that way, i was just informing him smile

/flameoff

//var %flame $true | while (%flame == $true) { echo huh, go figure.. }

#79488 16/04/04 06:35 PM
C
CRadleOfFilth
CRadleOfFilth
C
did i say i wanted other people to see it? Btw i got help by a friend.


Code:
 ON ^*:RAWMODE:#: { 
  echo -tc mode $chan 14~ 4 $+ $nick sets mode: 5 $+ $1- 
  haltdef 
}
 

Last edited by CRadleOfFilth; 16/04/04 06:36 PM.
#79489 16/04/04 07:04 PM
Z
Zeusbwr
Zeusbwr
Z
scroll up, we said you cant have other people see modes like you want to see them. if you want to edit what people see make a client script and have people run it. you cant just make otherpeople see what you want. unless you wanna just echo it to yourself and message it to the channel, but that would just annoy people in my opinion.

#79490 19/04/04 01:46 PM
I
Iori
Iori
I
There is also [[ $+ ]]


/alias asc echo -a Ascii: $left($$1,1) = $asc($1)


Link Copied to Clipboard