Hello all.
I`m looking for a script that checks how many times a certain nick has done an ONTEXT event and if it goes to the max tells the nick.
Example
Nick1 join #channel and does an event, !rules which is one of my ONTEXT events.
Now my bot should pick this up and store it in a variable (i think) because the max amount of times a user can do this event is 1 time , until they either part or quit and then come back, upon which my bot should remove the variable according to Nick1, and reset it for them.
Nick2 joins in and they do a different ONTEXT event which they are allowed to execute 3 times.
The bot should pick this up and store it until they leave.
I did start to script this kind of thing myself but got stuck, as to how to go about writing such a script, have been searching all over the internet all to no avail.
The problem i would have with this type of script is, sometimes i dont know who is gonna come into my channel and trigger the ONTEXT event, because i have an auto welcome message upon anybody joining the channel, displaying the !rules event for them to type. I did consider that anybody typing this could cause a flood and try to kick the bot off, but i thought maybe i could limit how many times the event could be used.
I was looking at hash tables, but unsure about them, maybe i could do it with such an item.
Thanks if anybody can help me or point me in the right direction
ShadowDemon
mIRC V6.03