PtokaX forum

Archive => Archived 5.1 boards => Finished Scripts => Topic started by: Psycho_Chihuahua on 02 June, 2006, 20:21:38

Title: InfoBot 1.60 Lua 5/5.1
Post by: Psycho_Chihuahua on 02 June, 2006, 20:21:38
Version 1.50
Added - Hubport to Hubaddress
Added - AutoReg Status
Added - Lua 5/5.1 Support
Version 1.60
Changed - HubShare Display to B, KiB, MiB, GiB or PiB depending on Size (thnx GeceBekcisi and CrazyGuy for help+examples)
Added  - Reg Servers to list when AutoReg is active and Servers are inserted in Gui
Moved - Settings to Settings.ini
Added Language File Support (need one in your Language just add it)
Title: Re: InfoBot 1.60 Lua 5/5.1
Post by: YouAlreadyKnow on 03 June, 2006, 16:11:50
can u tell me what this does or can be used for??
Title: Re: InfoBot 1.60 Lua 5/5.1
Post by: Psycho_Chihuahua on 03 June, 2006, 16:21:27
It shows some informations on Hub Entry


[12:19:47]

????????????????????????????????????????
Hub Information:
??????????????
Welcome: Psycho_Chihuahua, It's nice of you to stop by...
Hub Name: -SanitariuM-,  Running Artificial Insanity
Hub Version: PtokaX 0.3.4.0 k0 Lua 5.02
Server Version: Windows 2003 Enterprise (SP1)
Hub description: yet another swiss hub
Hub Address: sanitarium.selfip.com:411
Hub Owner: Psycho_Chihuahua
Reg Servers: dcreg.mine.nu - dreamland.gotdns.org - hublist.uknnet.com - hublist.zapto.org
Uptime: 40 minutes
Peak Users: 50
Hub Share: 62.02 GB
There Are Now: 4 of 100 max users online.

????????????????????????????????????????
Your Information:
??????????????
Username: Psycho_Chihuahua
Password: yourpassword
User Profile: Master
IP Address: 127.0.0.1
Share Size: 283.38 GB
DC Tag: <++ V:0.69,M:A,H:1/1/0,S:2>
Description: P???h?_?h?h??h??
Email: admin@psycho-chihuahua.net
Connection: LAN(T1)


????????????????????????????????????????
? [ This information is only being shown to you ] ?

????????????????????????????????????????


it gets a bit pushed outta line here but in the hub it looks better.

At the moment there are 3 languages shipped with it --> english, german and hungarian
Title: Re: InfoBot 1.60 Lua 5/5.1
Post by: Dessamator on 03 June, 2006, 19:53:34
Telling the person that's connecting, his own pass can be dangerous, some ppl put autoconnect and if someone messes with their pc, they can easily see the pass and voila.
Title: Re: InfoBot 1.60 Lua 5/5.1
Post by: Psycho_Chihuahua on 03 June, 2006, 20:15:08
yeah thought of that and have made a Toggle Switch like for the Script Display for the next version  ;)

Heres the same version as above with the toggle fix  ;D
Title: Re: InfoBot 1.60 Lua 5/5.1
Post by: YouAlreadyKnow on 03 June, 2006, 22:35:39
ahhhhh ok thanks for telling me what it does...ima trie it out ..thanks..YAK
Title: Re: InfoBot 1.60 Lua 5/5.1
Post by: YouAlreadyKnow on 03 June, 2006, 22:42:41
[17:38] Syntax ...DC++ Hub - (my-block.no-ip.info)\scripts\InfoBot.lua:203: attempt to index global `PXU' (a nil value)

thats what i get
Title: Re: InfoBot 1.60 Lua 5/5.1
Post by: Psycho_Chihuahua on 03 June, 2006, 23:09:36
did you read the Version Log in the InfoBot file?  ::)

Version 1.21
added - show Windows Version (bluebears PtxUtilities required)


you need bluebears PxUtilities for this script --> PxUtilities Library (http://bluebear.psycho-chihuahua.net/#PxUtilities)

Download it and place it (and the Borland Dependency) in the PtokaX Root Folder and voila it shall work fine

Alternatively you can use the one attached to this post


Maybe i should ship it with everything thats needed huh  :-X
Title: Re: InfoBot 1.60 Lua 5/5.1
Post by: Psycho_Chihuahua on 04 June, 2006, 12:25:41
There was a small error in the c version - it didn't work properly on Lua 5.1 Versions of PtokaX :(

Heres one that works fine ;)
Title: Re: InfoBot 1.60 Lua 5/5.1
Post by: JaPaja on 14 November, 2006, 08:26:57
Hi,

it look realy nice. But i downloaded it, copied everything to PtokaX directory and it still do not work.
It has error on line 50: "attemp to call global 'libinit' (a nil value)"
I have version D.

JaPaja
Posted on: 14 November 2006, 06:45:24
Is it possible to send this informations in PM to user?
Title: Re: InfoBot 1.60 Lua 5/5.1
Post by: Markitos on 14 November, 2006, 11:21:12
Quote from: JaPaja on 14 November, 2006, 08:26:57
Is it possible
I'm was/ won\t be able to give an eye in the script but here's the hint:
user:SendData(Bot,"msg") -- sends a message to a user in main where bot is variable with the bot name and msg is the message you want to send but to send pm's you use
user:SendPM(Bot,"msg")

Read the scripting-interface file in your px folder, it contains the px api...
Title: Re: InfoBot 1.60 Lua 5/5.1
Post by: JaPaja on 14 November, 2006, 12:52:11
And how anout this erro with libit?
Title: Re: InfoBot 1.60 Lua 5/5.1
Post by: Psycho_Chihuahua on 14 November, 2006, 17:40:19
what hubversion are you running?