mIRC Homepage
Posted By: adamb53 where would i do this? - 06/04/06 02:46 AM
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.
Posted By: bwr30060 Re: where would i do this? - 06/04/06 03:09 AM
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?
Posted By: xDaeMoN Re: where would i do this? - 06/04/06 06:15 AM
Please provide your code so we may have an idea of what you're talking about. smile
Posted By: adamb53 Re: where would i do this? - 06/04/06 06:38 PM
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
Posted By: xDaeMoN Re: where would i do this? - 06/04/06 06:43 PM
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
} 
Posted By: adamb53 Re: where would i do this? - 06/04/06 09:41 PM
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 "@"
Posted By: xDaeMoN Re: where would i do this? - 06/04/06 10:52 PM
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
© mIRC Discussion Forums