mIRC Home    About    Download    Register    News    Help

Print Thread
#146593 06/04/06 02:46 AM
Joined: Mar 2006
Posts: 19
A
adamb53 Offline OP
Pikka bird
OP Offline
Pikka bird
A
Joined: Mar 2006
Posts: 19
my first part is

Code:
var %msg
if ($1 == !) %msg = notice $nick
elseif ($1 == @) %msg = msg $chan


i want to know how i would put this into the code.

#146594 06/04/06 03:09 AM
Joined: May 2005
Posts: 449
Fjord artisan
Offline
Fjord artisan
Joined: May 2005
Posts: 449
I'm not sure what you want exactly. Do you want an alias to send someone a message, or a remote to send someone a message when it is triggered by text?

#146595 06/04/06 06:15 AM
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
Please provide your code so we may have an idea of what you're talking about. smile


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
#146596 06/04/06 06:38 PM
Joined: Mar 2006
Posts: 19
A
adamb53 Offline OP
Pikka bird
OP Offline
Pikka bird
A
Joined: Mar 2006
Posts: 19
i want it so other ppl type something like !clan and it notices the info and when they type @clan it sends a msg to the channel, the info it send is what i set it to be for the word "clan" but there are also other triggers like "news" that follow the same commands. i dont have a code to show really cause i dont know how to put what i have into it

#146597 06/04/06 06:43 PM
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
I think you have already asked this before.

Code:
  on *:text:*:#: {
var %msg, %l = $left($1,1)
if (%l == !) %msg = notice $nick
elseif (%l == @) %msg = msg $chan
%msg message here
} 


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
#146598 06/04/06 09:41 PM
Joined: Mar 2006
Posts: 19
A
adamb53 Offline OP
Pikka bird
OP Offline
Pikka bird
A
Joined: Mar 2006
Posts: 19
i did but it didnt work and when i asked how to do it no1 answered...

and how would it know what the person said and what message to send? like how does it know that "clan" is the word after "!" or "@"

Last edited by adamb53; 06/04/06 09:45 PM.
#146599 06/04/06 10:52 PM
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
Code:
 on *:text:*:#: {
var %l = $left($1,1), %msg = $iif(%l == !,notice $nick,$iif(%l == @,msg $chan)), %r = $right($1,-1)
if (%r == clan) %msg clan message here
elseif (%r == stuff) %msg stuff message here
}  


Try that


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!

Link Copied to Clipboard