mIRC Homepage
Posted By: DML1783 Simple Script - Will not work - Please Help - 26/03/16 04:53 PM
Okay im new.. Please help me understand why this does not work...
on 1:text:!memo:#warmonger:{
if ($network == WarmongerIRC) {
/memoserv send $2 $3
/notice $nick -==- Your Message has been sent -==-
/notice $nick -==- $3 -==-
}
}

I am using mIRC 7.43 .. I have tried every varation i can think of.. the only way to get it to work is if i hardcode the user... example

/memoserv send username message

What i want to happen is
Username A types in the channel !memo [nick] [message]

What is wrong with this?

Please help...
Code:
on 1:text:!memo*:#warmonger:{
  if ($network == WarmongerIRC) {
    /memoserv send $2 $3-
    /notice $nick -==- Your Message has been sent -==-
    /notice $nick -==- $3- -==-
  }
}
can you help me understand what i was doing wrong? all i see that is different is you put a - behind the 3
Your original text even was only triggered when someone said "!memo" and nothing else. drowsy added "*" to the end, which means anything that starts with "!memo" will trigger it, e.g. "!memohelloworld" or "!memo hello world".

The other change that drowsy did was the "-" after "$3", which means it will list all the tokens after that too. "$3" alone would only list the third token.
Thanks
is there a place to learn scripting for mIRC ?

.. a place to understand what the commands do ?
$2 $1 ect...
Posted By: Blas Re: Simple Script - Will not work - Please Help - 28/03/16 09:51 PM
Originally Posted By: DML1783
is there a place to learn scripting for mIRC ?

.. a place to understand what the commands do ?
$2 $1 ect...

Typing /help in mIRC is pretty helpful. smile
http://en.wikichip.org/wiki/mirc

http://script.quakenet.org/wiki/Main_Page

As far as the $1 $2 Guess this page will help. http://en.wikichip.org/wiki/mirc/aliases#Commands


mIRC Scripting IDE. http://www.msldev.com/ - Non installer versions can be found here: http://www.msldev.com/download/win/ - you will want the latest_build.zip - Useful in finding syntax issues.
© mIRC Discussion Forums