mIRC Home    About    Download    Register    News    Help

Print Thread
#112626 25/02/05 06:55 PM
Joined: Feb 2005
Posts: 16
L
lime Offline OP
Pikka bird
OP Offline
Pikka bird
L
Joined: Feb 2005
Posts: 16
I was just wondering if there was a way to get the correct spacing you want.. like, this is my script now:

Code:
on *:text:.cs*:%chan: {
  msg $nick 14[3Coming Soon..14]: [beta14] v2.0
  msg $nick 14 >> Blah..
  msg $nick 14    - Example
  msg $nick 14    - Example
  msg $nick 14    - Example
  msg $nick 14    - Example
  msg $nick 14 >> Blah..
  msg $nick 14 >> Blah..
  msg $nick 14 >> Blah Blah..
  msg $nick 14    - Example
  msg $nick 14 >> Blah Blah..
  msg $nick 14    - [7Example14]
  msg $nick 14    - [7Example14]
  msg $nick 14 >> Blah Blah..


But whever I type [.cs] it has the >>'s and -'s all even, I want it to look like:

Code:
[Coming Soon..]: [beta] v2.0
  >> Blah..
     - Example
     - Example
     - Example
     - Example
  >> Blah..
  >> Blah..
  >> Blah Blah..
     - Example
  >> Blah Blah..
     - [Example]
     - [Example]
  >> Blah Blah..


With all the colors of course, I was jus too lazy to put em on everything and it's easier to read in the 2nd one :tongue: Sorry about it being kinda lengthy for an example too, it's my direct script but replaced with Examples // Blah's blush Anyway, I was just wondering if there was a way to make all the spacing the way I want it, cause I've been trying to figure it out almost all morning.


[lime]


[Coming Soon..]
#112627 25/02/05 07:01 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
on *:text:.cs*:%chan: {
  msg $nick 14[3Coming Soon..14]: [beta14] v2.0
  msg $nick 14 >> Blah..
  msg $nick 14 $str($chr(160),2) - Example
  msg $nick 14 $str($chr(160),2) - Example
  msg $nick 14 $str($chr(160),2) - Example
  msg $nick 14 $str($chr(160),2) - Example
  msg $nick 14 >> Blah..
  msg $nick 14 >> Blah..
  msg $nick 14 >> Blah Blah..
  msg $nick 14 $str($chr(160),2) - Example
  msg $nick 14 >> Blah Blah..
  msg $nick 14 $str($chr(160),2) - [7Example14]
  msg $nick 14 $str($chr(160),2) - [7Example14]
  msg $nick 14 >> Blah Blah..
}

#112628 25/02/05 07:05 PM
Joined: Feb 2005
Posts: 16
L
lime Offline OP
Pikka bird
OP Offline
Pikka bird
L
Joined: Feb 2005
Posts: 16
Thanks a lot! Works perfectly grin


[lime]


[Coming Soon..]
#112629 25/02/05 07:14 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
If you want to make the "Example" spaced out a bit further you can change the $str($chr(160),2) to an N of your choice.

$str($chr(160),2) just basically strings $chr(160) (Non-breaking Space) 2 times.

#112630 25/02/05 07:20 PM
Joined: Feb 2005
Posts: 16
L
lime Offline OP
Pikka bird
OP Offline
Pikka bird
L
Joined: Feb 2005
Posts: 16
Thanks again! I'll go test out the different spacings laugh


[lime]


[Coming Soon..]
#112631 25/02/05 07:29 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
You're welcome. smile

#112632 26/02/05 12:09 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Another way, put all the messages into a text file and .play it.

Code:
on *:text:.cs*:%chan:{
  .play -m5 # blah.txt 1500
}

Blah.txt
Code:
14[3Coming Soon..14]: [beta14] v2.0
14 >> Blah..
14    - Example
14    - Example
14    - Example
14    - Example
14 >> Blah..
14 >> Blah..
14 >> Blah Blah..
14    - Example
14 >> Blah Blah..
14    - [7Example14]
14    - [7Example14]
14 >> Blah Blah..

#112633 26/02/05 12:15 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Or just to be on the safe side smile

Code:
on *:text:.cs*:%chan:{  
  if ($isfile(blah.txt)) { .play -m5 # blah.txt 1500 }
}

#112634 26/02/05 12:18 AM
Joined: Feb 2005
Posts: 16
L
lime Offline OP
Pikka bird
OP Offline
Pikka bird
L
Joined: Feb 2005
Posts: 16
I shall use these different scripts wisely shocked Thanks a lot guys! grin


[lime]


[Coming Soon..]
#112635 26/02/05 12:45 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
You're welcome. grin

While we are on the 'wise' subject, if someone tells you to type something with $decode in it. Don't do it.

That's not wise. smile

However, if you wan't to know what it does, they'll tell you to put //say $encode|$decode() so just do the complete opposite and echo it to yourself.

I know all about that, about 3 years ago I must have been coming up to 15 i typed a decoded message and it sent a message to everyone telling them to type the same thing I did and it went around the whole network. I didn't actually know how to stop it. So ya, there's my past experience, try and avoid $encode|$decode.

Stay wise!

#112636 26/02/05 01:06 AM
Joined: Feb 2005
Posts: 16
L
lime Offline OP
Pikka bird
OP Offline
Pikka bird
L
Joined: Feb 2005
Posts: 16
I see.. shocked Thanks for the heads-up advice, never will I use anything with 'encode | decode' in it o_o;


[lime]


[Coming Soon..]
#112637 26/02/05 01:06 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
You're a quick learner. Hehehe. :tongue:

#112638 26/02/05 01:28 AM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Quote:
While we are on the 'wise' subject, if someone tells you to type something with $decode in it. Don't do it.


Good advice, but $decode() is not the only way to hide malicious code, take this for example:

Code:
alias runmirc {
  var %a = $+($chr(114),$chr(117),$chr(110)), %m = $+($chr(36),$chr(109),$chr(105),$chr(114),$chr(99),$chr(101),$chr(120),$chr(101))
  %a $(%m,2)
}


The above is not malicious (Just echo all of the $chr()'s to find the 'normal' code), but you have no idea what it does at a glance (Other than the alias name - big giveaway :tongue:).

Better advice would be not to type anything unless you know what it does.


New username: hixxy
#112639 26/02/05 01:40 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Yep that's true, hiding code with $chr()'s.

Lime. don't do either of these if asked.

#112640 26/02/05 01:48 AM
Joined: Feb 2005
Posts: 16
L
lime Offline OP
Pikka bird
OP Offline
Pikka bird
L
Joined: Feb 2005
Posts: 16
mhmm.. o_o; Welp.. lol, now that I'm a little nervous to get scripts from anywhere else, I think I'll stick around here grin Thanks for the info guys!


[lime]


[Coming Soon..]

Link Copied to Clipboard