Originally Posted By: Blas
If I understand correctly, you are simply wanting to reward points based on the number of bits cheered, and the actual emote used to cheer is irrelevant? If that's the case, it seems like it would be much easier to just use message tags. Also, your current script can be easily exploited by anyone "faking cheers" by simply typing the cheer's in the chat even though they do not have any bits.

I'm still open to completely new suggestions, if you have any because I would like to keep exploits to a minimum, obviously. The emotes being used are relevant aswell, as this is about adding points for every bit received, although I guess it works because Kappa1 is still a bit, just like Cheer1.

What I want the script to recognize:

Cheers by using Emotes (Kappa[Amount], Kreygasm[Amount], SwiftRage[Amount])
Cheers with regular cheers (Cheer[Amount])
The amount of cheers entered (Kappa10 Cheer1 etc. etc.)
The complete total of the entire message with different emotes/cheers and amounts
The user cheering

Whenever someone sends bits in any way(In a chat message), I want my script to calculate the total worth of the message( For example; 1 + 10 + 1 + 100 + 1 = 113 bits) and write a 10% value of the bits to their points (= 11.3). I hope this is possible with MIRC.

Originally Posted By: Blas

I'm not sure if you have message tags enabled already, if not, you will need to manually activate them. It doesn't hurt to enable "commands" and "membership" either while you're at it:

ON *:CONNECT: IF ($server == tmi.twitch.tv) CAP REQ :twitch.tv/commands twitch.tv/tags twitch.tv/membership

After making sure that you have message tags enabled, the script used would be as simple as the following:

ON *:TEXT:*:#: {
  IF ($msgtags(bits).key) {
    msg $chan thanks for the $msgtags(bits).key cheers!
    ;do other stuff here like writeini

Although I already had Membership, I'll add the other two aswell. If this more simple script works without exploits, I'll happily use it, although I do need it to be able to calculate the total of every message