Top Hubbers - Page 4
 

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

Top Hubbers

Started by jiten, 21 March, 2006, 18:39:53

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jiten

Quote from: speedX on 05 October, 2006, 18:42:07
hey jiten.....this tophubbers doesnt give result if the nick is given in small......like for BLITZKRIEG if i type !hubtime blitzkrieg...it shows nick not found.....

and one user in my hub had first logged in with nick ShEvChEnKo7 and thn later SHEVCHENKO7 so there has been a double entry for this guy......

so now wat to do ??

I'd say that you'll have to use the exact nick when using the !hubtime command.

When a user changes his nick's case he must have a reason to do so, and in my point of view it should remain as a separate database entry.

Quote from: Mutor on 10 October, 2006, 23:56:11
You have to use the actual nick [case must match] else there are hub calls made and user objects used that might fail with improper case. Often it's fine to match in lower case. This is not one of those times.


Creative

Jiten, wen i type !tophubbers or !myhubtime, i get the foll error:
scripts\tophub.lua:86: attempt to compare number with nil


Wats the problem???

speedX

Hey jiten, sorry but bugging u for the last time :P
Is it possible to only show the command to all not the output??
Thanking You,

speedX

achiever

hi,

sir this script is giving me error
[16:06] Syntax D:\ptokax\scripts\TopHubbers2.01.lua:328: attempt to perform arithmetic on local `iSeconds' (a nil value)
n its not showing me right click menu
also not showing my average hubtime
n the average hubtime of others also is the same as their session time
eg
========================================
         Stats:
   --------------------------------------------------------------------------------
   - Nick: leon
   - Total uptime: 7 minute(s)
   - Daily average uptime: 7 minute(s)
   - Current Rank: Newbie

but this persons total hub time is 0 months, 0 days, 2 hours, 55 minutes   leon

plzz can u help me sort this out , as i have no idea of srcipting

thks,

achiever.
thks,
achiever.

speedX

Hey jiten,
this script is showing me the following error in Ptokax 0.3.5.2

Quote
[13:08] Syntax ...der\PtokaX DC Hub 0.3.5.2\scripts\TopHubbers2.01.lua:311: 'string.gfind' was renamed to 'string.gmatch'
Thanking You,

speedX

-SkA-

#80
Quote from: speedX on 05 November, 2006, 08:42:30
Hey jiten,
this script is showing me the following error in Ptokax 0.3.5.2


I'm using tophubbers (old version TopHubbers 1.21) with PX 0.3.5.2 and it's working fine, no errors.
???:::??x??em?-N????:::??? ?wN??

BrianzaLand Blog" style="border:0

speedX

Quote from: -SkA- on 05 November, 2006, 09:33:01
I'm using tophubbers (old version TopHubbers 1.21) with PX 0.3.5.2 and it's working fine, no errors.

But the version wich u r using, does it have all the commands of v2.01 ?? If yes thn plzz attach the script.
Thanking You,

speedX

-SkA-

Quote from: speedX on 05 November, 2006, 10:12:49
But the version wich u r using, does it have all the commands of v2.01 ?? If yes thn plzz attach the script.

I really don't think so... I use that script only for !tophubbers command  ::)
???:::??x??em?-N????:::??? ?wN??

BrianzaLand Blog" style="border:0

Naithif

Quote from: speedX on 05 November, 2006, 08:42:30
Hey jiten,
this script is showing me the following error in Ptokax 0.3.5.2
Quote[13:08] Syntax ...der\PtokaX DC Hub 0.3.5.2\scripts\TopHubbers2.01.lua:311: 'string.gfind' was renamed to 'string.gmatch'

Just search for the word 'string.gfind' in the line 311 and rename it to 'string.gmatch' :)

speedX

#84
Thank you dude, its working now.
Thanking You,

speedX

jiten

Quote from: achiever on 31 October, 2006, 11:47:50
hi,

sir this script is giving me error
[16:06] Syntax D:\ptokax\scripts\TopHubbers2.01.lua:328: attempt to perform arithmetic on local `iSeconds' (a nil value)
n its not showing me right click menu
also not showing my average hubtime
n the average hubtime of others also is the same as their session time

Can you give me more details?

Are you using a previous Top Hubbers version's database?
If yes, you'll surely get several and different syntax errors.

Quote from: speedX on 05 November, 2006, 08:42:30
Hey jiten,
this script is showing me the following error in Ptokax 0.3.5.2

I'll update the whole code as soon as possible and make the script compatible with:

QuoteAdded: iLoginTime to userobject in lua.

Creative

hi jiten, wen i type !tophubbers the foll error comes:
TopHubbers2.01.lua:226: attempt to compare two nil values

jiten

Quote from: SwapY on 09 November, 2006, 06:38:47
hi jiten, wen i type !tophubbers the foll error comes:
TopHubbers2.01.lua:226: attempt to compare two nil values


Seems like your TopHubbers' database is corrupt [probably due to an older table structure].

Please stop your script, delete it [tOnliners.tbl] and restart it again.

Creative

Well no doubt this script is gr8............. but i wd like some changes to be made....like,

1] For !myhubtime and for !hubtime <nick> is it possible to keep same command?? i mean if i type !hubtime it will show my hubtime and if i type !hubtime <nick> it will show tht nick's hubtime.
Is it possible to do this???

2] And also keeping the nicks case sensitive.........
like if there r 2 nicks, Darth_Vader and DARTH.
So if i type !hubtime darth_vader thn it will show  "Darth_Vader's" hubtime and if i type !hubtime darth thn it will show "DARTH's" hubtime.
Well I mean to say tht, in 2nd point thr will be two changes...........
i.e if the nick is in capital and if v type in small thn too it will show the output and if v type half nick thn too it will show the output...

Plz try to make this changes........ :)

jiten

First post has been updated with some changes in the package.

Best regards

speedX

Hey jiten,
I am using this script frm a quiet a long time when there was no option for lower case, due to this 2-3 users in my hub have more than one account, so now wht shud I do??

Can you make a convertor or something wich will delete users having more than one account??plzz if possible or shud I delete thm manually? :P
Thanking You,

speedX

Creative

Jiten dude...... string.lower change is fine...... but it would be nice if u make 1 more change in it so that if a user types half the nick thn too it will show the output.
For example: I wanna c hubtime of a nick AdminsTrator........ and if i type +hubtime admins thn it will show the output........
I know u can make this change...... :D

jiten

Quote from: speedX on 10 November, 2006, 19:25:56
Can you make a convertor or something wich will delete users having more than one account??plzz if possible or shud I delete thm manually? :P

As requested...

Code: lua
--[[ 

	TopHubbers 2.01-2.02 DB Converter by jiten (11/11/2006)

	Requested by: speedX

	DESCRIPTION:

	This converter will keep the oldest repeated entry in the DB and delete the others.

	STEPS:

	1. Place your old tOnliners.tbl under your scripts' folder;
	2. Run this script and the new file "tOnliners(new).tbl" will appear in the same folder;
	3. Backup your old DB (just in case) and rename the new one to the default format: tOnliners.tbl
	4. And that's it!

]]--

-- File to convert
fConvert = "tOnliners.tbl"
-- Output file
fConverted = "tOnliners(new).tbl"

Main = function()
	if loadfile(fConvert) then dofile(fConvert) end; local tConvert, tRemove = tOnline, {}
	for i, v in pairs(tConvert) do
		tRemove[string.lower(i)] = (tRemove[string.lower(i)] or {})
		table.insert(tRemove[string.lower(i)], v.Julian); table.sort(tRemove[string.lower(i)])
		while #tRemove[string.lower(i)] > 1 do
			table.remove(tRemove[string.lower(i)], #tRemove[string.lower(i)])
		end
	end
	for i, v in pairs(tConvert) do
		if tRemove[string.lower(i)] then
			if tRemove[string.lower(i)][1] < v.Julian then tConvert[i] = nil end
		end
	end
	local hFile = io.open(fConverted, "w+") Serialize(tConvert, "tOnline", hFile); hFile:close() 
end

Serialize = function(tTable, sTableName, hFile, sTab)
	sTab = sTab or "";
	hFile:write(sTab..sTableName.." = {\n");
	for key, value in pairs(tTable) do
		if (type(value) ~= "function") then
			local sKey = (type(key) == "string") and string.format("[%q]", key) or string.format("[%d]", key);
			if(type(value) == "table") then
				Serialize(value, sKey, hFile, sTab.."\t");
			else
				local sValue = (type(value) == "string") and string.format("%q", value) or tostring(value);
				hFile:write(sTab.."\t"..sKey.." = "..sValue);
			end
			hFile:write(",\n");
		end
	end
	hFile:write(sTab.."}");
end

Posted on: 11 November 2006, 10:55:23
Quote from: SwapY on 11 November, 2006, 06:59:13
For example: I wanna c hubtime of a nick AdminsTrator........ and if i type +hubtime admins thn it will show the output........

As previously stated, you must type the actual nick [note that now they aren't case-sensitive].

If not, this could lead to some confusion. That's why I don't think it should be added. I hope you understand.

speedX

Thanx for the quick reply jiten ;)
But I'm facing one problem. After running the script a new .tbl is formed named "tOnliners(new).tbl" and after renaming it to "tOnliners.tbl" it doesnt work :(
Thanking You,

speedX

jiten

Quote from: speedX on 11 November, 2006, 17:01:56
But I'm facing one problem. After running the script a new .tbl is formed named "tOnliners(new).tbl" and after renaming it to "tOnliners.tbl" it doesnt work :(

There was a small typo in the code. It should be ok now.

Best regards

speedX

Working, thx jiten for ur help ;)
Thanking You,

speedX

Creative

jiten, script is working fine, but if any1 types nick in small letters, for example....... +hubtime darth_vader and if his nick is DartH_VadeR thn output comes but "*** Error: No record found for 'darth_vader'!"  comes.......

Output is correct but tht error also comes at same time......

achiever

hi,

stop ur older script. i.e tophubber_v2.01 i suppose then it will work.
both the scripts 2.01 and 2.02 r working so u get error from 1st script, n output from 2nd.
jiten ur script roxxx ;)

bye,

achiever
thks,
achiever.

Creative

Happy New Year to all Users......... Well i was thinking if 1 more command be added in this script to check which user is online since when. I mean, if v use !uptime <nick> thn it will show just the total time since the user is online. and !hubtime <nick> will be the regular command........ is this poss??

ninad_laud

#99
HI JITEN .... I AM NEW 2 THIS THING OF HUB.............CAN U PLZ POST ME THE COMPLETE HUBTIME SCRIPT WHICH CONTAINS ALL THE THING REQUESTED BY USERS IN ONE SINGLE SCRIPT...........AND IT SHULD BE ERROR FREE.....CAN U PLZZ POST IT IMM..... I AM W8ING FOR U REPLY
Don't type your posts ALL-CAPITAL!

Keep your sentences together. Think before you hit the "post" button!
--Herodes

SMF spam blocked by CleanTalk