*** Advanced MODT textfile
 

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

*** Advanced MODT textfile

Started by NightLitch, 05 July, 2004, 11:54:21

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

NightLitch

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

Enjoy / NL
//NL

((UKSN))shad_dow

brill script NL

keep it up m8 :)

yours

shad
creator of Therapy-X? bot

[GB]S?c??L-?p?

do i just place these in my script folder and do i need to alter anything?

thanx

[G-T-E]Gate?

Try Placing it just in the scripts folder, it will fire up ..
G8

Dj_OcTaGoN

#4
Great one!


IsoD

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  :)
You born and you die. YOU  decide what happens in between....

Catch me in action from Dannyluola -= [FIN]Empire Hubs =-

NightLitch

Then just use it...

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

/NL
//NL

TitanXtrm

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
Is it Defeat or Victory that Waits in the Dark?
MangaXtrm

stinger

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

BottledHate

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
Homepage: www.bottledhate.webhop.org

Compiling  Lua scripts is LAME!!!!!

Dj_OcTaGoN

Yeah this is even better, no need to be regular user to config the text-info file to look good!


NightLitch

#11
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
//NL

BottledHate

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
Homepage: www.bottledhate.webhop.org

Compiling  Lua scripts is LAME!!!!!

stinger

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)

BottledHate

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
Homepage: www.bottledhate.webhop.org

Compiling  Lua scripts is LAME!!!!!

stinger

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

NightLitch

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...
//NL

BottledHate

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
Homepage: www.bottledhate.webhop.org

Compiling  Lua scripts is LAME!!!!!

stinger

TNX BH ;o)

That did the trick :D nice

Greetings
Stinger

BottledHate

yw... i'm here to learn and help(if i can) XD

-BH
Homepage: www.bottledhate.webhop.org

Compiling  Lua scripts is LAME!!!!!

SteffJay

Can the amount of shared that is shown be variable, ie: Mb, Gb and Tb instead of just Gb ?

Brill script though...  :-))
:))

L8rz

SteffJay

Woodster

Hi

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

any help will be appreciated

Woody
Owner of UK...     dc-hubs2     ...UK
Main Address dc-hubs2.ath.cx
Alt Address dc-hubs.no-ip.com
Apart of DC-HUBS NETWORK

belea

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 :)

#jdslkfjals#

Why cant i download this script ? is the server offline ?

Tw?sT?d-d?v

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

SMF spam blocked by CleanTalk