mIRC Home    About    Download    Register    News    Help

Print Thread
#111458 15/02/05 11:40 PM
Joined: Dec 2004
Posts: 40
B
bog__ Offline OP
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Dec 2004
Posts: 40
ok someone notice me like this

-Mon0- Name L_Oligo Rank 38 www.pakom.co.yu

Now how do i save the second word (the name L_Oligo) and fourght word (his rank) to the %name and %rank

Code:
  
on 1:notice:*Name*:*:{
  .echo lolam
  /set %name $2
  /set %rank $4
  if ($4 < 300) {
    /go $5
  }
}


but this isnt working
on the %name %rank and rank i geth something like this data
%name 3,972
can someone help

#111459 15/02/05 11:53 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
/help $strip()
Code:
on *:notice:*Name*:*:{
  .echo lolam
[color:blue]  tokenize 32 $strip($1-)[/color]
  set %name $2
  set %rank $4
  if ($4 < 300) {
    /go $5
  }
}

#111460 16/02/05 07:56 PM
Joined: Dec 2004
Posts: 40
B
bog__ Offline OP
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Dec 2004
Posts: 40
Txnks about that, but still one more problem

if the 4 word from notice is like this 3,888,666,565

can i use this if ($4 < 3888666565)

or i need some way to delite ( , ) from that part of the notice confused

#111461 16/02/05 10:33 PM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
if ($remove($4,$chr(44)) < 3888666565)

$chr(44) is , but u cant put , in there cause its the parameter seperator.


Link Copied to Clipboard