PtokaX forum

Archive => Archived 4.0 boards => Finished Lua 4 scripts => Topic started by: nErBoS on 04 March, 2004, 02:27:57

Title: Brain-Master
Post by: nErBoS on 04 March, 2004, 02:27:57
Hi,

Brain-Master

All Commands:

The Users Commands:

   !me       -   Speaks on the 3rd person
   !time         -   Show the date and hour
   !rules         -   Show the Rules
   !slots         -   Show the free slots
   !network      -   Show the Network
   !offmsg    -   Leaves a message to someone that's offline.
   !hubinfo         -   Show Hub Info
   !yourinfo      -   Show Your Info
   !ops         -   Show the OPs online and offline
   !away       -   Puts you in away with a message
   !back         -   Removes the away mode
   !awaylist      -   Shows the list of users in away
!regme - Will register your nick
   !help         -   Show this help again


The Operators Commands:

   !kick       -   Kicks a user with reason
   !drop       -   Silently kicks a user with a reason
   !kickban       -   Kicks and Bans a user with a reason
   !ban          -   Bans a user with a reason
   !banip          -   Bans a IP
   !unban          -   Removes a ban to a IP or Nick
   !gag          -   Forbides the user to speak on the Hub
   !ungag          -   Lets the user speak agian in the Hub
   !gaglist            -   List of Gagged User's
   !disconnect    -   Disconnects a user with a reason
   !redirect       -   Redirects a user with a reason
   !userinfo          -   Shows all information about the user
   !warn       -   Sends a warn to a user
   !mm          -   Sends a Message to all
   !mmop       -   Sends a Message to all OPs
   !clrtempban         -   Cleans the tempban
   !ipinfo          -   Show the IP's info
   !iprangeinfo          -   Show the Range IPs info
   !block          -   Block a IP from making downloads
   !blocked         -   Shows the blocked IPs from making downloads
   !unblock          -   Unblock a IP from making downloads
   !banlist            -   BanList
   !kicklist            -   KickList
   !seeban          -   Check's if IP or nick is in the BanList
   !seekick       -   Check's if IP or nick is in the KickList
   !delban          -   Remove Ip or Nick from the BanList
   !delkick          -   Remove Ip or Nick from the KickList
   !delreg          -   Remove a register of a user (it's case sensative)
   !addreg    -   Registers a user with a level (pick a number for the level: 0=Master, 1=Operator, 2=VIP, 3=Reg ou 4 =Administrator)
!timeban



Aditional Notes:

-Anti Fake Share;
-Anti Pub;
-Anti Bad Files;
-ISP Checker;
-Open Extra Slot Detecter;
-Check Free Slots;
-Client Support (DC++, oDC, DCGUI, iDC, DCPRO, ptDC, Strong DC, RMDC++, DCDM, NMDC v2 and DC with no tag);
-P2P Guardian.

Language supported:

-Portuguese
-English
-Greek
-Spanish

Waiting for:

-German
-Swedish

(all new translantions i would be grateful, just send to nerbos@sapo.pt)

Hope that all can enjoy.

Download HERE (http://pt-hubs.c-f-h.com/scripts/Brain-Master%202.1c.zip)

Best regards, nErBoS

PS: This script wasn't possible to do without the help of this forum and persons, to you many thanks i have learned a lot.  "need to learn a lot more :)"
Title:
Post by: angelsanges on 04 March, 2004, 02:33:11
...uhm nice...when we can test it?
Title:
Post by: nErBoS on 04 March, 2004, 03:05:56
Hi,

Forgot to put the link to download, fixed :)

Best regards, nErBoS
Title:
Post by: kepp on 04 March, 2004, 06:19:10
Good one :)
Title:
Post by: pHaTTy on 04 March, 2004, 13:52:42
if this is ur first major bot, then i say very well done,

got a couple recommendations for you, i will do 1 at a time tho

1. Tab lines, 1 by 1

ie i see

many

codehere
end
end

try

         codehere
     end
end

i think you will find it much easier for finding errors ;)

and other i see

if strfind(myinfostring vblablah

best if you do

local strfind and use regexp, then laterdo if blahblah is blah, then, you cna also do lots of other checks, check kepp's kill bill bot, dunno why the name lmao but its got the example of what i mean,

so good luck and keep up the good work,

later,,

pH
Title:
Post by: nErBoS on 04 March, 2004, 14:57:38
Hi,

Thanks keep and phatty, thanks for the support and tips :)

As i said before i am a little mesy on doing code but i will start to do that :)

Best regards, nErBoS
Title:
Post by: NightLitch on 04 March, 2004, 15:03:37
Nice one, some things you can do better is all the strfind many double checks.

and a hint do a clientcheck function that you can use on all function's, that way you don't need to rewrite it in so many places.

Nice /NL
Title:
Post by: nErBoS on 04 March, 2004, 15:13:18
Hi,

Thanks NL, you are right most of my code is from old knowladge the tables are new made it by seem some script some of yours and use your functions to write , save and load :)

"Have to organize my code :P"?

Best regards, nErBoS
Title:
Post by: nErBoS on 04 March, 2004, 18:00:20
Hi,

Brian-Master v.: 1.0a

Notes:

-Correction on the command !slots (was taking all the CPU);
-Userinfo organized. "Start to take some advises :)"


Best regards, nErBoS
Title:
Post by: kepp on 04 March, 2004, 18:40:07
Way to go... Great, keep up the good work :)
Title:
Post by: nErBoS on 04 March, 2004, 22:16:31
Hi,

Brain-Master v.: 1.0b

Notes:

-Fixed a bug on offline userinfo;
-Changed some commands name to more english :)


Best regards, nErBoS
Title:
Post by: DorianG on 05 March, 2004, 19:49:26
Excuse me nErBoS, but the GetRight gives me an error when i try to download it
Title:
Post by: nErBoS on 05 March, 2004, 20:04:49
Hi,

You're saying that when you try to download the Bot you get a error ?? strange, the server could be down when you have tried, have have tried now and worked.

Try again please, if you got again the error send me a pm with your mail and i will send it to you.

Best regards, nErBoS
Title:
Post by: DoN on 05 March, 2004, 22:41:02
QuoteOriginally posted by DorianG
Excuse me nErBoS, but the GetRight gives me an error when i try to download it

Get rid of GetRight and the download will work for you. There's no need to use a download manager on such a small download in all honesty. ;)

Brgs
Title:
Post by: DorianG on 06 March, 2004, 14:28:57
the server returned:  403 Forbidden.. Bho!!
I send you a PM with my mail..
Title:
Post by: nErBoS on 06 March, 2004, 17:10:37
Hi,

DorianG the Bot has been sent. I f this happens to another user i will change the server.

Best regards, nErBoS
Title:
Post by: DorianG on 07 March, 2004, 04:48:55
Thank nErBoS..  :D
You are very glad.  ;)
Title:
Post by: nErBoS on 07 March, 2004, 17:46:23
Hi,

Brain-Master v.: 1.0c

Notes:

-Little correction on userinfo;
-Bug correction on the commands kicks and ban (thanks to xokas)


Best regards, nErBoS
Title:
Post by: Typhoon on 08 March, 2004, 21:20:11
hello nerbos you seem to have a bug in you timeban cmd ....  i dont work for me i think it is " /min " thats your problem
Title:
Post by: nErBoS on 08 March, 2004, 23:16:08
Hi,

Why do you say isn't working ok ?? I have tested and is baning ok. Please give me more details.

Best regards, nErBoS
Title:
Post by: Typhoon on 09 March, 2004, 17:21:01
edit : sorry my fault, its working fine !...


btw. can i use some of your codeparts for my script ?
Title:
Post by: nErBoS on 09 March, 2004, 20:43:18
Hi,

Yes no problem. Its open source :P

Best regards, nErBoS
Title:
Post by: nErBoS on 15 March, 2004, 14:30:55
Hi,

Brain-Master v.: 1.0d

Notes:

-Correction on INFO of BOT and OPChat;
-Little correction on userinfo online;
-Added to log user bans and kicks made by the BOT.


Best regards, nErBoS
Title:
Post by: BeeR on 19 March, 2004, 18:41:02
QuoteOriginally posted by nErBoS
Hi,

Brain-Master v.: 1.0d

Notes:

-Correction on INFO of BOT and OPChat;
-Little correction on userinfo online;
-Added to log user bans and kicks made by the BOT.

Download HERE (http://nerbos.no.sapo.pt/Brain%20Master%201.0d.zip)

Best regards, nErBoS

Hellou Mr Scripter =]
something weird here.. i dload your Brain-Master v1.0d
and i cannot reach Administrators command, only Masters and OPs
Title:
Post by: nErBoS on 22 March, 2004, 14:29:39
Hi,

Brain-Master v.: 1.0.e

Notes:

-Removed some words from Anti-Pub table;
-Little correction from Check Fake-Share;
-Correction on some commands.


Best regards, nErBoS

PS.: Thanks to xokas and [PT]CableGuy for the reports.
Title:
Post by: nErBoS on 22 March, 2004, 14:30:57
Hi,

BeeR..

Use the last version of my bot that error is solved.

Best regards, nErBoS
Title:
Post by: BeeR on 22 March, 2004, 15:03:00
QuoteOriginally posted by nErBoS
Hi,

BeeR..

Use the last version of my bot that error is solved.

Best regards, nErBoS

Ok I'll try it..btw small nice script...
Title:
Post by: nErBoS on 30 March, 2004, 01:25:18
Hi,

Brain-Master 1.0f

Notes:

-iDC++ (Italian DC) added to the Bot;
-Some organize on the code.


Best regards, nErBoS
Title:
Post by: nErBoS on 13 April, 2004, 14:57:48
Hi,

Brain-Master v.: 1.1

Notes:

-New way to config Bot.

(http://nerbos.no.sapo.pt/show.jpg)

Version 1.1a:

-Correction in Config.exe;
-OpChat and VipChat from the Bot.

Version 1.1b:

-New command !offmsg records msg to offline users;
-New !hubinfo;
-Command !myip dissapeare and gave place to !myinfo.

Version 1.1c:

-Commands to add and remove registers avaible to all OPs;
-Script adapted to new oDc version.

Version 1.1d:

-Little correction on Ban (thanks to DorianG);
-New function added in Config.exe, you can configure the Anti-Pub and BadFiles table by the exe.

(http://nerbos.no.sapo.pt/show2.jpg)

Version 1.1e:

-Correction of some Bugs;
-Added a nick checker because some characters create error in the script info database.

Version 1.1f:

-Correction OffLine Msg;
-RightClick with all Brain-Master commands.


Best regards, nErBoS
Title:
Post by: nErBoS on 16 April, 2004, 02:10:39
Hi,

Brain-Master v.: 1.1g

Notes:

-ptDC v:1.0 blocked because of bugs;
-Little correction in OpChat and VipChat;
-Little correction in offline info.


Best regards, nErBoS
Title:
Post by: Psy-[A] on 16 April, 2004, 16:03:18
What about slot's cheker?

MinSlot's
MaxSlot's
slot/hub
max/hub
????
Title:
Post by: Psy-[A] on 16 April, 2004, 16:05:41
and one more thing

what about Prefix
if i want it to be + and noe !
can u do it 2?
Title:
Post by: D-J Valhala on 16 April, 2004, 18:13:08
Psy-[A] yes you can open the script from the script additor in the ptokax scroll down down down..... untill you see the commands section... now just change all the scripts profix from "!" to "+"
:)
Title:
Post by: Snooze on 16 April, 2004, 23:20:38
I were still having some problems with your VipChat.

I changed it to this to get it working ..

if (strsub(data,1,5+strlen(VipChat))=="$To: "..VipChat) then
if (user.bOperator or user.iProfile == 3) then
local s,e,talk = strfind(data, "$To:%s+%S+%s+From:%s+%S+%s+$<%S+>%s+(.+)")
local aux,aux2,usr,profile
for aux, profile in GetProfiles() do
for aux2, usr in GetUsersByProfile(profile) do
if (GetItemByName(usr) ~= nil and GetItemByName(usr).iProfile <= 3 and strlower(usr) ~= strlower(user.sName)) then
SendToNick(usr, "$To: "..usr.." From: "..VipChat.." $<"..user.sName.."> "..talk)
return
end
end
end
else
user:SendPM(Bot, da22)
end
end

**Snooze
- I just love lua !!
Title:
Post by: nErBoS on 17 April, 2004, 01:42:36
Hi,

Snooze..

Stupid me doing user.iProfile == "VIP" should be the number 2 like in user.iProfile == 2. Tomorrow will be corrected. Thanks

Psy-[A] ....

About...
QuoteWhat about slot's cheker?

MinSlot's
MaxSlot's
slot/hub
max/hub
????
 

Don?t you have that in ptokax, why do it in the script ???

About..
Quoteand one more thing

what about Prefix
if i want it to be + and noe !
can u do it 2?

Yes good idea i will do that tomorrow.

Best regards, nErBoS
Title:
Post by: BeeR on 17 April, 2004, 21:47:39
Hello nErBoS :]

A request: Can you make a ISP-check?
Title:
Post by: nErBoS on 17 April, 2004, 23:18:50
Hi,

Beer...

Yes i can, just made the code now i am making to add the ips from the config.exe.

Best regards, nErBoS
Title:
Post by: nErBoS on 18 April, 2004, 18:01:40
Hi,

Brain-Master v.: 1.1h

Notes:

-Correction on Vip-Chat (thanks Snooze);
-Added ISP Check, to be configured in Config.exe;
-New Language to Bot, German (thanks to [DE]Thypoon aka xfiles).


Best regards, nErBoS
Title: Clock in Brain-Master
Post by: xfiles on 24 April, 2004, 07:01:43
Oi nErBoS,

tudo bem?

Is it possible to build in a clock that shows the time to every full hour?
Something like this:

function zeitAnzeige()
local sHour = date("%H")
local sMin = date("%M")
UhrZeit=("It is now " ..sHour.. ":" ..sMin.. " O'Clock in our hubs local timezone.  -= Germany & Austria =-")
if sMin=="00" then
SendToAll("-=RoboCop?=-", UhrZeit)
StopTimer()
local sSec = date("%S")
SetTimer(60*60*1000-sSec+5*1000)
StartTimer()
end
end

function OnTimer()
zeitAnzeige()
end

function Main()
SetTimer(57000)
StartTimer()
end


Keep up the good work m8

regards
Title:
Post by: nErBoS on 24 April, 2004, 15:41:18
Hi,

Well, user have the !time command that shows hour and Date, whats the objective ???

Best regards, nErBoS
Title:
Post by: nErBoS on 25 April, 2004, 22:00:06
Hi,

Brain-Master v.: 1.1i

Notes:

-Update in the commands !hubinfo;
-Script translated to Spanish (thanks to Xan);
-Some correction in the code.


Best regards, nErBoS
Title:
Post by: nErBoS on 14 May, 2004, 12:42:40
Hi,

I am working on a new version of Brain-Master with lot modifications, here is a taste of one of them...

(http://nerbos.no.sapo.pt/new.jpg)

It will take some time because i am having a lot of work in universaty and the exams are arriving.

Best regards, nErBoS
Title:
Post by: MetalPriest on 14 May, 2004, 16:47:20
Cool very cool Nerbos..

I wonder if you can implant some secure script into next version blocks RIAA and like that..

of Brain-Master...???

Thanks !!

MetalPriest
Title:
Post by: [PT]CableGuy on 14 May, 2004, 16:56:57
QuoteOriginally posted by MetalPriest
...next version blocks RIAA and like that...
I think it's best to use Peer-Guardian Software  , instead of a script.
It doesn't uses hub resources , only PC resources.
So...i think it's much better NOT using a script. :]
Title:
Post by: MetalPriest on 14 May, 2004, 17:28:31
Yep,but this is better to have all in one then 1000 progs for it.

Must be another way to do this.. Maybe Nerbos have a id? for it..We waiting and see: :D  :D  :D

MetalPriest
Title:
Post by: nErBoS on 14 May, 2004, 20:55:56
Hi,

I could add, but like Cable said using Peer Guardian instead of a script is better. I will add that option. But like i said my time is very few i am upgrading my Bot every weekend a little.

Best regards, nErBoS
Title:
Post by: BeeR on 30 May, 2004, 03:26:42
Hello again nErBoS..

2 requests 1 old and 1 new..

The old is:
ISP-check to check for valid prefixes in your nick like this: [BBB]nick or [Tele2]nick not ipnumber/range check

the new is:
to make it possible for me to have all my jokes and
important info to the users sent in a PM from that
textosfolder where rules and network files are or if you
make a new folder..

Best Regards  :P
Title:
Post by: nErBoS on 30 May, 2004, 04:16:17
Hi,

Have ended a complety re-write in the BOT, now i have to make him Multi-Translated again, then i can add your request. The first one i can add, the second i didn't understand very good. You want a command or a function to send PMs to a certain of users from a text ??

Best regards, nErBoS
Title:
Post by: Herodes on 30 May, 2004, 04:46:06
aah! nErBoS, could you make something for ppl that want to have a postfix instead of a prefix ?
 [xx]lalala    / prefix    
lalala[xx]        /postfix
It is said to be a bit  more frendly to the users .. :)
apart from being something less common ...
Then you could save those that don't want moglos or _search or even  _search_##   :D:D
No prob if you don't though, I can understand it can be made with a separate code snippet ..
Title:
Post by: BeeR on 30 May, 2004, 11:47:00
QuoteOriginally posted by nErBoS
Hi,

Have ended a complety re-write in the BOT, now i have to make him Multi-Translated again, then i can add your request. The first one i can add, the second i didn't understand very good. You want a command or a function to send PMs to a certain of users from a text ??

Best regards, nErBoS
Hi..
My request 2 was:
I have lots of jokes and info files (to read a infofile about codecs, a user can type !codecs in main)
If i put all these files in ptokax textfolder they will be shown in main when typing !filename but, if you can make it possible so they will be shown in a PM to a user
it will be great.. :]
Title:
Post by: nErBoS on 30 May, 2004, 16:42:32
Hi,

QuoteOriginally posted by Herodes
aah! nErBoS, could you make something for ppl that want to have a postfix instead of a prefix ?
 [xx]lalala    / prefix    
lalala[xx]        /postfix
It is said to be a bit  more frendly to the users .. :)
apart from being something less common ...
Then you could save those that don't want moglos or _search or even  _search_##   :D:D
No prob if you don't though, I can understand it can be made with a separate code snippet ..

Ok i can make Both.

QuoteOriginally posted by BeeR
Hi..
My request 2 was:
I have lots of jokes and info files (to read a infofile about codecs, a user can type !codecs in main)
If i put all these files in ptokax textfolder they will be shown in main when typing !filename but, if you can make it possible so they will be shown in a PM to a user
it will be great.. :]

If i understood right you want to have commands to access cetain files. Try out plop's Text Series.

Best regards, nErBoS
Title:
Post by: Cp6uja on 07 June, 2004, 10:30:41
Good script.
The best scripter is nErBoS .!.

http://nerbos.no.sapo.pt/Brain-Master%201.1i.zip (//Download)
Title: Brain Master Bugs inside
Post by: [NL]Portal on 11 June, 2004, 23:12:41
I am running your beautiful script , but i have a error on the commands : !banlist and !kicklist and some more. Can you please recover those bugs , so they would be worked, but is a very good script you have created , keep your work alive, but please create a new Brain-Master with the fixed bugs. Thanks..
Title:
Post by: nErBoS on 14 June, 2004, 00:28:22
Hi,

I made so many correction that i hardly remenber then, the new version is almost finished, Please give more info about that error tha you are talking about.

Best regards, nErBoS
Title:
Post by: BeeR on 14 June, 2004, 08:16:03
Hello Mr Nerbos  :]

Can you tell me what this is??

Syntax error: bad argument #1 to `strfind' (string expected, got nil)
stack traceback:
   1:  function `strfind' [C]
   2:  function `VersionCheckDCpp' at line 1020 [file `C:\Ptokax\scripts\Brain-Master.lua']
   3:  function `CheckClient' at line 2482 [file `C:\Ptokax\scripts\Brain-Master.lua']
   4:  function `NewUserConnected' at line 266 [file `C:\Ptokax\scripts\Brain-Master.lua']
Title:
Post by: nErBoS on 14 June, 2004, 12:39:50
Hi,

Not to wory i have fixed that error, that was because of the new version of ptokax 0.3.3.0 that is coming out.

Best regards, nErBoS
Title:
Post by: Valyto on 07 July, 2004, 02:28:19
I'm waiting for this last version
Title:
Post by: BeeR on 07 July, 2004, 03:36:53
QuoteOriginally posted by Valyto
I'm waiting for this last version

Me 2..shure hope it's not compiled..
I translated it 2 swedish just for fun
Title:
Post by: nErBoS on 07 July, 2004, 13:39:43
Hi,

You can tranlated to swedish i will send you the translated file in english to you tranlated to swedish if you don't mind. About the script i have ended the re-write now i am adding more clients to be accept and new useful commands to Admin, but like i said my time is not much because of universaty exams but i promise that this script has lot of good changes ;)

Best regards, nErBoS
Title:
Post by: Herodes on 07 July, 2004, 21:39:57
I can do Greek ... :)
Title:
Post by: nErBoS on 08 July, 2004, 14:23:32
Hi,

When i have finished on working with the script i will send to you two the file to translate, my thanks.

Best regards, nErBoS
Title:
Post by: Destiny on 14 July, 2004, 21:11:52
ohh u guyz bet...i'm waiting for that ptokax...ohh when is it gonna b released????
Title:
Post by: nErBoS on 14 July, 2004, 22:53:45
Hi,

You are asking for the release of the BOT or the release of the new ptokax ?? If is for the new ptokax wrong thread.

Best regards, nErBoS
Title:
Post by: nErBoS on 20 July, 2004, 10:30:27
Hi,

Here is the translation file in english...

Fisrt Part:

--## GERAL USE ##--

GERALUSEMSG1 = "The user"
GERALUSEMSG2 = "His IP was"
GERALUSEMSG3 = "His IP is"
GERALUSEMSG4 = "Please correct that."
GERALUSEMSG5 = "by:"
GERALUSEMSG6 = "Disconnected..."
GERALUSEMSG7 = "Kicked..."
GERALUSEMSG8 = "Banned..."
GERALUSEMSG9 = "The Operator"
GERALUSEMSG10 = "You don't have permission to use this command."
GERALUSEMSG11 = "isn't online."
GERALUSEMSG12 = "Redirecting..."
GERALUSEMSG13 = "The"


--## CONNECTED AND DISCONNECTED USER'S AND OP'S ##--

CLONEMSG1 = "Your IP is already in use by"
CLONEMSG2 = "Please don't use Clones."
ILEGALCHARMSG1 = "You have illegal characters on your nick."
ILEGALCHARMSG2 = "Please remove them."
ILEGALCHARMSG3 = "The last character of your nick is forbiden."
IPBANMSG1 = "Your IP is banned."
ISPCHECKMSG1 = "Your IP isn't allowed in this HUB."
ISPCHECKMSG2 = "Any doubt, send a mail to"
FAKESAHREMSG1 = "You are using FAKE SHARE."
FAKESAHREMSG2 = "has been disconnect for using FAKE SHARE."
FAKESAHREMSG3 = "has been kicked for using FAKE SHARE."
FAKESAHREMSG4 = "has been banned for using FAKE SHARE."
FAKESAHREMSG5 = "is using FAKE SHARE."
MODECHECKMSG1 = "This HUB only allows Active Mode."
OPENEXTRASLOTMSG1 = "You are using the option Open Extra Slot, please remove that."
LIMITERCHECKMSG1 = "You are using a BandWith Limiter, the min accepted in this HUB is"
FAKECLIENTMASG1 = "You are using a illegal version of ptDc."
FAKECLIENTMASG2 = "You can make get the lastest version of ptDC here --> [URL]http://www.p2p-pt.com/ptdc/main.html[/URL]"
FAKECLIENTMASG3 = "This HUB only accepts version of DC++ and oDC above"
FAKECLIENTMASG4 = "You can make get the lastest version of DC++ here --> [URL]http://dcplusplus.sourceforge.net/index.php?page=download[/URL]"
FAKECLIENTMASG5 = "You can make get the lastest version of oDC here --> [URL]http://gempond.com/odc/download.php[/URL]"
FAKECLIENTMASG6 = "This HUB only allows the following clients: DC++, oDC, ptDC, DCGUI, DCPRO and iDC++."
FAKECLIENTMASG7 = "In case you have DCGUI or DCPRO please use a tag."
FAKECLIENTMASG8 = "This HUB doesn't accept Command DC++."
FAKECLIENTMASG9 = "This HUB doesn't accept DCGUI."
FAKECLIENTMASG10 = "This HUB doesn't accept DC-PRO."
FAKECLIENTMASG11 = "This HUB doesn't accept oDC."
FAKECLIENTMASG12 = "This HUB doesn't accept ptDC."
FAKECLIENTMASG13 = "You are using a FAKE CLIENT version emulating ptDc tag."
FAKECLIENTMASG14 = "has been disconnect for using FAKE CLIENT, emulating ptDc tag."
FAKECLIENTMASG15 = "has been kicked for using FAKE CLIENT, emulating ptDc tag."
FAKECLIENTMASG16 = "has been banned for using FAKE CLIENT, emulating ptDc tag."
FAKECLIENTMASG17 = "is using FAKE CLIENT, emulating ptDc tag."
FAKECLIENTMASG18 = "You are using a FAKE CLIENT."
FAKECLIENTMASG19 = "has been disconnect for using FAKE CLIENT."
FAKECLIENTMASG20 = "has been kicked for using FAKE CLIENT."
FAKECLIENTMASG21 = "has been banned for using FAKE CLIENT."
FAKECLIENTMASG22 = "is using FAKE CLIENT."
FAKECLIENTMASG23 = "This HUB doesn't accept iDC."
FAKECLIENTMASG24 = "This HUB doesn't accept RMDC++."
FAKECLIENTMASG25 = "This HUB doesn't accept StrongDC++."


--## DATA ARRIVAL FUNCTION ##--

GAGMSG1 = "You can't speak in the HUB except with OPs."
ANTIPUBMSG1 = "has been disconnect for PUB."
ANTIPUBMSG2 = "has been kicked for PUB."
ANTIPUBMSG3 = "has been banned for PUB."
ANTIPUBMSG4 = "is making PUB."
ANTIPUBMSG5 = "Please do not make PUB."
ANTIPUBMSG6 = "Has written:"
CHATMSG1 = "You don't have permission to talk in this Chat."
FREESLOTSMSG1 = "User:"
FREESLOTSMSG2 = "Hasn't been found any free slots in the HUB."
FREESLOTSMSG3 = "Search ended."
KICKCLIENTMSG1 = "has kicked you, because:"
KICKCLIENTMSG2 = "has been kicked by"
KICKCLIENTMSG3 = "because:"
KICKCLIENTMSG4 = "You can't kick this user."
BADFILESMSG1 = "You are been disconnected, because:"
BADFILESMSG2 = "You are been kicked, because:"
BADFILESMSG3 = "You are been banned, because:"
BADFILESMSG4 = "The File is on this path:"


--## COMMANDS FUNCTIONS ##--

MECMDMSG1 = "Syntax Error, !me , you must write a text."
MECMDMSG2 = "say:"
SLOTCMDMSG1 = "The command is disabled."
OFFMSG1 = "Syntax Error, !offmsg , you must write a nick and a message."
OFFMSG2 = "The message for the user"
OFFMSG3 = "has been saved with success."
OFFMSG4 = "is online."
HUBINFOMSG1 = "Name:"
HUBINFOMSG2 = "Description:"
HUBINFOMSG3 = "Min Share:"
HUBINFOMSG4 = "Max Users:"
HUBINFOMSG5 = "Users at the Moment:"
HUBINFOMSG6 = "Max of Users ever Recived:"
HUBINFOMSG7 = "Total Share of the Moment:"
HUBINFOMSG8 = "Max of Total Share ever Recived:"
HUBINFOMSG9 = "Number of Logins:"
HUBINFOMSG10 = "The Uptime:"
HUBINFOMSG11 = "days"
HUBINFOMSG12 = "hours"
HUBINFOMSG13 = "minutes"
MYINFOMSG1 = "Nick:"
MYINFOMSG2 = "IP:"
MYINFOMSG3 = "Share:"
MYINFOMSG4 = "Client:"
MYINFOMSG5 = "Version:"
OPCHECKMSG1 = "Away:"
OPCHECKMSG2 = "List of the Operators of the HUB:"
OPCHECKMSG3 = "Reason:"
AWAYCMDMSG1 = "You already are in away."
AWAYCMDMSG2 = "I'm away. I might answer later if you're lucky."
AWAYCMDMSG3 = "Away: ON"
AWAYCMDMSG4 = "is away, because:"
BACKCMDMSG1 = "You aren't in away."
BACKCMDMSG2 = "Away: OFF"
BACKCMDMSG3 = "has come back from away."
AWAYLISTMSG1 = "List of users in away:"
KICKANDDROPMSG1 = "Syntax Error, !kick , you must write a nick and a reason."
KICKANDDROPMSG2 = "Syntax Error, !drop , you must write a nick and a reason."
KICKANDDROPMSG3 = "was kicked."
KICKBANMSG1 = "Syntax Error, !kickban , you must write a nick and a reason."
KICKBANMSG2 = "has kicked and banned you, because:"
KICKBANMSG3 = "has been kicked and banned by"
KICKBANMSG4 = "You cna't kicka and ban this user."
BANCMDMSG1 = "Syntax Error, !ban , you must write a nick and a reason."
BANCMDMSG2 = "has banned you, because:"
BANCMDMSG3 = "has been banned by"
BANCMDMSG4 = "You can't ban this user."
BANIPCMDMSG1 = "The IP is invalid."
BANIPCMDMSG2 = "The IP"
BANIPCMDMSG3 = "has been banned."
UNBANCMDMSG1 = "Syntax Erroe, !unban , you must write a nick or a ip."
UNBANCMDMSG2 = "The nick hasn't been found banned."
UNBANCMDMSG3 = "The ban of the nick has been successufuly removed."
UNBANCMDMSG4 = "The IP isn't banned."
UNBANCMDMSG5 = "The ban of the IP has been successufuly removed."
GAGCMDMSG1 = "Syntax Error, !gag , you must write a nick."
GAGCMDMSG2 = "You can't gag this user."
GAGCMDMSG3 = "has been stoped from talking in the HUB by "
GAGCMDMSG4 = "You have been stoped from talking in the HUB."
UNGAGCMDMSG1 = "Syntax Error, !ungag , you must write a nick."
UNGAGCMDMSG2 = "has been able to talk again in the HUB by"
UNGAGCMDMSG3 = "You are able to talk again in the HUB."
GAGLISTMSG1 = "List of the Gagged Users of the HUB:"
GAGLISTMSG2 = "Gagged by:"
DISCONNECTCMDMSG1 = "Syntax Error, !disconnect , you must write a nick and a reason."
DISCONNECTCMDMSG2 = "You are been disconnected because:"
DISCONNECTCMDMSG3 = "has been disconnected by"
DISCONNECTCMDMSG4 = "You can't disconnect this user."
REDIRECTCMDMSG1 = "Syntax Error, !redirect , you must write a nick and a reason."
REDIRECTCMDMSG2 = "You are being redirect because:"
REDIRECTCMDMSG3 = "has been redirected by"
REDIRECTCMDMSG4 = "You can't redirect this user."
USERINFOCMDMSG1 = "Syntax Error, !userinfo , you must write a nick."
USERINFOCMDMSG2 = "There isn't any info on the HUB about the user"
WARNCMDMSG1 = "Syntax Error, !warn , you must write a nick and a reason."
WARNCMDMSG2 = "is warning, because:"
WARNCMDMSG3 = "At the third warn you get kicked."
WARNCMDMSG4 = "was been warned. Was recived"
WARNCMDMSG5 = "warns, at the third is kicked."
WARNCMDMSG6 = "You have recived the third warn, you are been kicked."
MASSMESSCMDMSG1 = "Syntax Error, !mm , you must write a message."
MASSMESSCMDMSG2 = "Syntax Erro, !mmop , you must write a message."
MASSMESSCMDMSG3 = "HUB Message"
MASSMESSCMDMSG4 = "Message sent by:"
MASSMESSCMDMSG5 = "OPs Message"
CLEARTEMPBANMSG1 = "has cleaned all the tempban of the HUB."
BLOCKDWLMSG1 = "The IP is invalid."
BLOCKDWLMSG2 = "The IP is already blocked from making Donwloads in the HUB."
BLOCKDWLMSG3 = "The IP has been blocked from making Donwloads in the HUB."
UNBLOCKDWLMSG1 = "The IP isn't blocked."
UNBLOCKDWLMSG2 = "The IP has been removed."
BLOCKLISTMSG1 = "List of the IPs with Download Blocked:"
BLOCKLISTMSG2 = "Blocked by:"
SEEKBCMDMSG1 = "Syntax Error, !seekick , you must write a nick or an ip."
SEEKBCMDMSG2 = "Syntax Error, !seeban , you must write a nick or an ip."
REMOVEKBCMDMSG1 = "Syntax Error, !delkick , you must write a nick or an ip."
REMOVEKBCMDMSG2 = "Syntax Error, !delban , you must write a nick or an ip."
REMOVEKBCMDMSG3 = "There wasn't found any match."
REMOVEKBCMDMSG4 = "Has been removed with success."
DELREGCMDMSG1 = "Syntax Error, !delreg , you must write a nick."
DELREGCMDMSG2 = "You don't have permission to remove the register of this user."
DELREGCMDMSG3 = "The register of"
DELREGCMDMSG4 = "has been removed with success."
DELREGCMDMSG5 = "has removed the register of"
ADDREGCMDMSG1 = "Syntax Error, !addreg , you must write a nick, a pass and a level (0 = Master, 1 = Operator, 2 = Vip, 3 = Reg e 4 = Administrator)."
ADDREGCMDMSG2 = "Syntax Error, !addreg , the level must be one of this (0 = Master, 1 = Operator, 2 = Vip, 3 = Reg e 4 = Administrator)."
ADDREGCMDMSG3 = "has been registered as"
ADDREGCMDMSG4 = "with the following pass:"
ADDREGCMDMSG5 = "has registered"
ADDREGCMDMSG6 = "with"
ADDREGCMDMSG7 = "You don't have permission to register user's with that level"
TIMEBANMSG1 = "Syntax Error, !timeban
Title:
Post by: nErBoS on 20 July, 2004, 10:31:48
Second Part:

CHANGEMAXUSERCMDMSG3 = "The number of Max Users has been changed to"
CLEANKBLISTCMDMSG1 = "The file hasn't been found."
CLEANKBLISTCMDMSG2 = "The has been cleaned with success."
CLEANKBLISTCMDMSG3 =  "List:"
RESTARTCMDMSG1 = "The HUB is been restart by"
RESTARTSCRIPTCMDMSG1 = "The Script Brain-Master has been restart by"
ADMINCHATMSG1 = "Syntax Error, !tadminchat , you must write on or off."
OPCHATMSG1 = "Syntax Erro, !topchat , you must write on or off."
VIPCHATMSG1 = "Syntax Erro, !tvipchat , you must write on or off."
CHATMSG2 = "is already on."
CHATMSG3 = "has been turned on."
CHATMSG4 = "has been turned on by:"
CHATMSG5 = "is already off."
CHATMSG6 = "has been turned off."
CHATMSG7 = "has been turned off by:"

--## OTHER FUNCTIONS ##--

TIMEFUNCMSG1 = "Day:"
TIMEFUNCMSG2 = "Hour:"
CHECKBKMSG1 = "Nick:"
CHECKBKMSG2 = "IP:"
CHECKBKMSG3 = "By:"
CHECKBKMSG4 = "Reason:"
CHECKBKMSG5 = "Date:"
CHECKBKMSG6 = "END"
CHECKBKMSG7 = "There wasn't found any match."
READTEXTFUNMSG1 = "The file wasn't found."
READTEXTFUNMSG2 = "The file is empty."
SHOWINFOFUNCMSG1 = "Last information about the user"
SHOWINFOFUNCMSG2 = "Information about"
SHOWINFOFUNCMSG3 = "in"
SHOWINFOFUNCMSG4 = "Connected:"
SHOWINFOFUNCMSG5 = "Operator:"
SHOWINFOFUNCMSG6 = "Vip:"
SHOWINFOFUNCMSG7 = "Ip:"
SHOWINFOFUNCMSG8 = "Last Login:"
SHOWINFOFUNCMSG9 = "Last Logout:"
SHOWINFOFUNCMSG10 = "Client:"
SHOWINFOFUNCMSG11 = "Version:"
SHOWINFOFUNCMSG12 = "Mode:"
SHOWINFOFUNCMSG13 = "Hubs:"
SHOWINFOFUNCMSG14 = "Slots:"
SHOWINFOFUNCMSG15 = "Limiter:"
SHOWINFOFUNCMSG16 = "Mail:"
SHOWINFOFUNCMSG17 = "Description:"
SHOWINFOFUNCMSG18 = "Share:"
SHOWINFOFUNCMSG19 = "Connection:"
SHOWINFOFUNCMSG20 = "Last Ban:"
SHOWINFOFUNCMSG21 = "Timed Banned:"
SHOWINFOFUNCMSG22 = "Last Kick:"
SHOWINFOFUNCMSG23 = "Timed Kicked:"
USERINFOMSG1 = "Yes"
USERINFOMSG2 = "No"
USERINFOMSG3 = "NONE"
USERINFOMSG4 = "Active"
USERINFOMSG5 = "Passive"
USERINFOMSG6 = "Without Limiter"
USERINFOMSG7 = "Without Mail"
USERINFOMSG8 = "Without Description"
USERINFOMSG9 = "Without Share"
USERINFOMSG10 = "Without Connection"
CLIENTCHECKFUNCMSG1 = "NMDC, DCPRO, or DCGUI without tag."
VERSIONCHECKFUNCMSG1 = "Without Version"
CHECKFOROFFMSG1 = "Message left by"
CHECKFOROFFMSG2 = "Sent by:"


--## COMMANDS TOPICS ##--

HELPCMDMSG1 = "The Users Commands:"
HELPCMDMSG2 = "The Operators Commands:"
HELPCMDMSG3 = "The Adminstrators Commands:"
HELPCMDMSG4 = "The Masters Commands:"
HELPUSERCMDMSG1 = "Speaks on the 3rd person"
HELPUSERCMDMSG2 = "Show the date and hour"
HELPUSERCMDMSG3 = "Show the Rules"
HELPUSERCMDMSG4 = "Show the free slots"
HELPUSERCMDMSG5 = "Show the Network"
HELPUSERCMDMSG6 = "Show Hub Info"
HELPUSERCMDMSG7 = "Show Your Info"
HELPUSERCMDMSG8 = "Show the OPs online and offline"
HELPUSERCMDMSG9 = "Show this help again"
HELPUSERCMDMSG10 = "Puts you in away with a message"
HELPUSERCMDMSG11 = "Removes the away mode"
HELPUSERCMDMSG12 = "Shows the list of users in away"
HELPUSERCMDMSG13 = "Leaves a message to someone that's offline."
HELPOPCMDMSG1 = "Kicks a user with reason"
HELPOPCMDMSG2 = "Silently kicks a user with a reason "
HELPOPCMDMSG3 = "Kicks and Bans a user with a reason"
HELPOPCMDMSG4 = "Bans a user with a reason"
HELPOPCMDMSG5 = "Bans a IP"
HELPOPCMDMSG6 = "Removes a ban to a IP or Nick"
HELPOPCMDMSG7 = "Forbides the user to speak on the Hub"
HELPOPCMDMSG8 = "Lets the user speak agian in the Hub"
HELPOPCMDMSG9 = "Disconnects a user with a reason"
HELPOPCMDMSG10 = "Redirects a user with a reason"
HELPOPCMDMSG11 = "Shows all information about the user"
HELPOPCMDMSG12 = "Sends a warn to a user"
HELPOPCMDMSG13 = "Sends a Message to all"
HELPOPCMDMSG14 = "Sends a Message to all OPs"
HELPOPCMDMSG15 = "Cleans the tempban"
HELPOPCMDMSG16 = "Show the IP's info"
HELPOPCMDMSG17 = "Show the Range IPs info"
HELPOPCMDMSG18 = "Block a IP from making downloads"
HELPOPCMDMSG19 = "Shows the blocked IPs from making downloads"
HELPOPCMDMSG20 = "Unblock a IP from making downloads"
HELPOPCMDMSG21 = "BanList"
HELPOPCMDMSG22 = "KickList"
HELPOPCMDMSG23 = "Check's if IP or nick is in the BanList"
HELPOPCMDMSG24 = "Check's if IP or nick is in the KickList"
HELPOPCMDMSG25 = "Remove Ip or Nick from the BanList"
HELPOPCMDMSG26 = "Remove Ip or Nick from the KickList"
HELPOPCMDMSG27 = "Remove a register of a user (it's case sensative)"
HELPOPCMDMSG28 = "Registers a user with a level (pick a number for the level: 0=Master, 1=Operator, 2=VIP, 3=Reg ou 4 =Administrator)"
HELPOPCMDMSG29 = "Bans a user for the time you want"
HELPOPCMDMSG30 = "(h=hours, d=days, w=weeks, m=months, y=years) eg.:10h =10 hours of ban"
HELPOPCMDMSG31 = "List of Gagged User's"
HELPADMINCMDMSG1 = "Changes the Min Share of the Hub (GB)"
HELPADMINCMDMSG2 = "Changes the redirect adrress of the Hub"
HELPADMINCMDMSG3 = "Changes the name of the Hub"
HELPADMINCMDMSG4 = "Changes the description of the Hub"
HELPADMINCMDMSG5 = "Changes the register address of the Hub"
HELPADMINCMDMSG6 = "Redirects all users to the redirect address"
HELPADMINCMDMSG7 = "On/Off the auto redirect of new connections"
HELPADMINCMDMSG8 = "On/Off the auto redirect of new connections if the gets full"
HELPADMINCMDMSG9 = "Changes the MaxUsers of the Hub"
HELPADMINCMDMSG10 = "Cleans BanList"
HELPADMINCMDMSG11 = "Cleans KickList"
HELPADMINCMDMSG12 = "Cleans Permban"
HELPADMINCMDMSG13 = "Turns on or off the VipChat"
HELPADMINCMDMSG14 = "Turns on or off the OpChat"
HELPMASTERCMDMSG1 = "Restarts the Hub"
HELPMASTERCMDMSG2 = "Restarts the Script"
HELPMASTERCMDMSG3 = "Turns on or off the AdminChat"

The new version will be relased in the end of the week if the tests went ok.

Best regards, nErBoS
Title:
Post by: nErBoS on 23 July, 2004, 15:33:44
Hi,

Brain-Master v.: 2.0

Notes:

- New GUI;

(http://nerbos.no.sapo.pt/new.jpg)

- Script Completed Re-Written;
- More Clients Accept;
- AdminChat Added;
- New Commands: !away, !back, !awaylist, !tvipchat, !topchat and !tadminchat;
- There is missing some translation: Greek, German and Swedish.


Download HERE (http://www.tudonosso.tv/forum_files/Brain-Master_2.0.zip)

Best regards, nErBoS
Title:
Post by: Herodes on 23 July, 2004, 19:48:41
QuoteOriginally posted by nErBoS
- There is missing some translation: Greek, German and Swedish.


The Greek has a few more lines to go ... I need to see how they are used since u released "it", or "him" :D

Thx for the effort nErBoS :)
Title:
Post by: nErBoS on 23 July, 2004, 20:33:37
Hi,

Like i said before take your time ;) When you have finished send me by mail and i will add to the script in a flash ;)

Best regards, nErBoS
Title:
Post by: nErBoS on 24 July, 2004, 17:56:40
Hi,

New Link for downloading the Bot, thanks to my good friend [PT]CableGuy ;)

Best regards, nErBoS
Title:
Post by: nErBoS on 24 July, 2004, 22:47:51
Hi,

Was detected a bug in addreg user (thanks to AndreJH) download HERE (http://nerbos.no.sapo.pt/Brain-Master.lua) the file with all code and replace by the one that you have in script folder.

Best regards, nErBoS
Title:
Post by: [PT]CableGuy on 27 July, 2004, 02:47:18
QuoteOriginally posted by nErBoS
...my good friend [PT]CableGuy...
Anytime m8...just whistle. ;)
In fact , it's me that have to THANK YOU , for this EXCELENT script !!! :]
Indeed...many ppl use this script because it's very complete and the "support" is excelent.
So....THANK YOU (twice) for sharing "you're knowledge" with us.  :]
Title:
Post by: nErBoS on 27 July, 2004, 13:54:46
Hi,

We are both thanked then  :P .

Best regards, nErBoS
Title:
Post by: BeeR on 27 July, 2004, 14:44:28
Hi nErBoS

Can you make versioncheck on all clients and add more clients in clientrules on your next version of Brain-master

Best Regards
Title:
Post by: BeeR on 27 July, 2004, 14:57:08
I forgotten this..
 
In "functions" can you add redirect users..(warn ,, disconnect ,, kick ,, redirect ,, ban)

also add clientcheck in "functions" so i can choose what to do with users with, "not wanted" clients in my hub..
Title:
Post by: D-J Valhala on 27 July, 2004, 19:02:23
i use old version of this script BUT it's the BEST script ever to made! nErBoS = the best scripter in the world!!! and i thank you to for all your great scrits that are used in my hub and the onec are not lol so...
nErBoS THANK YOU !!!
:D  :D  :D  :D  :D  :D  :D  :D  :D  :D  :]  ;)  :)  :))
Title:
Post by: nErBoS on 27 July, 2004, 21:22:43
Hi,

BeeR...

Yes i can add more clients can you say which clients are missing. In the next version i will add also the (ban,kick,disconnect, warn or redirect) option and min version for all as also.

D-J Valhala...

Thanks for the kind words  :))

Best regards, nErBoS
Title:
Post by: D-J Valhala on 28 July, 2004, 02:04:16
:D
Title:
Post by: nErBoS on 30 July, 2004, 00:03:04
Hi,

From this Saturday on i will be in vacations for three weeks so new version only after that. I hope this new one can hold on until then  :)) . Until there have fun guys (())

Best regards, nErBoS


PS.: Please, don't PM me or mail me i will be completed off from this  :))
Title:
Post by: Herodes on 30 July, 2004, 12:56:19
Not very Important Bug: Around line 2219 you'll find frmHub:UnregBot(OpChat)

It is in the VipChats function /... I think this has to be
frmHub:UnregBot(VipChat)  instead ..

But before anyone changes anything Wait For nErBoS reply to this !!!  !
Title: ehhehehe
Post by: mOrrI on 30 July, 2004, 14:07:16
hello brain :D

is this bot of yours anygood?
Title:
Post by: Herodes on 30 July, 2004, 16:27:07
QuoteOriginally posted by mOrrI
hello brain :D

is this bot of yours anygood?

I dont think that this kind of question is really giving the appropriate honours to nErBoS ...
He is one of the Top scripters in here and always helps ppl.


This kind of question also proves that u cant even bother trying it ... since it is free the author is providing support only based on his good mood... and he seems to have enough of that ..  

anyway ... I think that Brain Master is one of the BEST BEST BOTS AROUND !
Title:
Post by: Snooze on 30 July, 2004, 18:27:51
Quoteanyway ... I think that Brain Master is one of the BEST BEST BOTS AROUND !

The support given to this script is more than anyone could ever ask for ... Please keep up the good work, nErBoS
Title:
Post by: NightLitch on 30 July, 2004, 21:48:12
Quoteanyway ... I think that Brain Master is one of the BEST BEST BOTS AROUND !

Hehe  :D  It is a fine piece of script. Can't say a bad word exept  :P  w8 till THoR 2.0 ThunderRage comes out.

I advertise in your thread some Nerbos hope u don't mind  :P.

U can something I don't And that is making a fine Gui, I don't have the time to learn C or C++ or VB to get mine better...

But U have come long in your way learning the lua language, almost that I see myself, posting like a maniac everywhere helping, that I did in the begining to, but NXS-3, NXS-4 and now THoR have taken most of my time when programming lua.

Damn  :P this sounds like a speech lol.

Keep up the good lua spirit mate / NL
Title: ehhehehe
Post by: mOrrI on 31 July, 2004, 00:12:06
lol... i'm just asking.... cause nerbos is portuguese too i think... :D
Title:
Post by: nErBoS on 12 August, 2004, 18:05:15
Hi,

QuoteOriginally posted by Herodes
Not very Important Bug: Around line 2219 you'll find frmHub:UnregBot(OpChat)

It is in the VipChats function /... I think this has to be
frmHub:UnregBot(VipChat)  instead ..

But before anyone changes anything Wait For nErBoS reply to this !!!  !

Thanks Herodes, to many copy pastes :P

No problem night, everyone is free to use the script that best fits to his/her needs  ;)

mOrrI just test it and see :) (TONI) :D :P

Best regards, nErBoS

Back to my vacations :)
Title: ihihihhiiihihhih
Post by: mOrrI on 12 August, 2004, 18:14:19
love u to Nerbos.... hihiiihihih
i will give it a try out... :D
when i get the time, damn work.... :|
Title: error when trying to reg new users
Post by: BiterBas on 14 August, 2004, 10:38:41
No syntax errors in script file C:\Program Files\PtokaX_Hub\scripts\Brain-Master.lua
Syntax Error: attempt to call global `AddReg' (a nil value)

This is what happens when i'm trying to add a new user, i use PtokaX 0.3.2.6
Title:
Post by: Herodes on 14 August, 2004, 13:02:22
QuoteOriginally posted by BiterBas
No syntax errors in script file C:\Program Files\PtokaX_Hub\scripts\Brain-Master.lua
Syntax Error: attempt to call global `AddReg' (a nil value)

This is what happens when i'm trying to add a new user, i use PtokaX 0.3.2.6
Is there more lines for this error ? I mean it would be nice to know at what line this error happens ...
Title:
Post by: BiterBas on 14 August, 2004, 16:48:03
i'm nut sure what u are talking about  :/

the only thing i can read from the window in PtokaX hub is that...i should stayed at my englishclasses.....lol
Title:
Post by: nErBoS on 15 August, 2004, 21:30:25
Hi,

Probably not Herodes he is using 0.3.2.6 (one of the TestDrive).

About the error i try to reg a user with the last version of Brain and didn't show up any error. Can you give me more info please, which version of Brain are you using and what have you type.

Best regards, nErBoS
Title:
Post by: nErBoS on 23 August, 2004, 19:13:02
Hi,

For translators:

Need this tranlated for new version of Brain-Master...

P2PGMSG1 = "You are not authorized to enter this HUB."
P2PGMSG2 = "has been blocked by P2P Guardian."
FAKECLIENTMASG1 = "This HUB only acepts this clients: DC++, oDC, DCGUI, ptDC, DCPRO, iDC++, RMDC++, Strong DC, DCDM++ and NMDC v2."
FAKECLIENTMASG2 = "If you are using any of this clients active their tag."
FAKECLIENTMASG3 = "You are using a old version of oDC."
FAKECLIENTMASG4 = "The MIN Version for this client his:"
FAKECLIENTMASG5 = "oDC it's not allowed in this HUB."
FAKECLIENTMASG6 = "ptDC it's not allowed in this HUB."
FAKECLIENTMASG7 = "You are using a old version of DCGUI."
FAKECLIENTMASG8 = "DCGUI it's not allowed in this HUB."
FAKECLIENTMASG9 = "You are using a old version of DCPRO."
FAKECLIENTMASG10 = "DCPRO it's not allowed in this HUB."
FAKECLIENTMASG11 = "You are using a old version of iDC."
FAKECLIENTMASG12 = "iDC it's not allowed in this HUB."
FAKECLIENTMASG23 = "You are using a old version of RMDC++."
FAKECLIENTMASG24 = "RMDC++ it's not allowed in this HUB."
FAKECLIENTMASG25 = "You are using a old version of Strong DC."
FAKECLIENTMASG26 = "Strong DC it's not allowed in this HUB."
FAKECLIENTMASG27 = "You are using a old version of DCMD."
FAKECLIENTMASG28 = "DCDM it's not allowed in this HUB."
FAKECLIENTMASG29 = "NMDC it's not allowed in this HUB."
FAKECLIENTMASG30 = "You are using a old version of DC++."
ANTIPUBMSG7 = "has been redirected for PUB."
BADFILESMSG5 = "You are been redirect, because:"
REGMECMDMSG1 = "This command is disabled."
REGMECMDMSG2 = "Syntax Error, !regme , you must write a password."
REGMECMDMSG3 = "You are already registered."
REGMECMDMSG4 = "You have been register with the pass:"
REGMECMDMSG5 = "Reconnect to the HUB to the register have affect."
HELPUSERCMDMSG14 = "Makes a register to your nick"

Thanks in advanced.

Best regards, nErBoS
Title: German
Post by: Psycho_Chihuahua on 23 August, 2004, 19:23:54
P2PGMSG1 = "Du bist nicht befugt diesen Hub zu betreten."
P2PGMSG2 = "wurde geblockt von P2P Guardian."
FAKECLIENTMASG1 = "Dieser Hub erlaubt nur diese Clienten: DC++, oDC, DCGUI, ptDC, DCPRO, iDC++, RMDC++, Strong DC, DCDM++ und NMDC v2."
FAKECLIENTMASG2 = "falls du einen anderen Clienten verwendest aktiviere deren TAG."
FAKECLIENTMASG3 = "Du verwendest eine alte Version von oDC."
FAKECLIENTMASG4 = "Die MIN Version f?r diesen Clienten ist:"
FAKECLIENTMASG5 = "oDC ist nicht erlaubt in diesem HUB."
FAKECLIENTMASG6 = "ptDC ist nicht erlaubt in diesem Hub."
FAKECLIENTMASG7 = "Du verwendest eine alte Version von DCGUI."
FAKECLIENTMASG8 = "DCGUI ist nicht erlaubt in diesem Hub."
FAKECLIENTMASG9 = "Du verwendest eine alte Version von DCPRO."
FAKECLIENTMASG10 = "DCPRO ist nicht erlaubt in diesem Hub."
FAKECLIENTMASG11 = "Du verwendest eine alte Version von iDC."
FAKECLIENTMASG12 = "iDC ist nicht erlaubt in diesem Hub."
FAKECLIENTMASG23 = "Du verwendest eine alte Version von RMDC++."
FAKECLIENTMASG24 = "RMDC++ ist nicht erlaubt in diesem Hub."
FAKECLIENTMASG25 = "Du verwendest eine alte Version von Strong DC."
FAKECLIENTMASG26 = "Strong DC ist nicht erlaubt in diesem Hub."
FAKECLIENTMASG27 = "Du verwendest eine alte Version von DCMD."
FAKECLIENTMASG28 = "DCDM ist nicht erlaubt in diesem Hub."
FAKECLIENTMASG29 = "NMDC ist nicht erlaubt in diesem Hub."
FAKECLIENTMASG30 = "Du verwendest eine alte Version von DC++."
ANTIPUBMSG7 = "wurde soeben umgeleitet wegen PUB."
BADFILESMSG5 = "Du wurdest umgeleitet, weil:"
REGMECMDMSG1 = "Dieser Befehl ist nicht aktiv."
REGMECMDMSG2 = "Eingabe Fehler, !regme , du musst einen Passwort schreiben."
REGMECMDMSG3 = "Du bist bereits registriert."
REGMECMDMSG4 = "Du wurdest registriert mit dem Passwort:"
REGMECMDMSG5 = "Verbinde nochmal neu zum Hub um die Registration abzuschliessen."
HELPUSERCMDMSG14 = "Regitriert deinen Nick"
Title:
Post by: nErBoS on 23 August, 2004, 19:35:49
Hi,

Thanks for the translation but German lang is missing the other part, if you don't mind get my last release and translat it  to german. The tranlation files are in "Base-Dados\Lang\". I had a portuguese doing the German translation but he is missing. You can send to my mail when done..

nerbos@sapo.pt

Best regards, nErBoS
Title:
Post by: nErBoS on 25 August, 2004, 00:22:54
Hi,

Brain-Master v.: 2.1

Notes:

- GUI changed and better;
- Redirect option added to GUI;
- MIN Version to each client added to GUI;
- P2P Guardian added to script and GUI;
- Command !regme added with option of enable and disabled in GUI;
- Correction of some bugs;


Best regards, nErBoS
Title:
Post by: nErBoS on 25 August, 2004, 00:24:06
Hi,

GUI source is also avaible. Is made in C++ and programmed in Borland Builder C++.

Download HERE (http://nerbos.go.dyndns.org/GUI-Source.zip)

Best regards, nErBoS
Title:
Post by: OneHero on 25 August, 2004, 09:17:57
how can i change the botnames?

from OpChat to -OpChat-
Title:
Post by: 6Marilyn6Manson6 on 25 August, 2004, 09:20:18
Yes, you can
Title:
Post by: OneHero on 25 August, 2004, 09:21:01
doh!!

forget it :D
Title:
Post by: Herodes on 25 August, 2004, 11:09:07
QuoteOriginally posted by nErBoS
Hi,

GUI source is also avaible. Is made in C++ and programmed in Borland Builder C++.

Download HERE (http://dcportugal.com/scripts/GUI-Source.zip)

Best regards, nErBoS
Thanks nerb ... No I need to stop me from thinking :"I have to understand, I have to understand, I have to understand " ... :D  


 Thanks a lot for sharing
Title:
Post by: ruud on 25 August, 2004, 15:04:50
Hi nErBoS

error on version 2.1  in
---------------------
!userinfo

Syntax error: attempt to concat field `vrs' (a nil value)
stack traceback:
   1:  function `ShowInfo' at line 2522 [file `E:\testhub\PtokaX\scripts\Brain-Master.lua']
   2:  function `Userinfo' at line 1531 [file `E:\testhub\PtokaX\scripts\Brain-Master.lua']
   3:  function `DataArrival' at line 769 [file `E:\testhub\PtokaX\scripts\Brain-Master.lua']

-------------------------
 !yourinfo

Syntax error: attempt to concat a nil value
stack traceback:
   1:  function `MyInfor' at line 1158 [file `E:\testhub\PtokaX\scripts\Brain-Master.lua']
   2:  function `DataArrival' at line 716 [file `E:\testhub\PtokaX\scripts\Brain-Master.lua']



 :baby:
Title:
Post by: nErBoS on 25 August, 2004, 17:42:31
Hi,

Brain-Master v.: 2.1a

Notes:

- Correction of some bugs in GUI;
- Correction of INFOs due to DC with NO-TAG (thanks to ruud);
- Correction on Offline MSG and in GAG (thanks to ruud);
- Correction on Brain-Master Version on his description.


Best regards, nErBoS
Title:
Post by: ruud on 25 August, 2004, 18:58:28
Hi nErBoS

The Client Info isn't working correctly :(

Connected:   Yes
Operator:      Yes
Vip:      No
Ip:      127.0.0.1
Last Login:   Day: 25/08/2004 Hour: 18:51:50
Last Logout:   Day: 25/08/2004 Hour: 18:39:25
Client:      NMDC, DCPRO, or DCGUI without tag.
Version:      Without Version
Mode:      Active
Hubs:      0/0/7
Slots:      0
Limiter:      Without Limiter
Mail:      Without Mail
Description:    <++ V:0.401,M:A,H:0/0/7,S:0>
Share:      0.00 GB
Connection:   LAN(T1)
Last Ban:      NONE
Timed Banned:   0
Last Kick:      NONE


btw it's a nice script
Title:
Post by: nErBoS on 25 August, 2004, 19:29:22
Hi,

Yep founded the little bug, i have edited in the zip get the script again after extract restart your HUB to all bad data be over write. Thanks for the reports.

Best regards, nErBoS
Title:
Post by: ruud on 25 August, 2004, 22:16:10
Hi nErBoS

when a users is on Gaglist and say's something to the bot in PM, i get this error
Syntax error: attempt to index a nil value
stack traceback:
   1:  function `DataArrival' at line 507 [file `E:\testhub\PtokaX\scripts\Brain-Master.lua']


The offline message can be written, but the user will not recieve it.

 X(
Title:
Post by: nErBoS on 25 August, 2004, 23:31:14
Hi,

Once again thanks for the report, both problems have been fixed in the ZIP above.

Best regards, nErBoS
Title:
Post by: ruud on 26 August, 2004, 01:02:07
Hi nErBoS

Thanks for the Quick updates, but now i have another one for you  :]

When a user set's himself away, i get this message when i use Show Away's

No syntax errors in script file Brain-Master.lua
Syntax error: attempt to call global `OPCHECKMSG3' (a string value)
stack traceback:
   1:  function `AwayList' at line 1227 [file `e:\testhub\PtokaX\scripts\Brain-Master.lua']
   2:  function `DataArrival' at line 728 [file `e:\testhub\PtokaX\scripts\Brain-Master.lua']

------------------------------

I have disallowed Users without tag, but they still can connect the hub.
Title:
Post by: nErBoS on 31 August, 2004, 22:45:00
Hi,

Brain-Master v.: 2.1b

Notes:

- Correction of some bugs (thanks to ruud);
- Code Script is compiled (the code is avaible at Base-Dados\Script-Code\).


Best regards, nErBoS
Title:
Post by: 6Marilyn6Manson6 on 26 September, 2004, 20:58:28
I nErBoS. I search this version of BrainMaster: 1.0a 1.0b 1.0c 1.0e 1.0f 1.1a 1.1b 1.1c 1.1d 1.1e . Can I download it, please? Thank a lot


My HUB:   planetarium.no-ip.org
Title:
Post by: nErBoS on 26 September, 2004, 22:37:13
Hi,

I have lost those versions, i only have the 2.0 versions.

Best regards, nErBoS
Title:
Post by: Boostland on 03 October, 2004, 10:46:46
I have the 1.1i if you want

http://members.iinet.net.au/~boostlinux/Brain-Master%201.1i.zip
Title:
Post by: nErBoS on 03 October, 2004, 23:29:51
Hi,

In the next Weekdend i will start doing a new version to Brain-Master that will include some correction of bugs (not serious) and new things like:

- Rules (multihub,slots,share) for each profile (configurated in GUI);
- Changing the !offmsg command and function to a kind of PM box (like you have in foruns);
- Thinking on adding to users !lang command to each user choose what kind of language he want to use with the script. (only thinking because some thing like this can take some resources and will give some hard work to apply all script)

So any ideas please give it in this week  ;)  :))

Best regards, nErBoS
Title:
Post by: patamon90 on 19 October, 2004, 15:59:58
Sorry for interupt =)
But I really want an !report command in brain-master, that would do the whole script better =)
Thanks and hope that will work, but that will maybe be in next version nErBoS =)
Title:
Post by: nErBoS on 20 October, 2004, 03:02:36
Hi,

Maybe I am too drunk, but what does the command !report will do ??  :))

Best regards, nErBoS
Title: Hi!
Post by: WickeD on 20 October, 2004, 12:20:42
I think patamon90 mean that he/she want an command that the users can send a Report to OP/SU/SU+ if a user is breaking the rules....  "I think"  =)

/WickeD
Title:
Post by: nErBoS on 20 October, 2004, 13:31:52
Hi,

Ohhh ok, i will implement that on the next version  :))
I think i had that command on the earlier Brain-Master, must have forgot to put when i have rewritten the script.

Best regards, nErBoS
Title:
Post by: patamon90 on 20 October, 2004, 16:28:21
okay! thanks very much nErBoS really want to kiss you, but I think your not close to Sweden =)
Title:
Post by: patamon90 on 28 October, 2004, 19:38:26
So... when does the update come? or are you on vacation =P
Title:
Post by: nErBoS on 29 October, 2004, 02:27:19
Hi,

Vactions that would be great, but i am having a lot of work i only have some free time in the weekend, so it will take some time.

Best regards, nErBoS
Title:
Post by: patamon90 on 29 October, 2004, 07:22:59
Oh sorry, but the script should be up soon then I hope =)
Title:
Post by: daft009 on 03 November, 2004, 08:07:50
hi,

i have around 2,600 IP ranges that should be allowed into the hub, i tried saving this list in the same format as ISP.lua

but when i load config.exe, and load the ISP table there, they do not show, the table is shown as blank. i have made sure that it is in the correct format.

is there a way to do this as adding 2,600 IP ranges using the GUI will take too long.

thanks

daft009
Title:
Post by: nErBoS on 03 November, 2004, 13:35:58
Hi,

Send me in PM your range table and i will check it out if it has any error.

Best regards, nErBoS
Title:
Post by: night_hawk on 20 November, 2004, 20:43:57
hi how old is this bot as i am looking for a new one to use on my hub as i do not like robocop anymore..
Title:
Post by: nErBoS on 20 November, 2004, 22:21:08
Hi,

The BOT first was create only for my use, them i have made it to Portuguese people, them i have it release to all world, see the date of the first topic, that was the date of release to all world  :)) .

Best regards, nErBoS
Title:
Post by: night_hawk on 20 November, 2004, 23:54:25
thank you just looking for a nice bot to use tired fir the one i am using the guy that make robcop has stoped anyony from letting in old users like old dc++ and odc and no tags..i run a private hub and like to find a new to of the line bot was looking at yours..or if you know of anything better can you let me know..thank you
Title:
Post by: patamon90 on 02 December, 2004, 14:37:27
Sorry for interupting ^^

just wondering when the new version with "report" function arrives =P

(you know that report when users can report illegal stuff to admins in a hub)
Title:
Post by: nErBoS on 03 December, 2004, 00:34:41
Hi,

Sorry about the delay, i am having a lot of work this days, i have some many things to do, i am losing time for scripting, let's hope before the new year.

Best regards, nErBoS
Title:
Post by: Ubikk on 22 December, 2004, 14:32:34
Wich is the latest version of this script and where can I download it from? :)
Title:
Post by: 6Marilyn6Manson6 on 22 December, 2004, 14:41:21
QuoteOriginally posted by Ubikk
Wich is the latest version of this script and where can I download it from? :)

Hello;
last version of BrainMaster is 2.1b and you can download it of:

http://dcportugal.com/scripts/Brain-Master%202.1b.zip

bye bye
Title:
Post by: Ubikk on 22 December, 2004, 18:33:55
thanx a lot 8)
I've been looking troughout all the other scripts, like Robocop &co., but I think Brain-Master is the best  :)
Title:
Post by: 6Marilyn6Manson6 on 22 December, 2004, 18:37:12
Yes... Brain Master is the best but.. after NXS :P
bye bye
Title:
Post by: [PT]CableGuy on 22 December, 2004, 22:03:40
QuoteOriginally posted by 6Marilyn6Manson6
Yes... Brain Master is the best but.. after NXS...
I'm sorry , but i have to disagree with you on this one. :]
I know nErBoS for some time and besides making scripts in lua , he also creates vbscripts for SDCH/NMDC.
He's a very dedicated and humble human being...so to speak.
In this particular case , of nErBoS first "all_in_one.luaBot" called Brain-Master...the support is incredible !!!
It's like when ChannelBot was the top script and Guibs helped a LOT !!!!
I'm not saying that KnightLitch is not one of the best scripters i've ever seen...
...i'm just saying that ...Brain-Master is "growing" quickly !!!
GO nErBoS , GO !!!!
Title:
Post by: 6Marilyn6Manson6 on 22 December, 2004, 22:25:35
nErBoS is very very magic but.. NightLight is the best
Title:
Post by: Typhoon on 23 December, 2004, 16:30:49
just remember it's no contest ;o) , it's all fun and besides that plop still rocks :o)


Typhoon?
Title:
Post by: [PT]CableGuy on 24 December, 2004, 07:55:41
QuoteOriginally posted by 6Marilyn6Manson6
...NightLight...
LOOOOOL , it's wrong. :]
NightLitch is the "real nick" !!!

btw: I must agree with Typhoon? !!! plop RULEZ BIG TIME !!!!  :)
Title:
Post by: 6Marilyn6Manson6 on 24 December, 2004, 09:48:14
OPs sorry for my erro... sorry NightLitch
Title:
Post by: ConejoDelMal on 25 December, 2004, 22:20:02
Hi....i dont know who is the best scripter, but i do know i like Brain Master...
I was using Robocop since always, till one day that i got curious about other bots, and i just couldnt go back to robocop after i saw this one...

and also, open source is the way all should make their bots, i use and adapt them but with full credits to the makers

nErBoS, cant wait to see you next version   :]
Title:
Post by: nErBoS on 27 December, 2004, 14:34:25
Hi,

I thanks for the kind words. About the best scripters i can recall many  :)) . I will be off this days to spent the New Year with some friends, so new version of Brain-Master just next year. Have a wonderfull New Year.

Best regards, nErBoS
Title:
Post by: nErBoS on 28 December, 2004, 03:17:59
Hi,

The host that has the script is under constrution, in the beggining of the new year all will be fix.

Best regards, nErBoS
Title:
Post by: bastya_elvtars on 04 January, 2005, 01:30:00
well there is one title for nErBoS:

he is the most productive scripter, he made dozens of scripts.

IMHO also the most helpful as well

happy new year nErBoS!
Title:
Post by: nErBoS on 04 January, 2005, 01:33:19
Hi,

Thanks bastya  :))

Best regards, nErBoS

PS.: Scripts host is fixed.
Title:
Post by: patamon90 on 13 January, 2005, 18:42:26
Hello nErBoS and thanks for the best multi script =)

I have a problem with my brain-Master.. get this sometimes..

Syntax error: bad argument #1 to `strfind' (string expected, got nil)  stack traceback:
     1:  function `strfind' [C]
     2:  function `NewUserConnected' at line 341 [file `Brain-Master.lua']


But I just get it like.. max once per hour =/
please help..?
Title:
Post by: nErBoS on 14 January, 2005, 02:01:14
Hi,

Go to the script file and tell me what do you have in the 341 line, please.

Best regards, nErBoS
Title:
Post by: patamon90 on 16 January, 2005, 21:23:37
okay.. hmm.. let's see... Haven't been home this weekend. sorry.. here it comes:

--## Block Open Extra Slots ##--
if (Settings.OES == "off" and strfind(user.sMyInfoString," if (user.sMyInfoString ~= nil and strfind(user.sMyInfoString, "O:")) then
user:SendData(Bot, OPENEXTRASLOTMSG1)
user:SendData(Bot, GERALUSEMSG4)
user:Disconnect()
end
end

Line 341 is:

if (Settings.OES == "off" and strfind(user.sMyInfoString,"
Title:
Post by: nErBoS on 16 January, 2005, 23:24:19
Hi,

Put this instead of the one you gave me,...

--## Block Open Extra Slots ##--
if (Settings.OES == "off" and user.sMyInfoString ~= nil and strfind(user.sMyInfoString," if (user.sMyInfoString ~= nil and strfind(user.sMyInfoString, "O:")) then
user:SendData(Bot, OPENEXTRASLOTMSG1)
user:SendData(Bot, GERALUSEMSG4)
user:Disconnect()
end
end

Don't forget to compile the script after the change.

Best regards, nErBoS
Title:
Post by: patamon90 on 17 January, 2005, 07:36:20
thanks.. seems to work now =)

but now I got an requset to the script.. maybe I've missed this but I request anyway =D

Is there possible to get an +myip command and then get an PM who says your PM.. and maybe when someone connect to the hub the IP and Nick is below the motd.. but it's just shown to the user who got that IP =P

maybe.. hard to understand. but I tried as best as I could =)
by the way; Very good mulit script! It rocks hard =)

and another request.. Is there possible to turn off the kick/warn messages in main? or have them in the statusbar (?) instead.

Thanks, and hope the new version will come soon =)
Title:
Post by: nErBoS on 18 January, 2005, 00:23:14
Hi,

Yes i can input that request, but new version only in Febuary (i have some vacations there, i hope)

Best regards, nErBoS
Title:
Post by: patamon90 on 19 January, 2005, 19:11:03
hmm... Now I get this:
QuoteSyntax error: bad argument #1 to `strfind' (string expected, got nil)
stack traceback:
   1:  function `strfind' [C]
   2:  function `CheckClient' at line 2781 [file `Brain-Master.lua']
   3:  function `NewUserConnected' at line 371 [file `Brain-Master.lua']

line 371:
if (Settings.OES == "off" and user.sMyInfoString ~= nil and strfind(user.sMyInfoString,"and the whole thing on 371:
--## Block Open Extra Slots ##--
if (Settings.OES == "off" and user.sMyInfoString ~= nil and strfind(user.sMyInfoString," if (user.sMyInfoString ~= nil and strfind(user.sMyInfoString, "O:")) then
user:SendData(Bot, OPENEXTRASLOTMSG1)
user:SendData(Bot, GERALUSEMSG4)
user:Disconnect()
end
end
and line 2781:
user:SendData(Bot, FAKECLIENTMASG2))
and the whole thing:
--## Check Client and Min Version ##--
function CheckClient(user)
local s,e,tag,ver = strfind(user.sMyInfoString, "%$MyINFO%s+%$ALL%s+%S+%s+(.+)%$%s+%$")
if (tag == nil or strfind(tag, ">$") == nil) then
if (Settings.NOTAG == "off") then
user:SendData(Bot, FAKECLIENTMASG1)
user:SendData(Bot, FAKECLIENTMASG2)
forbidencheck[user.sName] = 1
user:Disconnect()
end
return 0
elseif (strfind(tag," if (Settings.oDC.Mode == "on") then
s,e,ver = strfind(tag,"V:(%d+%.%d+),M:")
if (tonumber(Settings.oDC.minVer) ~= nil and tonumber(ver) < tonumber(Settings.oDC.minVer)) then
user:SendData(Bot, FAKECLIENTMASG3)
user:SendData(Bot, FAKECLIENTMASG4.." "..Settings.oDC.minVer)
user:Disconnect()
end
else
user:SendData(Bot, FAKECLIENTMASG5)
user:Disconnect()
end
return 0
elseif (strfind(tag," if (Settings.ptDC.Mode == "on") then
if (strfind(user.iVersion, "78551224731") == nil) then
ptDcFake(user)
end
else
user:SendData(Bot, FAKECLIENTMASG6)
user:Disconnect()
end
return 0
elseif (strfind(tag," if (Settings.DCGUI.Mode == "on") then
s,e,ver = strfind(tag,"V:0.(%d+%.%d+).+,M:")
if (tonumber(strsub(Settings.DCGUI.minVer,3,strlen(Settings.DCGUI.minVer))) ~= nil and tonumber(ver) < tonumber(strsub(Settings.DCGUI.minVer,3,strlen(Settings.DCGUI.minVer)))) then
user:SendData(Bot, FAKECLIENTMASG7)
user:SendData(Bot, FAKECLIENTMASG4.." "..Settings.DCGUI.minVer)
user:Disconnect()
end
else
user:SendData(Bot, FAKECLIENTMASG8)
user:Disconnect()
end
return 0
elseif (strfind(tag," if (Settings.DCPRO.Mode == "on") then
s,e,ver = strfind(tag,"V:0.2.(%d+%.%d+).+,M:")
if (tonumber(strsub(Settings.DCPRO.minVer,5,strlen(Settings.DCPRO.minVer))) ~= nil and tonumber(ver) < tonumber(strsub(Settings.DCPRO.minVer,5,strlen(Settings.DCPRO.minVer)))) then
user:SendData(Bot, FAKECLIENTMASG9)
user:SendData(Bot, FAKECLIENTMASG4.." "..Settings.DCPRO.minVer)
user:Disconnect()
end
else
user:SendData(Bot, FAKECLIENTMASG10)
user:Disconnect()
end
return 0
elseif (strfind(tag," if (Settings.iDC.Mode == "on") then
s,e,ver = strfind(tag,"<")
if (tonumber(Settings.iDC.minVer) ~= nil and tonumber(ver) < tonumber(Settings.iDC.minVer)) then
user:SendData(Bot, FAKECLIENTMASG11)
user:SendData(Bot, FAKECLIENTMASG4.." "..Settings.iDC.minVer)
user:Disconnect()
end
else
user:SendData(Bot, FAKECLIENTMASG12)
user:Disconnect()
end
return 0
elseif (strfind(tag," if (Settings.RMDC.Mode == "on") then
s,e,ver = strfind(tag,"V:(%d+%.%d+).+,M:")
if (tonumber(Settings.RMDC.minVer) ~= nil and tonumber(ver) < tonumber(Settings.RMDC.minVer)) then
user:SendData(Bot, FAKECLIENTMASG23)
user:SendData(Bot, FAKECLIENTMASG4.." "..Settings.RMDC.minVer)
user:Disconnect()
end
else
user:SendData(Bot, FAKECLIENTMASG24)
user:Disconnect()
end
return 0
elseif (strfind(tag," if (Settings.StrgDC.Mode == "on") then
s,e,ver = strfind(tag,"V:(%d+%.%d+).+,M:")
if (tonumber(Settings.StrgDC.minVer) ~= nil and tonumber(ver) < tonumber(Settings.StrgDC.minVer)) then
user:SendData(Bot, FAKECLIENTMASG25)
user:SendData(Bot, FAKECLIENTMASG4.." "..Settings.StrgDC.minVer)
user:Disconnect()
end
else
user:SendData(Bot, FAKECLIENTMASG26)
user:Disconnect()
end
return 0
elseif (strfind(tag," if (Settings.CMDDC.Mode == "on") then
s,e,ver = strfind(tag, "")
if (tonumber(Settings.CMDDC.minVer) ~= nil and tonumber(ver) < tonumber(Settings.CMDDC.minVer)) then
user:SendData(Bot, FAKECLIENTMASG27)
user:SendData(Bot, FAKECLIENTMASG4.." "..Settings.CMDDC.minVer)
user:Disconnect()
end
else
user:SendData(Bot, FAKECLIENTMASG28)
user:Disconnect()
end
return 0
elseif (strfind(tag," if (Settings.NMDC2.Mode == "off") then
user:SendPM(Bot, FAKECLIENTMASG29)
user:Disconnect()
end
return 0
elseif (strfind(tag,"<+") ~= nil) then
s,e,ver = strfind(tag,"V:(%d+%.%d+),M:")
if (tonumber(Settings["DC++"]["minVer"]) ~= nil and tonumber(ver) < tonumber(Settings["DC++"]["minVer"])) then
user:SendData(Bot, FAKECLIENTMASG30)
user:SendData(Bot, FAKECLIENTMASG4.." "..Settings["DC++"].minVer)
user:Disconnect()
end
VersionCheckDCpp(user)
return 0
end
end
Title:
Post by: nErBoS on 20 January, 2005, 01:04:21
Hi,

The lines are wrong. Open the script with the notepad and press CTRL+G and write the line you want, and the pointer will get there.

Best regards, nErBoS
Title:
Post by: patamon90 on 20 January, 2005, 17:54:17
hmm, CTRL+G doesn't seems to be anything.. just the orginal computer beep when I try..
Title:
Post by: nErBoS on 21 January, 2005, 00:44:35
Hi,

Have you opened the script wiht notepad ?? By press CTRL+G you will get a box just write the line number.

Best regards, nErBoS
Title:
Post by: patamon90 on 21 January, 2005, 11:04:11
yaa, notepad!
(Start-menu/run../notepad.exe)
Title:
Post by: nErBoS on 23 January, 2005, 00:13:33
Hi,

Send the script code to my mail then.

Best regards, nErBoS
Title:
Post by: nErBoS on 07 February, 2005, 02:10:01
Hi,

Brain-Master v.: 2.1c

Notes:

- Correction in the script due to bad saving of changed Settings;
- Correction in the script due to bad MyInfoString in the connection of an user.

Download HERE (http://pt-hubs.c-f-h.com/scripts/Brain-Master%202.1c.zip)

Best regards, nErBoS
Title:
Post by: nErBoS on 07 February, 2005, 02:15:04
Hi,

This is only a BUG correction version, i have started to re-write the new version, so it will take time.

Best regards, nErBoS
Title:
Post by: nErBoS on 25 February, 2005, 20:26:23
Hi,

There was a little bug in the commands prefix, it has been fixed in the script above.

Best regards, nErBoS
Title:
Post by: ConejoDelMal on 06 March, 2005, 17:29:05
Hey nErBoS, I was wondering if the new version will be in lua5... or if you will write one for the new ptokax, cause i love your work  ;)
Title:
Post by: nErBoS on 06 March, 2005, 18:16:18
Hi,

Yes the script will be re-written in LUA 5. I will start to work on it when i am finished with other scripts.

Best regards, nErBoS
Title:
Post by: Hellkeepa on 18 May, 2005, 04:30:32
HELLo!

The site, and consequently the script, seems to be down. Thus I was wondering if there was anyone in here that knew if the site will come back online soon, or if they have a copy of the script they could be so kind as to send to me?

Happy codin'!
Title:
Post by: ConejoDelMal on 18 May, 2005, 05:45:57
are you searching for it in Lua 4 or Lua 5?

if lua 4 i can send it to you, lua 5 is still not made
Title:
Post by: Hellkeepa on 10 June, 2005, 22:55:35
HELLo!

Apologies for the long response time, but I am on vacation now.

If you could send it to me in Lua 4 then I would appreciate it a lot, if need be I think I'll be able to translate it to Lua 5 myself. ;) *Knocks on wood* :P

My e-mail is "hellkeeper_1" and it's a Hotmail address, I'm sure you'll be able to complete it and the spam-bots not. :D

Happy codin'!
Title:
Post by: ConejoDelMal on 11 June, 2005, 00:07:27
here it is, Brain Master Lua 4 (http://www.nerbos.c-f-h.com/modules.php?name=Downloads&d_op=getit&lid=1)

And madman already saved you work in translating it to lua 5 here (http://board.univ-angers.fr/thread.php?threadid=4729&boardid=26&styleid=1&sid=f59016c0ce0c6e3de0eec9ab31bfa7cd)
Title:
Post by: Hellkeepa on 11 June, 2005, 12:00:47
HELLo!

Thanks a lot, much appreciated. :)

Happy codin'!
Title:
Post by: Skippy84 on 14 June, 2005, 10:37:43
On my site you can find the script

that includet the german language file
and i have found little misstakes in the english lua
thats also korrekted




http://skippy.dyndns.ws/Forum/viewtopic.php?p=57#57


PS:


and i send the files to madman
Title: error in hub
Post by: [NL]-Rob on 26 June, 2005, 17:37:48
Hello.

1st of all, great script. Thank you for this hard work.
All  looked great untill i started the hub and  users came in.  Then i just see  this  chatline:

[17:33] Syntax Brain-Master.lua:2877: attempt to compare nil with number

Can you help me out here?

I am using the compiled version (lua5?)

Thanks

Rob
Title:
Post by: Madman on 26 June, 2005, 21:19:03
QuoteOriginally posted by [NL]-Rob
Hello.

1st of all, great script. Thank you for this hard work.
All  looked great untill i started the hub and  users came in.  Then i just see  this  chatline:

[17:33] Syntax Brain-Master.lua:2877: attempt to compare nil with number

Can you help me out here?

I am using the compiled version (lua5?)

Thanks

Rob

Pleas use the lua5 thread if using the lu5 version.. make it easier for me...
*Click me* (http://board.univ-angers.fr/thread.php?threadid=4729&boardid=26&styleid=1&sid=7efb0be7a0205d2ca34b4e51527d74d3)
So i dont have to check the both lua 5 and the lua 4 version =)

as for the error...
As i can see the only way to get the error is if a user dont have the x.x.x.x pattern... Witch as far as i kno is imposibole... but i'm waiting on answer from the big lua guys ;)

*Edit*

Do you always get that error?
or did it just happens once?