mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2021
Posts: 2
R
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

Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
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.

Joined: Jan 2021
Posts: 2
R
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.
Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
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


Link Copied to Clipboard