User info....
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

User info....

Started by NemeziS, 26 September, 2004, 00:35:25

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

NemeziS

Hi!
I'm using this userinfo script:
Bot = "Hub-Security" 

function Main() 
frmHub:RegBot(Bot) 
end 

function DataArrival(user, data) 
if( strsub(data, 1, 1) == "<" ) then 
-- remove end pipe 
data=strsub(data,1,strlen(data)-1) 
-- parse the command 
s,e,cmd = strfind( data, "%b<>%s+(%S+)" ) 

 
if (cmd=="~info" or cmd=="~info" ) then 
UserInfo(user, data) 
return 1 
end 
end 
end 

function GetArgML(data) 
s,e,cmd,arg = strfind(data, "%b<>%s+(%S+)%s+(%S+)%s*") 
return arg 
end 

function UserInfo(user, data) 
who=GetArgML(data) 
local usr = GetItemByName(who) 
user:SendPM(Bot, "here is the info from: "..who.." |") 
-- now whe know the user lets extract the info 
-- ip of the user 
user:SendPM(Bot, "ip: "..usr.sIP.." |") 
-- client type and version 
if (strfind(usr.sMyInfoString," 4 then 
limiter = limiter / 1024 
end 
end 
user:SendPM(Bot, "upload limited: "..limiter.." Kb/s |") 
end 
-- bandwidth download limiter 
_,b, dlimiter = strfind(usr.sMyInfoString,"D:(%x+)") 
if dlimiter ~= nil then 
user:SendPM(Bot, "download limited: "..dlimiter.." Kb/s |") 
end 
end


I wanted also to add here an info about sharesize, email, connection type, tag, description of user, user segment (example 255.255.255.*** or 111.111.111.***) and how many hubs are open (including my hub).

Who can help me with that?
--LUA forever! =)

nErBoS

#1
Hi,

Search in the Finished scripts section for the Offline userinfo by NightLitch.

Best regards, nErBoS
--## nErBoS Spot ##--

BottledHate

QuoteOriginally posted by Mutor
Stop pulling the authors notes/credits out of the scripts.

Would it kill you jerks to leave this in?



-- user info script by lallo82
-- functions by plop (great work)

 
This shit is really starting to tick me off.
They didnt spend time on this so you could blow them off

indeed.

-BH
Homepage: www.bottledhate.webhop.org

Compiling  Lua scripts is LAME!!!!!

SMF spam blocked by CleanTalk