mIRC Home    About    Download    Register    News    Help

Print Thread
#107850 13/01/05 06:38 PM
Joined: Jan 2005
Posts: 75
Z
ztnaraM Offline OP
Babel fish
OP Offline
Babel fish
Z
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
Code:
 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.

#107851 13/01/05 06:57 PM
Joined: Aug 2004
Posts: 16
I
Pikka bird
Offline
Pikka bird
I
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:
Code:
raw 332:*:{ echo $2 11,15topic $+  $+ $str($chr(160),23) 09:10  $wrap($3-,ProFontWindows, 6,450, *, 1) | halt } 


Regards,
KathY
#107852 13/01/05 07:07 PM
Joined: Jan 2005
Posts: 75
Z
ztnaraM Offline OP
Babel fish
OP Offline
Babel fish
Z
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.

#107853 13/01/05 09:40 PM
Joined: Aug 2004
Posts: 16
I
Pikka bird
Offline
Pikka bird
I
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
#107854 13/01/05 10:02 PM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Code:
 
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.

#107855 14/01/05 12:30 AM
Joined: Jan 2005
Posts: 75
Z
ztnaraM Offline OP
Babel fish
OP Offline
Babel fish
Z
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.


Link Copied to Clipboard