Brain-Master - Lua5 - Page 2
 

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

Brain-Master - Lua5

Started by Madman, 09 June, 2005, 22:05:08

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Madman

#25
Package updated...

Found a typo when checking for bad Ips...
Just made a quickcheck.. should be fixed.. ;)

Dont user P2P Gurdain..  so i dont know.. ;p
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

zinden

error:

[14:11:35] Brain-Master.lua:2669: bad argument #1 to `find' (string expected, got nil)

alot of them today.....
Xion++ - Where it all begins
http://www.zinden.net

Madman

bah... starting to getting bored on fixing bugs... lol..
Package updated....

*stares at the screen, waiting for new bug report*
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

zinden

error during the night:

[00:35] Syntax Brain-Master.lua:2566: bad argument #1 to `find' (string expected, got nil)

few of them.....
Xion++ - Where it all begins
http://www.zinden.net

Madman

package updated..

i'm beginig to belive that it's a client... just one client... beacuse all errors you been giving me is a about MyINFO stuff... i dont get thoose errors... So my guess it is a client...

PM me your hub addy... and i'll fix a script for u later.... see if we can find out if there is a client that does it...
But i'm gonna a bit busy... 4 a few days.... so it have 2 wait a few days..

But i'll be here... and try to have time 2 fix errors...
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

zinden

errors so far:
[14:45] Syntax Brain-Master.lua:2465: attempt to concatenate field `vrs' (a nil value)


atleast not a 'find' error   :D
Xion++ - Where it all begins
http://www.zinden.net

Madman

okey.. now i'm posetive it's a client thing... The code info.vrs is on only 2 places... 1 is the one you reported... witch is a line 2 show the ClientVerion number... the second one is to get the ClientVersion number...

So only way 2 get error is that the client send fucked up myinfo... makeing PtokaX unable to read it correctly....
What client are you using so u can test it... and what version?
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

Madman

package updated..
Quote-- Fixed a bug with kicking from some clients (Thanks [AT]conejodelmal 4 report)
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

Snoris

#33
iShareAmount = iShareAmount.." GB"


Isnt that just lazy??   ;)

*EDIT*
There might be people that have MB in sharelimt  =)
There are not many but still....

I havent scripted in a very long time and dont wanna search your hole script for a solution  =)

Madman

QuoteOriginally posted by Snoris
iShareAmount = iShareAmount.." GB"


Isnt that just lazy??   ;)

*EDIT*
There might be people that have MB in sharelimt  =)
There are not many but still....

I havent scripted in a very long time and dont wanna search your hole script for a solution  =)
Maybe it it is a bit lazy...
BUT this is not my script...
I only converted it... due to 2 much freetime...
It's still nErBoS script...
i take no requests and wont add extra stuf...
I'll only fix bugs...
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

Dessamator

haha, i agree with u madman, but the solution is simple, just right it with a decimal point, or use fractions, snoris
Ignorance is Bliss.

(-=TrIp-iN-SuN=-)

master chat doing errors i can't talk in master chat?? ?(

Madman

#37
QuoteOriginally posted by (-=TrIp-iN-SuN=-)
master chat doing errors i can't talk in master chat?? ?(

The error msg woulg be good 2 have...
Anyway.. if ixed this error..
[11:10:55] <Brain-Master> Brain-Master.lua:612: attempt to call global `strlower' (a nil value)


Package updated...
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

Mikey

Is it possible to add more profiles. Meaning- Us hub owners can add as many profiles as we need and still use the rightclicks?
Mikey

**Friends Unlimited Network**
    Network Founder

Madman

Quote from: Mikey on 08 March, 2006, 02:03:30
Is it possible to add more profiles. Meaning- Us hub owners can add as many profiles as we need and still use the rightclicks?
Yes,
Just mod this part of the script to suit your needs

--## Deal with RightClick Commands ##--
function RigthClickCMD(user)
	user:SendData("$UserCommand 255 1 |")
	UserCMD(user)
	if (user.bOperator) then
		OpCMD(user)    
		if (user.iProfile == 4) then
			AdimCMD(user)
		elseif (user.iProfile == 0) then
			AdimCMD(user)
			MasterCMD(user)
		end
	end
end
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

Mikey

Uhhhhh I'll try still learning LUA 5
Mikey

**Friends Unlimited Network**
    Network Founder

Mikey

#41
OK this script is compiled how do I do it?

Ok these are the profiles I need

NetFounder, CoFounder, Owner, CoOwner, Master, Moderator, ChiefOP, OP, Tech, SVIP, ForumsVIP, VIP, Reg, User
Mikey

**Friends Unlimited Network**
    Network Founder

Madman

Hehe, okey...
An explonation of the code...
--## Deal with RightClick Commands ##--
function RigthClickCMD(user)
	user:SendData("$UserCommand 255 1 |") -- Cleans the rightclick from all other cmd's
	UserCMD(user) -- Send normal user cmds
	if (user.bOperator) then -- if user op or above
		OpCMD(user) -- Send op cmd's
		if (user.iProfile == 4) then -- if user is profile 4 (Admin)
			AdimCMD(user) -- Send admin cmd
		elseif (user.iProfile == 0) then -- if user is profile 0 (Master)
			AdimCMD(user) -- Send admin cmd
			MasterCMD(user) -- Send Master cmd
		end
	end
end


Now lets asume that you add a profile called Moderator, and if you only have the Profiles that comes with Brain-Master.
The Moderator profile will get number 5, and u make the profile OP, the new code wold look like this...

--## Deal with RightClick Commands ##--
function RigthClickCMD(user)
	user:SendData("$UserCommand 255 1 |") -- Cleans the rightclick from all other cmd's
	UserCMD(user) -- Send normal user cmds
	if (user.bOperator) then -- if user op or above
		OpCMD(user) -- Send op cmd's
		if (user.iProfile == 4) then -- if user is profile 4 (Admin)
			AdimCMD(user) -- Send admin cmd
		elseif (user.iProfile == 0) then -- if user is profile 0 (Master)
			AdimCMD(user) -- Send admin cmd
			MasterCMD(user) -- Send Master cmd
		elseif (user.iProfile == 5) then -- if user is profile 5 (Moderator)
			ModCMD(user)
		end
	end
end


To create the ModCMD(user) function find, --## Administrator Commands ##--, and Cop/paste the Master/Admin cmd's in to the function.

Hope this will help.

The source is located in Base-Dados\Script-Code
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

Madman

Quote from: Mikey on 08 March, 2006, 04:03:36
NetFounder, CoFounder, Owner, CoOwner, Master, Moderator, ChiefOP, OP, Tech, SVIP, ForumsVIP, VIP, Reg, User

Woow... That's alot of profiles... That would require alot of work.... Hope you can make it through my guide..
If not... well... I guess i could make it... but i havent created Brain-Master, BUT i can make thoose profiles, but then you need to tell me what cmd's you want for each profile, eccept, thoose that are allready in it...

But it would be good if you tied creating it your self, code to learn ;)

Btw, to compile, just duble click complie.bat

Edit:

Are you sure you really need all thoose profiles?
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

Mikey

Yeah I do. I can modify scripts but this is an awfully big script for me....lol I'm afraid to see how this is gonna turn out...LMAO
Mikey

**Friends Unlimited Network**
    Network Founder

Madman

Quote from: Mikey on 08 March, 2006, 04:21:53
Yeah I do. I can modify scripts but this is an awfully big script for me....lol I'm afraid to see how this is gonna turn out...LMAO

Hehe, just ask 4 help if you need...
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

Mikey

#46
QuoteNetFounder, CoFounder, Owner, CoOwner, Master, Moderator, ChiefOP, OP, Tech, SVIP, ForumsVIP, VIP, Reg, User

NetFounder, CoFounder, Owner, CoOwner, Master,<-----All commands Available

Moderator, Tech<----All commands except for Hub Config commands

ChiefOP, OP, <--------------- Standard OP Commands

ForumsVIP, <------------VIP Commands with option to reg users

SVIP, <-----Only able to be kicked by Master and higher. Standard VIP Commands, (No Registration for Regs)

Reg, <-------Standard Reg Commands

User, <------ Rules and Regme Command if available in script


Does that help?

Op and higher uses opchat. I could care less about vip chat I wont use it

Mikey

**Friends Unlimited Network**
    Network Founder

Madman

This would require a almost rewrite of B-M...
And I stay @ the small script section. I'm sorry, I won't do this...
I made a promise, to myself, to never script an MainBot...
I think a proper action, is to ask an MainBot creator about this...
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

Mikey

LMAO I figured as much any way to simplify what I wanna do?
Mikey

**Friends Unlimited Network**
    Network Founder

Madman

NetFounder, CoFounder, Owner, CoOwner, Master <-- Use Master profile, and use Prefixes [NetFounder] and so on...
Moderator, Tech, ChiefOP, OP, <-- Use Op, and use Prefixes [Moderator] and so on...
ForumsVIP, SVIP, <-- Use VIP profile, use, prefix here 2...

As 4 the command's... I would suggest a request 4 a standalone script 4 the FVIP, it only needs a reg cmd...
As 4 the mod and Tech... I dunno, but specifing in a request, what cmd's they need.
That i think, would be the best soulation..
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

SMF spam blocked by CleanTalk