mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2016
Posts: 8
D
DML1783 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: Mar 2016
Posts: 8
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...

Joined: Oct 2014
Posts: 17
D
Pikka bird
Offline
Pikka bird
D
Joined: Oct 2014
Posts: 17
Code:
on 1:text:!memo*:#warmonger:{
  if ($network == WarmongerIRC) {
    /memoserv send $2 $3-
    /notice $nick -==- Your Message has been sent -==-
    /notice $nick -==- $3- -==-
  }
}

Joined: Mar 2016
Posts: 8
D
DML1783 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: Mar 2016
Posts: 8
can you help me understand what i was doing wrong? all i see that is different is you put a - behind the 3

Joined: Dec 2015
Posts: 148
Vogon poet
Offline
Vogon poet
Joined: Dec 2015
Posts: 148
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.

Joined: Mar 2016
Posts: 8
D
DML1783 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: Mar 2016
Posts: 8
Thanks

Joined: Mar 2016
Posts: 8
D
DML1783 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: Mar 2016
Posts: 8
is there a place to learn scripting for mIRC ?

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

Joined: Oct 2015
Posts: 112
B
Vogon poet
Offline
Vogon poet
B
Joined: Oct 2015
Posts: 112
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

Joined: Feb 2011
Posts: 417
K
Pan-dimensional mouse
Offline
Pan-dimensional mouse
K
Joined: Feb 2011
Posts: 417
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.


Link Copied to Clipboard