egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

!haxip

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
Snorly
Voice


Joined: 17 Apr 2006
Posts: 25

PostPosted: Thu Apr 20, 2006 12:52 pm    Post subject: !haxip Reply with quote

Hello i want a script that resolved haxip to ip

example
* <nick> !haxip d5fa:166b
* <eggdrop> d5fa:166b <- is -> 213.250.22.107
tnx Smile
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Fri Apr 21, 2006 12:15 am    Post subject: Reply with quote

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] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
Snorly
Voice


Joined: 17 Apr 2006
Posts: 25

PostPosted: Fri Apr 21, 2006 11:22 am    Post subject: Reply with quote

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 :>
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Fri Apr 21, 2006 11:43 am    Post subject: Reply with quote

D5FA166Bh = 3589936747d

Hexadecimal to decimal, and then what?
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Fri Apr 21, 2006 2:01 pm    Post subject: Reply with quote

I'd "split" the 4byte hex string with string range into 4 substrings and use format to print them like that:
Code:
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 Smile
Quote:
[-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...
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber