|
|
Joined: Jan 2005
Posts: 75
Babel fish
|
OP
Babel fish
Joined: Jan 2005
Posts: 75 |
I'm messing with wrap again, but i'm having problems with wrapping raw 332 that shows the topic set when you join or /topic # this is what i have raw *:*: {
if $numeric == 332 { if $numeric == 332 { echo $2 11,15topic $+ $+ $str($chr(160),23) 09:10 $wrap($str($3-,120,ProFontWindows, 6,450, *, 1)) | halt }
} i would use indent, but it only goes to 25, and it's about 5 spaces to short, and i can't work out what's wrong, any help would be great.
|
|
|
|
Joined: Aug 2004
Posts: 16
Pikka bird
|
Pikka bird
Joined: Aug 2004
Posts: 16 |
Hi. Why do you use the same ifmatch twice? And you can specify the numeric in the event. I do not know for whitch reason your having a $str in your $wrap.. Try this: raw 332:*:{ echo $2 11,15topic $+ $+ $str($chr(160),23) 09:10 $wrap($3-,ProFontWindows, 6,450, *, 1) | halt }
Regards, KathY
|
|
|
|
Joined: Jan 2005
Posts: 75
Babel fish
|
OP
Babel fish
Joined: Jan 2005
Posts: 75 |
This is the exact problem i'm having, it doesn't show all of the topic, i've been testing with maximum topic length, and it only shows about 90 chars of the topic.
|
|
|
|
Joined: Aug 2004
Posts: 16
Pikka bird
|
Pikka bird
Joined: Aug 2004
Posts: 16 |
Eh..
Your $wrap shows 450 pixel of the topic not 450 chars. If you want your mIRC to show a speacify number of chars, you have to use $left...
Regards, KathY
|
|
|
|
Joined: Sep 2003
Posts: 4,230
Hoopy frood
|
Hoopy frood
Joined: Sep 2003
Posts: 4,230 |
Raw 332:*:{
var %i = 1
while ($wrap($3-,ProFontWindows, 6,450, 0, %i)) {
echo $2 11,15topic $+ $+ $str($chr(160),23) 09:10 [ $ifmatch ]
inc %i
}
halt
}
The last field selects which chunk of the $3- to print, so im looping through untill there isnt one. PS : i use 0 instead of * (personal choice) in the NOT SO optional [word,] parameter since it must be there for line 1 to be displayed.
|
|
|
|
Joined: Jan 2005
Posts: 75
Babel fish
|
OP
Babel fish
Joined: Jan 2005
Posts: 75 |
lol thanks to you both, everything came clear after a while, it just took the pub and several pints :tongue: thanks DaveC.
|
|
|
|
|
|