Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Other Products » mIRC Scripting
mIRC Scripting [message #256720] Tue, 01 May 2007 19:40 Go to next message
BlueThen is currently offline  BlueThen
Messages: 2402
Registered: February 2006
Karma: 0
General (2 Stars)
I'm new to mIRC scripting, and I'm not planning to learn much. I already learned partial remotes. The script
On *:text:*hate:#: { //msg $chan I hate you too }

works, but how do I get it to only reply to a certain username?
Re: mIRC Scripting [message #256752 is a reply to message #256720] Wed, 02 May 2007 05:13 Go to previous messageGo to next message
Yrr is currently offline  Yrr
Messages: 556
Registered: October 2006
Location: Germany
Karma: 0
Colonel

$nick contains the name of the message sender

on *:TEXT:*hate:#:{ notice $nick I hate you too }


Re: mIRC Scripting [message #256769 is a reply to message #256720] Wed, 02 May 2007 07:42 Go to previous messageGo to next message
Cat998
Messages: 1081
Registered: January 2004
Location: Austria, Vienna
Karma: 0
General (1 Star)
Moderator/Captain

There is a wonderful help file in mirc, which does not leave any questions open. Simply type /help and all your questions are getting answered xD
No really, that's the way I learnt it, I never needed any other ressource than this help file, and now I'm a mirc guru ^^


When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter then "Yes"

Programming is like sex: one mistake and you have to support it for the rest of your life

Want the best answers? Ask the best questions!

"So long, and thanks for all the fish."
Re: mIRC Scripting [message #256815 is a reply to message #256752] Wed, 02 May 2007 12:28 Go to previous messageGo to next message
BlueThen is currently offline  BlueThen
Messages: 2402
Registered: February 2006
Karma: 0
General (2 Stars)
Neku wrote on Wed, 02 May 2007 07:13

$nick contains the name of the message sender

on *:TEXT:*hate:#:{ notice $nick I hate you too }


Not really what I was asking...

I'm wanting it to only reply to a certain nickname, and not others.

Also, I want it to repeat something after //msg.

[Updated on: Wed, 02 May 2007 12:39]

Report message to a moderator

Re: mIRC Scripting [message #256860 is a reply to message #256720] Wed, 02 May 2007 17:19 Go to previous messageGo to next message
cmatt42 is currently offline  cmatt42
Messages: 2057
Registered: July 2004
Karma: 0
General (2 Stars)
on *:text:*hate:#: {
  if ($nick == CertainNickHere){
    msg $chan I hate you too
  }
}


If you want to repeat something, use timers. If you need help, you can join #scripting in the n00bstories IRC network.


[Updated on: Wed, 02 May 2007 17:21]

Report message to a moderator

Re: mIRC Scripting [message #256863 is a reply to message #256860] Wed, 02 May 2007 17:36 Go to previous messageGo to next message
BlueThen is currently offline  BlueThen
Messages: 2402
Registered: February 2006
Karma: 0
General (2 Stars)
* /if: insufficient parameters (line 15, script.ini)

I'll join there and see if I can find anything out. Thanks.
Re: mIRC Scripting [message #256878 is a reply to message #256720] Wed, 02 May 2007 18:55 Go to previous messageGo to next message
cmatt42 is currently offline  cmatt42
Messages: 2057
Registered: July 2004
Karma: 0
General (2 Stars)
I've given him the solution in the channel. Whoever wants to know, you need to put a space between 'if ($nick == CertainNickHere)' and '{'.

Also, if you want it to respond to (something) hate (something), add another '*' after 'hate' in the trigger text, because the way it is, it will only trigger if someone says something then hate. It won't trigger if they say something after hate.


[Updated on: Wed, 02 May 2007 18:59]

Report message to a moderator

Re: mIRC Scripting [message #256886 is a reply to message #256878] Wed, 02 May 2007 19:55 Go to previous messageGo to next message
BlueThen is currently offline  BlueThen
Messages: 2402
Registered: February 2006
Karma: 0
General (2 Stars)
Gah. Still can't get it to work. I'm trying to get it to get my username to say stuff by my other username maybe from a different computer. (mainly to use from ingame using IRC bot)
Re: mIRC Scripting [message #256897 is a reply to message #256769] Wed, 02 May 2007 21:49 Go to previous messageGo to next message
Genesis2001
Messages: 1397
Registered: August 2006
Karma: 0
General (1 Star)
Cat998 wrote on Wed, 02 May 2007 08:42

There is a wonderful help file in mirc, which does not leave any questions open. Simply type /help and all your questions are getting answered xD
No really, that's the way I learnt it, I never needed any other ressource than this help file, and now I'm a mirc guru ^^



Agreed! The mIRC help file is the greatest tool I've learned to use. But one piece of advice...DEBUG...DEBUG...DEBUG!!!! Learn to debug well...


-MathK1LL
Re: mIRC Scripting [message #257061 is a reply to message #256897] Thu, 03 May 2007 12:56 Go to previous messageGo to next message
BlueThen is currently offline  BlueThen
Messages: 2402
Registered: February 2006
Karma: 0
General (2 Stars)
I used the /help thing. But it barely told me anything I needed to know.
Re: mIRC Scripting [message #257066 is a reply to message #256720] Thu, 03 May 2007 13:19 Go to previous messageGo to next message
Cat998
Messages: 1081
Registered: January 2004
Location: Austria, Vienna
Karma: 0
General (1 Star)
Moderator/Captain

Then you are blind.

--> /help on TEXT
--> /help If-then-else statements
--> /help Remote Identifiers

That's all you need.
Examples are included everywhere, so have fun Thumbs Up


When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter then "Yes"

Programming is like sex: one mistake and you have to support it for the rest of your life

Want the best answers? Ask the best questions!

"So long, and thanks for all the fish."

[Updated on: Thu, 03 May 2007 13:20]

Report message to a moderator

Re: mIRC Scripting [message #257080 is a reply to message #257066] Thu, 03 May 2007 14:01 Go to previous messageGo to next message
BlueThen is currently offline  BlueThen
Messages: 2402
Registered: February 2006
Karma: 0
General (2 Stars)
Still didn't find what I was looking for. :/
Re: mIRC Scripting [message #257082 is a reply to message #256720] Thu, 03 May 2007 14:10 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
If you still don't get it, you should give up.

I'm using a spoiler because this is a lot of infomation.
Toggle Spoiler
Re: mIRC Scripting [message #257084 is a reply to message #257082] Thu, 03 May 2007 14:12 Go to previous messageGo to next message
BlueThen is currently offline  BlueThen
Messages: 2402
Registered: February 2006
Karma: 0
General (2 Stars)
I did it!

I used

on *:text:*!say**:#: {
if ($nick == bluethen2, bluethen){
msg $chan $2-
}
}

But other people can use it. What do I need to change?
Re: mIRC Scripting [message #257100 is a reply to message #256720] Thu, 03 May 2007 14:48 Go to previous messageGo to next message
Genesis2001
Messages: 1397
Registered: August 2006
Karma: 0
General (1 Star)
:/ Simpler code:

on *:TEXT:!say*:#:{
 if (($nick == bluethen2) || ($nick == bluethen)) {
  msg # $2-
 }
 elseif ($nick isop #) { msg # $2- }
}



-MathK1LL

[Updated on: Thu, 03 May 2007 14:48]

Report message to a moderator

Re: mIRC Scripting [message #257102 is a reply to message #257100] Thu, 03 May 2007 14:54 Go to previous messageGo to next message
BlueThen is currently offline  BlueThen
Messages: 2402
Registered: February 2006
Karma: 0
General (2 Stars)
umm... may be simpler... but other people than bluethen or bluethen2 can still use it. :/
Re: mIRC Scripting [message #257154 is a reply to message #257102] Thu, 03 May 2007 17:25 Go to previous messageGo to next message
BlueThen is currently offline  BlueThen
Messages: 2402
Registered: February 2006
Karma: 0
General (2 Stars)
Solved.


No longer need this topic. A mod can perhaps lock or delete this to avoid pointless bumps?

err just let this die down.
Re: mIRC Scripting [message #257156 is a reply to message #256720] Thu, 03 May 2007 17:48 Go to previous message
Cat998
Messages: 1081
Registered: January 2004
Location: Austria, Vienna
Karma: 0
General (1 Star)
Moderator/Captain

ok sir Rocked Over -> locked

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter then "Yes"

Programming is like sex: one mistake and you have to support it for the rest of your life

Want the best answers? Ask the best questions!

"So long, and thanks for all the fish."
Previous Topic: Turn off the Hud??
Next Topic: Newest brenbot release?
Goto Forum:
  


Current Time: Tue Dec 03 12:31:22 MST 2024

Total time taken to generate the page: 0.01117 seconds