PtokaX forum

Archive => Archived 5.0 boards => Request for scripts => Topic started by: kunal on 04 July, 2005, 19:37:22

Title: IP BOT
Post by: kunal on 04 July, 2005, 19:37:22
Can anyone make me a script for finding ip of users
eg if when we use !ip kunal
his ip is 202.66.54.2
likeways !ip 202.66.54.2
his nick kunal
Title:
Post by: jiten on 04 July, 2005, 19:46:39
QuoteOriginally posted by kunal
Can anyone make me a script for finding ip of users
eg if when we use !ip kunal
his ip is 202.66.54.2
likeways !ip 202.66.54.2
his nick kunal
Search the forum for "IP finder" by Dessamator.

Cheers
Title:
Post by: kunal on 04 July, 2005, 19:53:25
gimme the link
Title:
Post by: Markitos on 04 July, 2005, 20:28:10
QuoteOriginally posted by kunal
gimme the link
Learn
how to seach in the forum (http://board.univ-angers.fr/thread.php?threadid=4556&boardid=4)
 Click
here for the script (http://board.univ-angers.fr/thread.php?threadid=4272&boardid=26&sid=34acf20a1071ede6e644626c386c15e2)


Markitos\
Title:
Post by: kunal on 04 July, 2005, 20:57:18
hey it just the nick using the ip and not ip of the nick
for example it finds !findip 202.54.66.2
nick kunal and not
!findnick kunal
202.54.66.2
Title:
Post by: kunal on 07 July, 2005, 13:22:43
the script works fine but i have 1 problem
when i try to use the ptokax inbuilt cmds it comes
Syntax Error, Syntax = !getip
when i stop the script the inbuilt cmds work properly
pls help
Title: Question
Post by: CaSaNoVa on 07 July, 2005, 16:44:19
To show the message in pm?only for who do it.
Title: Don't work
Post by: CaSaNoVa on 09 July, 2005, 18:22:22
Don't work...nothing in pm...nothing in main  ?(
Title:
Post by: CaSaNoVa on 11 July, 2005, 02:35:51
--IPLog 1.0b LUA 5
--
--by Mutor 7/3/05
--requested by bigfnpump
--
-- Logs user IP & Nick, get info by command
-- Provides right click menu
--
--   +Changes from 1.0
--      +Now retrieves IP from nick input as well as nick from IP input
--
--User Settings----------------------------------------------------------------------------------------------------------------
--
--//-- Botname pulled from the hub
Bot = frmHub:GetHubBotName()
Prefix = "!"         -- Command Prefix
IpCmd = "getip"         -- Get IP User Command
IpMenu = frmHub:GetHubName()   -- Menu name pulled form hub, uses hub name for menu
SubMenu0 ="IP Log"      -- Custom submenu
IPFile="IPLog.dat"
--//--Set your profiles here.
--profile_idx, Commands/Menus enabled [0=no 1=yes], "Profile Name"
IpProfiles = {
[-1] = {0,"Unregistered User"},
Title:
Post by: CaSaNoVa on 11 July, 2005, 16:14:46
LoL Tkx.Now work^_^
Title:
Post by: GeceBekcisi on 09 August, 2005, 22:39:49
Can someone modify this script to show history of IPs used by a nick, and nick used by an IP?

Thanks..
Title:
Post by: Dessamator on 10 August, 2005, 11:36:04
it can be modded but something like that already exists, try using the last version of StatLogger
Title:
Post by: GeceBekcisi on 10 August, 2005, 12:31:25
I just need a script in such a way:
!ipinfo 127.0.0.1


===========================
IP 127.0.0.1 is currently used by (2) users:
===========================
GeceBekcisi
GecceBekcisi
===========================

!iprangeinfo 192.168.1.1-192.168.1.100


===========================
There is (2) Users in IP range 192.168.1.1 - 192.168.1.100
===========================
GeceBekcisi, with IP 192.168.1.2
GecceBekcisi, with IP 192.168.1.3
===========================

!iprangeinfo 192.168


===========================
There is (4) Users in IP range 192.168.1.1 - 192.168.255.255
===========================
GeceBekcisi, with IP 192.168.1.2
GecceBekcisi, with IP 192.168.1.3
GeBecisi, with IP 192.168.2.64
GeeBeki, with IP 192.168.1.3
===========================

!iphistory 127.0.0.1


===========================
IP 127.0.0.1 is used by (3) users:
===========================
G3c3Bekcisi, on 10.08.2005 - 10:20
GeceB3kc1s1, on 10.08.2005 - 10:25
G3c3Bekcisiiii, on 10.08.2005 - 10:27
===========================

!iphistory GeceBekcisi

===========================
User GeceBekcisi have used (8) IPs since 10.08.2005:
===========================
127.0.0.1, on 10.08.2005 - 10:30
192.168.1.2, on 10.08.2005 - 10:35
192.168.1.3, on 10.08.2005 - 10:37
192.168.1.6, on 10.08.2005 - 10:39
192.168.1.50, on 10.08.2005 - 10:41
192.168.1.42, on 10.08.2005 - 10:45
192.168.1.55, on 10.08.2005 - 10:51
192.168.1.52, on 10.08.2005 - 10:52
===========================

!iphistory GeceBekcisi 5

===========================
Last (5) IPs used by GeceBekcisi:
===========================
192.168.1.6, on 10.08.2005 - 10:39
192.168.1.50, on 10.08.2005 - 10:41
192.168.1.42, on 10.08.2005 - 10:45
192.168.1.55, on 10.08.2005 - 10:51
192.168.1.52, on 10.08.2005 - 10:52
===========================

This script would be the ultimate IP bot then :D
Title:
Post by: Dessamator on 10 August, 2005, 15:41:40
wow, thats a database not an ip bot, lol, lets hope mutor is up to it !
Title:
Post by: bastya_elvtars on 10 August, 2005, 18:07:12
The following data structure should be considered (as everything you want to do can be done using it):

iptable=
  {
    [decimal_ip_1]=
      {
        ["user1"]=1,
        ["user2"]=1,
        -- etc.
      },
    [decimal_ip_2]=
      {
        ["user3"]=1,
        ["user4"]=1,
        -- etc.
      },
    -- etc.
  }

The decimal ip conversion looks like:

a.b.c.d -- normal ip

a*256^3+b*256^2+c*256+d -- decimal IP

Hope I could help you.
Title:
Post by: GeceBekcisi on 10 August, 2005, 18:22:25
Sorry but I dont know how to use tables.. I have to study LUA more..
Title:
Post by: bastya_elvtars on 10 August, 2005, 20:19:44
QuoteOriginally posted by GeceBekcisi
Sorry but I dont know how to use tables.. I have to study LUA more..

http://ptxwiki.psycho-chihuahua.net/wikka.php?wakka=LuaOnTables
Title:
Post by: GeceBekcisi on 10 August, 2005, 20:28:14
Wow thats a great how to thanks for the link..
Title:
Post by: bastya_elvtars on 10 August, 2005, 21:30:39
QuoteOriginally posted by GeceBekcisi
Wow thats a great how to thanks for the link..

Another reason to use the links in my sig... :D