Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Technical Support » Other » Another IRC scripting question
Another IRC scripting question [message #273946] Tue, 17 July 2007 21:48 Go to next message
BlueThen is currently offline  BlueThen
Messages: 2402
Registered: February 2006
Karma: 0
General (2 Stars)
Any way to get a parameter string to retrieve a dns of a certain ip?
It'd make life a lot easier.


I couldn't get $dns to work... if retrieving a dns is what it's supposed to do.


BTW, don't tell me to try /help. I already tried it.

[Updated on: Tue, 17 July 2007 21:49]

Report message to a moderator

Re: Another IRC scripting question [message #273951 is a reply to message #273946] Tue, 17 July 2007 22:20 Go to previous messageGo to next message
Ryu is currently offline  Ryu
Messages: 2833
Registered: September 2006
Location: Liverpool, England.
Karma: 0
General (2 Stars)

tryed $ip ?

Tell Me

Sometimes the most simplest of things work!


Presence is a curious thing, if you think you need to prove it... you probably never had it in the first place.
Re: Another IRC scripting question [message #273972 is a reply to message #273946] Wed, 18 July 2007 01:24 Go to previous messageGo to next message
Tunaman
Messages: 1190
Registered: January 2005
Karma: 2
General (1 Star)
Go to the index and then search for $dns; it explains how to use it and where. I don't exactly know if there's a way you could use it in the way you intend, though.

http://img694.imageshack.us/img694/9055/tunamanlmao.png

[Updated on: Wed, 18 July 2007 01:27]

Report message to a moderator

Re: Another IRC scripting question [message #274047 is a reply to message #273972] Wed, 18 July 2007 11:51 Go to previous messageGo to next message
BlueThen is currently offline  BlueThen
Messages: 2402
Registered: February 2006
Karma: 0
General (2 Stars)
Quote:


$ip

Returns your IP address.



and for god sakes, read my post. I already used /help. I just can't get $dns to work.

I tried $dns(0).*.*.*.*, but that just say's "invalid parameter" on every action i try it on (/say, /msg, /notice, etc). Note that i didn't use the stars, but a actual ip.
Re: Another IRC scripting question [message #274049 is a reply to message #273946] Wed, 18 July 2007 11:58 Go to previous messageGo to next message
Tunaman
Messages: 1190
Registered: January 2005
Karma: 2
General (1 Star)
I read your post. It clearly states in the help file how to use it.. :\ Please actually read the help file if you're going to get mad over people telling you to read it. It is very easy to understand.

http://img694.imageshack.us/img694/9055/tunamanlmao.png
Re: Another IRC scripting question [message #274055 is a reply to message #274049] Wed, 18 July 2007 12:12 Go to previous messageGo to next message
BlueThen is currently offline  BlueThen
Messages: 2402
Registered: February 2006
Karma: 0
General (2 Stars)
Tunaman wrote on Wed, 18 July 2007 13:58

I read your post. It clearly states in the help file how to use it.. :\ Please actually read the help file if you're going to get mad over people telling you to read it. It is very easy to understand.

I'm not mad...

I was asking because $dns didn't work, and if there was anything else.

There's a $raddress, but that also can only be used on DNS.
Re: Another IRC scripting question [message #274079 is a reply to message #273946] Wed, 18 July 2007 14:31 Go to previous messageGo to next message
Cat998
Messages: 1081
Registered: January 2004
Location: Austria, Vienna
Karma: 0
General (1 Star)
Moderator/Captain

You are talking about the programm mIRC in this topic I guess...

If you want to use this you need to know how to use mIRC Remote script events.

Everything about mIRC scripting is explained in its help file.
Because mIRC first has to ask a DNS server, there is a delay,
and therefore there is no identifier returning something,
but an alias event getting called when the reply of the DNS server is received.

Quote:

on DNS



The on DNS event triggers when a /dns query either succeeds or fails.



Format: on <level>:DNS:<commands>

Example: on 1:DNS:/notice $me Resolved: $raddress



Examples



on 1:DNS:{

var %n = $dns(0)

echo 4 Found %n addresses

while (%n > 0) {

echo 4 dns: $dns(%n) nick: $dns(%n).nick addr: $dns(%n).addr ip: $dns(%n).ip

dec %n

}

}



Note: This event is also triggered if you try to /dns a nickname, and the nickname is not on IRC.



The $dns(N) identifier

This identifier can be used only in the on DNS event, and returns the address that was resolved and any associated IP addresses.



Properties: nick, addr, ip



$dns(N) without a property returns the address being resolved.



You can use N = 0 to return the number of addresses found.



You can use $dns(0).nick/addr/ip to reference properties if an address couldn't be resolved.



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: Wed, 18 July 2007 14:39]

Report message to a moderator

Re: Another IRC scripting question [message #274327 is a reply to message #274079] Thu, 19 July 2007 19:18 Go to previous messageGo to next message
BlueThen is currently offline  BlueThen
Messages: 2402
Registered: February 2006
Karma: 0
General (2 Stars)
Well, since I can't get a parameter string to retrieve a dns or anything,

I got another question... I can't get a simple command like this:
   /write -ils$remove($strip($13),$chr(41)) test.txt - $3


to work. Is there any way to get a parameter string to work with a switch?

[Updated on: Thu, 19 July 2007 19:18]

Report message to a moderator

Re: Another IRC scripting question [message #274543 is a reply to message #274327] Fri, 20 July 2007 15:13 Go to previous messageGo to next message
BlueThen is currently offline  BlueThen
Messages: 2402
Registered: February 2006
Karma: 0
General (2 Stars)
Nevermind. I figured it out. Smile


Word $+ Parameter
=
Quote:

WordParameter

Re: Another IRC scripting question [message #275289 is a reply to message #273946] Tue, 24 July 2007 11:13 Go to previous messageGo to next message
AmunRa is currently offline  AmunRa
Messages: 574
Registered: September 2005
Location: Lilburn, Georgia
Karma: 0
Colonel

ever occur to you that irc scripting sucks? lolz
Re: Another IRC scripting question [message #275301 is a reply to message #275289] Tue, 24 July 2007 12:05 Go to previous messageGo to next message
Cat998
Messages: 1081
Registered: January 2004
Location: Austria, Vienna
Karma: 0
General (1 Star)
Moderator/Captain

AmunRa wrote on Tue, 24 July 2007 20:13

ever occur to you that irc scripting sucks? lolz


It does not ! It allows you to write useful scripts in a few secs Razz
Well, I wouldn't recommend it for bigger programms...


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: Another IRC scripting question [message #275310 is a reply to message #273946] Tue, 24 July 2007 12:21 Go to previous messageGo to next message
AmunRa is currently offline  AmunRa
Messages: 574
Registered: September 2005
Location: Lilburn, Georgia
Karma: 0
Colonel

well yeh
like when people try to make ren bots with it Sarcasm
Re: Another IRC scripting question [message #275342 is a reply to message #275310] Tue, 24 July 2007 15:36 Go to previous messageGo to next message
BlueThen is currently offline  BlueThen
Messages: 2402
Registered: February 2006
Karma: 0
General (2 Stars)
I only have a few weeks of experience... lol
Re: Another IRC scripting question [message #275343 is a reply to message #273946] Tue, 24 July 2007 15:39 Go to previous messageGo to next message
AmunRa is currently offline  AmunRa
Messages: 574
Registered: September 2005
Location: Lilburn, Georgia
Karma: 0
Colonel

Private Sub Form_Load()
MsgBox "hay thar world!", vbCritical
Unload Me
End Sub

Re: Another IRC scripting question [message #275360 is a reply to message #275343] Tue, 24 July 2007 19:23 Go to previous message
Cat998
Messages: 1081
Registered: January 2004
Location: Austria, Vienna
Karma: 0
General (1 Star)
Moderator/Captain

AmunRa wrote on Wed, 25 July 2007 00:39

Private Sub Form_Load()
MsgBox "hay thar world!", vbCritical
Unload Me
End Sub




Go away


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: Graphics card- Bang for your buck.
Next Topic: Soundtrack
Goto Forum:
  


Current Time: Sun Nov 24 06:31:46 MST 2024

Total time taken to generate the page: 0.01054 seconds