mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2015
Posts: 8
E
ekwag Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
E
Joined: Oct 2015
Posts: 8
I had a different question here, but I solved it. Currently, I am letting users of the chat get points, which will be added to a variable that uses %points $+ $nick (here is the code that does it)

on *:TEXT:!addpoint*:#: {
if ($nick isop #) {
inc %points $+ $nick
set -u10 %floodpoints On
set -u30 %floodpoints. $+ $nick On
msg $chan $nick has %points [ $+ [ $nick ] ] points
}
}

So, in my variables, I have something like this:
%pointsuser1 1
%pointsuser2 3
%pointsuser3 7

Now, I want the ability to reset all the %points variables, which will have many people from chat. Is it possible to reset them all at the same time? Or will I have to set each individual user's points variable to 0?

thanks

Last edited by ekwag; 03/02/16 06:18 AM.
Joined: Dec 2008
Posts: 1,483
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,483
You can use /unset %pointsuser* in order to delete all the users. if you want to set an other value into each of them you must follow the loop method.


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Oct 2015
Posts: 8
E
ekwag Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
E
Joined: Oct 2015
Posts: 8
That worked perfectly, you're always a great help


Link Copied to Clipboard