mIRC Home    About    Download    Register    News    Help

Print Thread
find count and show character in text #268388 19/01/21 06:09 AM
Joined: Jan 2021
Posts: 2
R
repdientu Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
R
Joined: Jan 2021
Posts: 2
Hello

i see that channel have some one find and count , show the character
Quote

[12:58:23] * moon was kicked by abc ( the letter M has 1 XOON)
Join: 0.78
[12:58:24] * moon (War@moon.chatvn.net) has joined #War
[12:58:24] * ChatVN sets mode: +o moon
[12:58:24] * moon was kicked by abc ( the letters O have 2 MXXN)
Join: 0.811
[12:58:25] * moon (War@moon.chatvn.net) has joined #War
[12:58:25] * ChatVN sets mode: +o moon
[12:58:25] * moon was kicked by abc ( the letters O have 2 MXXN)
Join: 0.78
[12:58:26] * moon (War@moon.chatvn.net) has joined #War
[12:58:26] * ChatVN sets mode: +o moon
[12:58:26] * moon was kicked by abc (the lĂȘtter N has 1 MOOX)


how is he do that ? thank you

Re: find count and show character in text [Re: repdientu] #268397 20/01/21 07:57 PM
Joined: Jan 2004
Posts: 1,510
maroon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 1,510
It's not clear how to choose which letter is counted, but you can find how to count from /help $count

like with:

//echo -a $count(moon,n)

and you can capitalize them and replace them with:

//echo -a $upper( $replace(moon,o,x) )

You can find additional examples of $replace and other identifiers at https://en.wikichip.org/wiki/mirc/identifiers/$replace
Note that $replace and $replacex have 2 similar but different behaviors.

Re: find count and show character in text [Re: maroon] #268400 21/01/21 04:43 AM
Joined: Jan 2021
Posts: 2
R
repdientu Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
R
Joined: Jan 2021
Posts: 2
thank you,
it is game rekick script. the enemy is in reason kick. can you write script to do that ?

Last edited by repdientu; 21/01/21 04:44 AM.
Re: find count and show character in text [Re: repdientu] #268404 21/01/21 11:01 AM
Joined: Jan 2004
Posts: 1,510
maroon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 1,510
to do what? i still have no clue what criteria is used to decide who to kick, and how to decide which string to be compared against their nick