Do REALY NEED SOME help here
 

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

Do REALY NEED SOME help here

Started by Themaster, 14 December, 2004, 13:09:30

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Themaster

Hello ppl...I do realy need help to my script i need a person that will take some time at look on it and chance what there are to chance and so on
peace out...and love to your all scripter..that do the hard work  :D And all thx to your all there are here 2 help!!! :]

blade.lir.dk

Herodes

post the script somewhere we can get it ..

Themaster

#2
Hello again...i have 3 lua that i wan't you 2 look at and chance what there are 2 chance...

HERE

i do realy need that help... :(
Remember it is not finish my script
peace out...and love to your all scripter..that do the hard work  :D And all thx to your all there are here 2 help!!! :]

blade.lir.dk

[NL]Pur

is there anything you want too see added or do you have an problem with an error etc.

more details whould be helpfull :)

Themaster

it just it all...just chance what there are 2 be chance..and then added 2 me....i have some small problem on it
peace out...and love to your all scripter..that do the hard work  :D And all thx to your all there are here 2 help!!! :]

blade.lir.dk

Herodes

There are my comments ...

see this :
function flavour(user)
	tFlavours = { 
		"blueberry", 
		"lemon", 
		"blackburant", 
		"forest", 
		"raspberry", 
		"caramel", 
		"mint", 
		}
	SendToAll(" "..user.sName.." drinks his "..tFlavours[random(getn(tFlavours)].." flavoured tea.")
end
compared to this ...
function flavour(user)
   taste = random(7)
      if taste == 1 then
         SendToAll(" " ..user.sName" Drinks tea with blueberry flavour")
      elseif taste == 2 then
			SendToAll(" "..user.sName.." drinks tea with lemon flavour")
		elseif taste == 3 then
			SendToAll(" "..user.sName.." drinks tea with Blackcurramt flavour")
		elseif taste == 4 then
			SendToAll(" "..user.sName.." drinks tea with forest fruit flavour")
		elseif taste == 5 then
			SendToAll(" "..user.sName.." drinks tea with raspberry flavour")
		elseif taste == 6 then
			SendToAll(" "..user.sName.." drinks tea with caramell flavour")
		elseif taste == 7 then
			SendToAll(" "..user.sName.." drinks tea with mint flavour")
	end
end
(In this last one there is a syntax error too ... it came from the Command.lua .. the first "if"
a string concatation goes wrong because of poor syntax ... )

Also in Blade1.1.lua the function Readtextfile is declared twice ... this makes only the declaration closer to the end of the script valid .. the first one completely ignored and reduntant.

In general I think your script is just a "collage" of scripts ...
make your life easier by trying to put up smaller scripts ...
then move on to write ur own bot when you are fully aware of
what you are doing,... that's my personal opinion...

make use of the functions you have ...
for example ReadKicked and ReadKickBan functions in Blade1.1.lua can definately be rendered reduntant
if you call Readtextfile(user, "Blade/logs/Ban.txt"),
(at the same time you may use this function to display any other .txt )

make comments !
comment as much as you can ...
this will make you get used to stuff you already know ..
you'll be able to explain it(what the script does , what the function does ) better to yourself and others too!

GIVE CREDITS !
pitifully I see no credit notes in those functions ...
I know the scirpt isnt ready for disturbuting yet but you are giving it away when you post a link to it .. :(

Madman

#6
QuoteOriginally posted by Herodes
function flavour(user)
	tFlavours = { 
		"blueberry", 
		"lemon", 
		"blackburant", 
		"forest", 
		"raspberry", 
		"caramel", 
		"mint", 
		}
	SendToAll(" "..user.sName.." drinks his "..tFlavours[random(getn(tFlavours)].." flavoured tea.")
end

Who gets the credits for that piece of code?
I'm using it in my script =)
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

Themaster

i just try to make my own script with a lillte help from another script...
i will give credit for all there are helping me on it..i'm happy for it...
peace out...and love to your all scripter..that do the hard work  :D And all thx to your all there are here 2 help!!! :]

blade.lir.dk

SMF spam blocked by CleanTalk