here is an advanced MODT textfile loader with some fine triggers... =)
-------------------------------------------------
iNFO-Bot Written by NightLitch
-------------------------------------------------
Usage:
[USER] = username, [IP] = ip, [HUB] = hubname, [CLIENT] = client, [VERSION] = client version,
[MODE] = client mode, [HUBS] = hubs, [SLOTS] = slots, [BANDWIDTH] = bandwidth,
[SHARE] = share (in GB), [SPEED] = speed
--------------------------------------------------------------------------------------
Welcome [USER] ( [IP] ) to [HUB] !
You share [SHARE] GB and have [SLOTS] slot(s) opened.
You are in [HUBS] hub(s) and your are in [MODE] mode.
You run [CLIENT] [VERSION] and connection type: [SPEED]
And your bandwidth limiter is [BANDWIDTH] kB/s
Download it here:
Adv.MODT (http://swenorth.myftp.org/network/nightlitch/scripts/Adv-MODT.rar)
Enjoy / NL
brill script NL
keep it up m8 :)
yours
shad
do i just place these in my script folder and do i need to alter anything?
thanx
Try Placing it just in the scripts folder, it will fire up ..
G8
Great one!
So How is this supposed to work ? Should this override the ptokax motd text ? cause ptokax just displays the motd.txt that is in the folder ptokax, and this should be placed in the folder ptokax/scripts ?
Really want to get this to work.... please help :)
Then just use it...
Edit the text-file for your needs... u can leave PtokaX MODT emty and only use this one...
/NL
I also seem to be having a problem getting this one to work. Placed the .lua file in the scripts section and the text file. But it doesn't show anything when logging in. Or it could be I'm just plain dumb..... :D
Hi there ;o)
I'm also having trouble gettiong it to show anything at logon....have put the lua- & txt-file into the scripts-directory... even remembered to restart sripts ;)
But without any result
Greetings
Stinger
as the scripts is now.. it only displays to regular users. Not ops, or Master. Add this above the NewUserConnect(), and all should recieve it.
function OpConnected(u)
NewUserConnected(u)
end
-BH
Yeah this is even better, no need to be regular user to config the text-info file to look good!
ouh... I forgot that... heh, thx BottledHate.
add following line under NewUserConnected(sUser) function ex:
function NewUserConnected(sUser)
-- Code part here
end
OpConnected = NewUserConnected
/NL
sweet script NightLitch... i run it myself :)... i was going to mod it to send an extra text file for ops with their own right clicks and extra information... less you want to do it :)
-BH
hi again.. iv tried to insert the string for OP's.. but still without luck... thought that the reason was that my client is on the same comp.. and that i use LAN (behind router.. 3 pc's on 1 ip).. but no... i had a vip user to log on and of, but she saw nothing new... but my Ptokax comes up with a Syntax Error line in the Script Editor:
Syntax Error: bad argument #3 to `gsub' (string or function expected)
this line accured when i tried to logon myself.. and also when the other user tried... an she is not in the LAN.. she's in a different city ;o)
hope u can halp me out... Is it becaurse my hub is behind a router and is using LAN ip?? (10.0.0.2)
it might have to do with your clients tag... what do your tags look like?
..and what version of ptokax u running?
This script works great for me.. i am running TD4. I also
have a client that logs in locally no prob.
-BH
hi again... think i'm just nogood at this.. *LOL*
im using TD4 aswell and my client is a standart oDC 5.31 and the same was the user i had trying from the "outside" also using.
Greetings
Stinger
Am gonna work on a new Update soon...
Am gonna add my new MyINFO parser my old one did not like some tags, maybe that is the problem, BUT I noticed the error was:
bad argument #3 to `gsub' (string or function expected)
check so your text is right so every [TAG] is correct so no ] or [ is missing...
It was the tag... the error is in getting the version...
in the CLIENTS table... the third line down is:
["", "oDC"},
change it to:
["", "oDC"},
and it should work....
-BH
TNX BH ;o)
That did the trick :D nice
Greetings
Stinger
yw... i'm here to learn and help(if i can) XD
-BH
Can the amount of shared that is shown be variable, ie: Mb, Gb and Tb instead of just Gb ?
Brill script though... :-))
Hi
Can get the script to work for newly connected users, but none others
any help will be appreciated
Woody
Syntax error: bad argument #1 to `strfind' (string expected, got nil)
stack traceback:
1: function `strfind' [C]
2: function `ParseMyInfo' at line 54 [file `C:\PtokaX_0.330_15.25_\scripts\Info-Bot.lua']
3: function `NewUserConnected' at line 19 [file `C:\PtokaX_0.330_15.25_\scripts\Info-Bot.lua']
thx :)
Why cant i download this script ? is the server offline ?
ok, i dont know what i'm doing wrong but i can't get this script to work at all!!!!!!!!! i am new 2 all this hub stuff , so any help would be very helpfull. thx :D