mIRC Home    About    Download    Register    News    Help

Print Thread
E
endlos
endlos
E
Hello guys

I am the bot in my channel, and everybody can paste and trigger events, but I cant (being the bot). Is there something I can add to trigger those actions when I paste to the channel too??

Code:
ON 1:TEXT:*Your spies all return safely to your camp*:#endlos:{ /koc-set-sab $$1- }


For example, in my # :

Quote:
<IB> Your spies successfully enter EvilGuy's armory undetected, and destroy 2 of the enemy's Blackpowder Missile stockpile. Your spies all return safely to your camp.
<endlos> [BoT] IB sabbed 2 Blackpowder Missiles from EvilGuy

<endlos> Your spies successfully enter EvilGuy's armory undetected, and destroy 2 of the enemy's Blackpowder Missile stockpile. Your spies all return safely to your camp.
... nothing frown


Thanks

Joined: Apr 2006
Posts: 464
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
Yes you can.

First of all, the idea of an bot is, that it is a separate client, dedicated to performing things.
So, I would suggest setting up a second version of mIRC that will eighter be the bot (dedicated to performing stuff), or that it will be your main client.

Anyway, the on text events only trigger when other people type something. That's why its also called remote scripts.

If you want it to work for yourself as well, you should use on input. Since that will trigger when you type something yourself.

Code:
ON 1:TEXT:*Your spies all return safely to your camp*:#endlos:{
  koc-set-sab $$1-
}


on 1:INPUT:#endlos:{
  if (*Your spies all return safely to your camp* iswm $1-) {
    koc-set-sab $1-
  }
}

E
endlos
endlos
E
Thanks for all, that solves my problem ^_^

another quick question, I have many
Code:
ON 1:TEXT:*..text1...*:#endlos:{ thing here }
ON 1:TEXT:*..text1...*:?:{ thing here }

thats the same in channel(#) and query(?), can I merge them as they do the same??
like:
Code:
ON 1:TEXT:*..text1...*:#endlos,?:{ thing here }




Joined: Nov 2006
Posts: 1,552
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,552
Try this:
Code:
alias -l triggerchans { return #endlos #anotherchan #bla }

on 1:text:*matchtext*:*: { 
  if (($query($target)) || ($istok($triggerchans,$target,32))) { echo -s triggering at $target }
}


Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
Yes you can. I first thought that you can't, but when I tested it and it worked.

E
endlos
endlos
E
mm.. couldnt merge (#) and (?)

but anyway.. my 1st question is answered ^_^

Thanks.


Link Copied to Clipboard