PtokaX forum

Archive => Archived 4.0 boards => Finished Lua 4 scripts => Topic started by: NightLitch on 05 July, 2004, 11:54:21

Title: *** Advanced MODT textfile
Post by: NightLitch on 05 July, 2004, 11:54:21
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
Title:
Post by: ((UKSN))shad_dow on 05 July, 2004, 16:35:38
brill script NL

keep it up m8 :)

yours

shad
Title: Advanced MOTD textfile
Post by: [GB]S?c??L-?p? on 07 July, 2004, 22:50:41
do i just place these in my script folder and do i need to alter anything?

thanx
Title:
Post by: [G-T-E]Gate? on 07 July, 2004, 23:30:21
Try Placing it just in the scripts folder, it will fire up ..
G8
Title:
Post by: Dj_OcTaGoN on 17 August, 2004, 18:54:31
Great one!
Title:
Post by: IsoD on 19 August, 2004, 22:42:59
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  :)
Title:
Post by: NightLitch on 19 August, 2004, 23:22:31
Then just use it...

Edit the text-file for your needs... u can leave PtokaX MODT emty and only use this one...

/NL
Title:
Post by: TitanXtrm on 20 August, 2004, 04:04:37
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
Title:
Post by: stinger on 22 August, 2004, 20:41:48
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
Title:
Post by: BottledHate on 22 August, 2004, 21:05:18
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
Title:
Post by: Dj_OcTaGoN on 22 August, 2004, 21:17:21
Yeah this is even better, no need to be regular user to config the text-info file to look good!
Title:
Post by: NightLitch on 22 August, 2004, 21:18:28
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
Title:
Post by: BottledHate on 22 August, 2004, 21:23:25
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
Title:
Post by: stinger on 22 August, 2004, 21:33:08
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)
Title:
Post by: BottledHate on 22 August, 2004, 21:50:45
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
Title:
Post by: stinger on 22 August, 2004, 22:03:46
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
Title:
Post by: NightLitch on 22 August, 2004, 22:37:47
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...
Title:
Post by: BottledHate on 22 August, 2004, 22:44:53
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
Title:
Post by: stinger on 22 August, 2004, 23:01:19
TNX BH ;o)

That did the trick :D nice

Greetings
Stinger
Title:
Post by: BottledHate on 23 August, 2004, 00:05:16
yw... i'm here to learn and help(if i can) XD

-BH
Title:
Post by: SteffJay on 13 September, 2004, 15:19:16
Can the amount of shared that is shown be variable, ie: Mb, Gb and Tb instead of just Gb ?

Brill script though...  :-))
Title:
Post by: Woodster on 14 October, 2004, 22:37:48
Hi

Can get the script to work for newly connected users, but none others

any help will be appreciated

Woody
Title:
Post by: belea on 17 October, 2004, 01:21:11
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 :)
Title:
Post by: #jdslkfjals# on 08 November, 2004, 21:58:58
Why cant i download this script ? is the server offline ?
Title:
Post by: Tw?sT?d-d?v on 22 November, 2004, 12:05:21
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