mIRC Home    About    Download    Register    News    Help

Print Thread
C
Codica
Codica
C
I have a bot that tracks how many times a user said something. A lot of people want their own tracker, and I'm not always at my computer.

Is there a way to add script to a part in my remote.ini?
I don't want it to end up all the way at the end, as I have some ON *:TEXT:*:#:{ there, blocking all other text-based triggers there.

Joined: Dec 2013
Posts: 771
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 771
Create a new file to be able to have multiple events that uses the same trigger.

File > New

C
Codica
Codica
C
That explains how to get around the ON *:TEST:*:#:{ problem.

Now how do I add script to this .ini using a command? With mIRC using the "n51=<code here>" and all.

Joined: Jan 2004
Posts: 1,330
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,330
In general, you should not be. There's probably another way to accomplish what you're doing.

C
Codica
Codica
C
Basically I have this piece of code:

Code:
on *:TEXT:*[text]*:#:{
  if ($nick == [person]) {
    var %[person]current $wildtok($1-,*[text]*,0,32)
    inc %[person] %[person]current
  }
}

on *:text:![person]:#:{ 
  if ($chan == #teamdoge) { HALT }
  if ($($+(%,flood.,$nick),2)) { notice $nick Please do not spam the bot. | return }
  set -u10 %flood. $+ $nick On
  msg $chan [person] has said [text] %[person] times.
}


I basically want a way to add this piece of code every time i type a command. How do I do this without adding code to the .ini?


Link Copied to Clipboard