This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

!haxip

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
S
Snorly
Voice
Posts: 25
Joined: Mon Apr 17, 2006 2:44 pm

!haxip

Post by Snorly »

Hello i want a script that resolved haxip to ip

example
* <nick> !haxip d5fa:166b
* <eggdrop> d5fa:166b <- is -> 213.250.22.107
tnx :)
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

lol, what's haxip?

hexadecimal IP? where do you get it from?
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
S
Snorly
Voice
Posts: 25
Joined: Mon Apr 17, 2006 2:44 pm

Post by Snorly »

u know webchat is using it ... :>

[17:21:49] * Joins: SnorWEB (d5fa166b@webchat.xs4all.nl)
-
SnorWEB is d5fa166b@webchat.xs4all.nl * [d5fa166b] CGI:IRC User

ident is hax ip :>
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

D5FA166Bh = 3589936747d

Hexadecimal to decimal, and then what?
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

I'd "split" the 4byte hex string with string range into 4 substrings and use format to print them like that:

Code: Select all

puthelp "PRIVMSG $chan :$text = [format {%d.%d.%d.%d} 0x[string range $text 0 1] 0x[string range $text 2 3] 0x[string range $text 4 5] 0x[string range $text 6 7]]"
if the 5th character shall be a :, skip it and continue with "5 6" als indicies.

This should work because :)
[-RO^Bot-] [19:57:06] tcl: evaluate (.tcl): format %d 0x10
[-RO^Bot-] Tcl: 16
Edit: changed from set to puthelp example.
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Post Reply