PtokaX forum

Development Section => LUA & PtokaX-Scripting-Interface => Topic started by: LiqUiD~TrolL on 08 November, 2004, 23:10:13

Title: can anybody help me to fix LUA__!!!
Post by: LiqUiD~TrolL on 08 November, 2004, 23:10:13
well i got tiered to trying finding ppl n asking them all the time in LUA.
does anyone konw where can i go n get some first lessons in LUA scripting??
i have a hub n i prefer fix the scripts by my own_!!

have a nice days ppl =0)
Title:
Post by: ??????Hawk?????? on 08 November, 2004, 23:21:29
hi m8  

Have a look  in the   How To's (http://board.univ-angers.fr/board.php?boardid=4&sid=6aa40fabc83390d57f2992a69220f767)  Section of this Forum ....

any other Questions   try the search first  if no luck then  Post away  in the relevent Thread ..

??????Hawk??????
Title:
Post by: Corayzon on 09 November, 2004, 00:25:29
lua.org is good to, just to note: pTokax uses lua4 ;)

and as hawk said look around howto's, i know a few posts in there i have done that are awsome resource for newbies =]
Title:
Post by: LiqUiD~TrolL on 09 November, 2004, 14:57:55
well i have to check out the links you gave me guys.

matt how r you doing m8 =)
well done for being operator in israel ;-)


i ll post soon i guess,these are my first steps in this thing :)
Title:
Post by: LiqUiD~TrolL on 09 November, 2004, 15:58:07
well guys i searched a little but i didn t find what i m looking for

i need a turtoal, something to read to start building my own scripts from 0

can you plz give me some links with instactions about everything??
from 0 to a complete script??
Title:
Post by: Herodes on 10 November, 2004, 14:05:05
Well it seems like you havent put enough effort looking for smth ... there is a "Write your own Bot" thread series in the How To section that was recommended earlier ... Try looking in there ..

as soon as you know what you want to do, the only problem you'll face is "How To" do it .. ( but the first step remains .. you need to know what you wanna do..)
Title:
Post by: bastya_elvtars on 10 November, 2004, 17:28:58
use the ptokax scripting.txt the info in it owns
Title:
Post by: LiqUiD~TrolL on 12 November, 2004, 19:27:18
hello again guys whats up???



well i saw these lessons they are really awsome,=)

well to start with something i just want to fix a script to saw a txt file i8n my hub
like add a command +showfile

i don t think it s so comlicated,is it???
i understood some things_(*not all )
but some of them in these lessons
but to fix a script from 0 needs much more lessons hehehe
Title:
Post by: ??????Hawk?????? on 12 November, 2004, 19:38:56
hi m8  ..

Quotebut to fix a script from 0 needs much more lessons hehehe


my advise is to NOT try to create a script from 0 ...  YET

But  grab some Scripts from the board  and have a play around with them
and get used to how thing work and how the hub responds to different commands..

once you can comfortably edit and change the MAIN Body of some scripts  then you will find it a lot easier to start your own ...

......

??????Hawk??????
Title:
Post by: LiqUiD~TrolL on 12 November, 2004, 19:49:02
ehhe tnx your advice is really good, but i alreadty tried that ,hahaha


i m trying to moderate some scripts i m already useing in my hub

today i moderate this one  :

BotName = "-AdmiN~BoT-"

function NewUserConnected(curUser)
    data=curUser.sMyInfoString
    s,e,cmd = strfind( data, "[$]+[^$]+[$]+[^$]+[$]+[^$]+[$]+([^$]+)" )

if (strfind(cmd,"28.8K")) then
curUser:SendPM(BotName,"SorrY_BuT_Users_With_Slow_Connection_(28.8 modem_ArE_NoT_AlloweD_In_HerE_!!...@_@ ")
curUser:Disconnect()
end
if (strfind(cmd,"33.6K")) then
curUser:SendPM(BotName,"SorrY_BuT_Users_With_Slow_Connection_(33.6 modem_ArE_NoT_AlloweD_In_HerE_!!...@_@ ")
curUser:Disconnect()
end
if (strfind(cmd,"56K")) then
curUser:SendPM(BotName,"SorrY_BuT_Users_With_Slow_Connection_(28.8 modem_ArE_NoT_AlloweD_In_HerE_!!...@_@ ")
curUser:Disconnect()
end
end



it s a bot that doesn t allow to users with slow connections like 28,8 / 33,6 and 54kbs get in the hub

can you tell me a small script i can add if i want to show a txt file in my hub???
only this .not something too complicated,cause i don t want a big bot to Fuck my computers Memory while the hub is running .
you know what i mean ,a light script with small memory usage =)

greedings m8 =)
have a good friday night ahha
Title:
Post by: ??????Hawk?????? on 12 November, 2004, 20:41:19
hi m8  

a simple SEARCH for     'texter'   Brings up many options..
its a nice tool ( Top right hand side )..

take a look at  Plops Texter bot (http://board.univ-angers.fr/thread.php?threadid=1576&boardid=12&sid=6aa40fabc83390d57f2992a69220f767)
Title:
Post by: LiqUiD~TrolL on 14 November, 2004, 05:00:49
hello again my firend


well i tried this bot by plop


but i coudn t find witch command should activates the bot
i tried +text !text and fdfolder with + and !  but nothing happened


also take note that i have the txt file i want to be showned in there but nothin

what the..... =/
Title:
Post by: LiqUiD~TrolL on 17 November, 2004, 16:28:30
well yeah i finaly tried another version of this bot

and the mistake is that i was creating new text folder in the scripts folder
and that was my mistAKE there is already a text folder created when you are getting ptoka x progg from the net