PtokaX forum

Development Section => LUA & PtokaX-Scripting-Interface => Topic started by: jackthebest on 16 July, 2004, 00:28:56

Title: What is your favorite lua script?
Post by: jackthebest on 16 July, 2004, 00:28:56
What is your favorite lua script?
Title:
Post by: Flux on 16 July, 2004, 01:19:03
My favourite script is the following:

Glory Securitaz 1.9
Title:
Post by: NightLitch on 16 July, 2004, 02:11:23
THOR of course...  :D  New Version out soon...
Title:
Post by: BeeR on 16 July, 2004, 02:18:44
QuoteOriginally posted by jackthebest
What is your favorite lua script?

What is a lua script ??!!??  hahahahahaha
Title:
Post by: Madman on 16 July, 2004, 02:27:55
Robocop of course =)
Title:
Post by: D-J Valhala on 16 July, 2004, 09:03:00
hehe the Brain (Brain-Master) By nErBoS!!! :D

and BeeR...hi
*.lua script = Bot :)
Like robocop,Glory Securitaz,Thor :)
Title:
Post by: jackthebest on 16 July, 2004, 12:43:46
i have try :
gekko <-- i like it but the 7.2 v ban (automatically)  vast number of user  8o  
robocop
Mean_Machine <---- (i'm trying)
Title:
Post by: lynyrd on 16 July, 2004, 23:25:41
i just love piglja's chatbot =) and really liked skrollster and his great scripts...hope you both come back some day
Title:
Post by: jackthebest on 17 July, 2004, 00:06:29
piglja's chatbot <--- where can i find it?

For the italian user:
we can go on my hub end try vanessa v1.0 beta (chatbot) only italian at the moment...
Title:
Post by: lynyrd on 17 July, 2004, 01:01:39
here.. =)

code:
-------------------------------------------------------------------------------------
-- Very Simple(I am lying) ChatBot by piglja - 24/04/03 till 27/04/03
-- and lots of kisses for the sweet aMutex for his help by piglja 24/04/03 till 27/04/03
-- Modifyed to add users by a file and script restart does not matter by piglja - 02/05/03

botname = "chatbot"
fname = "Chatbot.tbl"
FFile = "Chatbot.txt"
nick={}
name={}

function Main()
frmHub:RegBot(botname)
Restart()
end

function DataArrival(user, data)
if(strsub(data, 1, 4) == "$To:") then  
data=strsub(data,1,strlen(data)-1)  
s,e,whoTo,from,msg = strfind(data,"$To:%s+(%S+)%s+From:%s+(%S+)%s+$%b<>%s+(.+)")  
if (whoTo == botname) then
if nick[user.sName] ~= nil then
nick[user.sName] = nil
SaveToFile(user.sName,fname,nick)
PmToAStupidTablesGrrrButIAmStartingToLikeThemLOL(msg,from,user.sName)
nick[user.sName]=user.sName
SaveToFile(user.sName,fname,nick)
else
user:SendPM(botname,"Access Denied!!!")
end
end
end
end

function PmToAStupidTablesGrrrButIAmStartingToLikeThemLOL(msg,user,one)
   for i,v in nick do
      SendPmToNick(i,botname,"<"..one..">"..msg)
   end
end

function Restart()
local handle = openfile(FFile, "r")
  if (handle ~= nil) then
    local line = read(handle)
    while line do
      nick[line]=line
      SaveToFile(line,fname,nick)
      line = read(handle)
    end
    closefile(handle)
  end
  end

-------------------------
 function SaveToFile(arg,file,table)
local aString = pickle(table)
   writeto(file)
write(aString)
writeto()
end

function pickle(t)
  return Pickle:clone():pickle_(t)
end
Pickle = {
  clone = function (t) local nt={}; for i, v in t do nt=v end return nt end
}
function Pickle:pickle_(root)
  if type(root) ~= "table" then
    error("can only pickle tables, not ".. type(root).."s")
  end
  self._tableToRef = {}
  self._refToTable = {}
  local savecount = 0
  self:ref_(root)
  local s = ""
  while getn(self._refToTable) > savecount do
    savecount = savecount + 1
    local t = self._refToTable[savecount]
    s = s.."\n"
    for i, v in t do
        s = format("%s%s\n", s, self:value_(i), self:value_(v))
    end
    s = s--.."\n"
  end
  return format("%s", s)
end
function Pickle:value_(v)
  local vtype = type(v)
  if     vtype == "string" then return format("%s", v)
  elseif vtype == "number" then return v
  elseif vtype == "table" then return "{"..self:ref_(v).."}"
  else
  end  
end
function Pickle:ref_(t)
  local ref = self._tableToRef[t]
  if not ref then
    if t == self then error("can't pickle the pickle class") end
    tinsert(self._refToTable, t)
    ref = getn(self._refToTable)
    self._tableToRef[t] = ref
  end
  return ref
end
function unpickle(s)
  if type(s) ~= "string" then
    error("can't unpickle a "..type(s)..", only strings")
  end
  local tables = dostring("return "..s)
 
  for tnum = 1, getn(tables) do
    local t = tables[tnum]
    local tcopy = {}; for i, v in t do tcopy = v end
    for i, v in tcopy do
      local ni, nv
      if type(i) == "table" then ni = tables[i[1]] else ni = i end
      if type(v) == "table" then nv = tables[v[1]] else nv = v end
      t[ni] = nv
    end
  end
  return tables[1]
end
-------------------------------------------------------------------------------------
end of code
Title:
Post by: jackthebest on 17 July, 2004, 09:08:10
thx
i am trying it  :D
Title:
Post by: Tarot on 17 July, 2004, 11:13:17
RoboCop v8.0b

ant i test now Guardian Xenon
Title:
Post by: jackthebest on 17 July, 2004, 12:15:10
RoboCop v8.0b <---- very good :D
Title:
Post by: Tarot on 17 July, 2004, 12:19:58
Guardian Xenon is a gread script to looks wel and running wel now in my test hub
Title:
Post by: jackthebest on 17 July, 2004, 13:19:04
what do you think about gekko?

it good

but v7.2 ban wihtout any reason a large number o user....
Why??  ;(
Title:
Post by: Tarot on 17 July, 2004, 15:21:45
QuoteOriginally posted by jackthebest
what do you think about gekko?

it good

but v7.2 ban wihtout any reason a large number o user....
Why??  ;(
i have never try gekko script jack so can not tel you why he kick a large nuber of users  ?(
Title:
Post by: IceCoder on 03 August, 2004, 12:18:35
hum Thor.. i hope this new version is nice
Title:
Post by: Snooze on 03 August, 2004, 13:23:10
This is my altime fav script

sugar = 2
milk = nil
Cup:setCupSize = 4

for i=Cup:empty(), Cup:full() do
   CoffeeMachine:putInCup(coffee)
end

if sugar then
   for a=1,sugar do
      CoffeeMachine:putInCup(sugar)
   end
end

if milk then
   for a=1,milk do
      CoffeeMachine:putInCup(milk)
   end
end
Title:
Post by: [NL]Pur on 03 August, 2004, 14:17:37
nice one snooze,
my fav now too :)
Title:
Post by: Troubadour on 03 August, 2004, 14:21:45
Hmmmmm,
Coffee is almost anyones favorite, i guess.
So this must be one of the best scoring here.
;-)
Love it.


Regards,
Troubadour
Title:
Post by: ((UKSN))shad_dow on 03 August, 2004, 14:41:18
well ive ran/tryed most of the bigbots,

Dark-Mind
RoboCop
Mean-Machine
Channel Bot
Esthetic Bot
Geko
Guardian
Thor
Brain-Master
Therapy-X (*smile*)

All the above ,sorry i aint bios :) ,as a scripter if it wernt for these Bots , il naver had started to write Therapy-X :D
Title:
Post by: Snooze on 03 August, 2004, 17:27:49
It's plops script (the coffee one)
http://board.univ-angers.fr/thread.php?threadid=2327&boardid=17&styleid=1

;)
Title:
Post by: jackthebest on 03 August, 2004, 17:55:28
LLLLLLLLLOOOOOOOOOOOLLLLLLLLLLl
:D :D :D :D
Title:
Post by: Troubadour on 03 August, 2004, 18:57:12
QuoteOriginally posted by Snooze
It's plops script (the coffee one)
http://board.univ-angers.fr/thread.php?threadid=2327&boardid=17&styleid=1

;)

I allready assumed it was (just because it was about coffee) hehehe
Title:
Post by: Snooze on 03 August, 2004, 18:57:59
Good point, Troubadour :p
Title:
Post by: Tarot on 04 August, 2004, 07:41:56
Coffee is the engine for us
Title:
Post by: Snooze on 04 August, 2004, 09:22:23
[Off Topic] So what your saying is that if there were no coffee DC wouldn't excist ?
Title:
Post by: Troubadour on 04 August, 2004, 09:34:13
lol  :]  :]
Title:
Post by: 6Marilyn6Manson6 on 04 August, 2004, 10:34:22
The best BOT in LUA is: ChannelBot 4.3c_fix and the king of LUA are: 1 GUIBS, 2 Nathanos, 3 Night-Litch .

Bye Bye

My HUB is: planetarium.no-ip.org
Title:
Post by: NightLitch on 04 August, 2004, 11:17:17
QuoteOriginally posted by 6Marilyn6Manson6
The best BOT in LUA is: ChannelBot 4.3c_fix and the king of LUA are: 1 GUIBS, 2 Nathanos, 3 Night-Litch .

Bye Bye

My HUB is: planetarium.no-ip.org

hehe I like this, there is no NO plop, plop or ploppy lmao  :D

Cheers / NL
Title:
Post by: VidFamne on 04 August, 2004, 11:27:49
And what about; tezlo, RabidWombat, aMutex, DirtyFinger..... and so on?  :))
Title:
Post by: [NL]Pur on 04 August, 2004, 11:37:37
Piglja, bonki,  good old times snik :)
Title:
Post by: NightLitch on 04 August, 2004, 13:13:25
QuoteOriginally posted by VidFamne
And what about; tezlo, RabidWombat, aMutex, DirtyFinger..... and so on?  :))

Yeah good scripters to, but u missed my point when I wrote

Quotehehe I like this, there is no NO plop, plop or ploppy lmao   :D

Plop is ussually everywhere hehe...

but a little word for your message: aMutex, DirtyFinger and Tezlo I have not seen in ages...

Best Regards / NightLitch
Title:
Post by: pHaTTy on 04 August, 2004, 18:22:30
QuoteOriginally posted by jackthebest
what do you think about gekko?

it good

but v7.2 ban wihtout any reason a large number o user....
Why??  ;(

remove the ranges.dat, it probably has ther ips on bad ip ranges, add ones u dont want :)
Title:
Post by: plop on 05 August, 2004, 02:11:06
i find this a really hard question.
i made so much scripts, many which work in different way's.
some which are absolutly useless but fun, like the coffeemachine.
really cool 2 see many of you guy's like it so much.
texter 4.x, 1which in my eyes is the ideal texter bot.
freshstuff 4.x, more like a database then a release bot.
artificial insanety, a huge script and still fast as lightning (a lean bad user kicking machine).
the CMS for my site (specialy version 2 which i'm making now), really personal this 1 as i prob won't ever share this.
but think i should say crazybot, as this is the script where i learned the most from by making it.

you might ask "why no scripts from other ppl?".
i don't like 2 copy code from others, i wanne (learn to) make things myself.
from copying i don't learn a thing, same for a straigth answer.
for this i gotta thank wombat because he always helped me the way i liked most (and still does whenever i need help, if it's lua or freebsd).

and i'm not the best scripter around, sedules/wombat/tezlo are much better.

plop
Title:
Post by: NightLitch on 05 August, 2004, 18:01:23
QuoteOriginally posted by plop
and i'm not the best scripter around, sedules/wombat/tezlo are much better.

Who said u where m8  :D hehe

But you must agree with me when I say:

- Plop! You are everywhere ! But! That is good cause I can't live without u pal.  :P

To a point now:

I agree with the copy/paste thing for creating scripts, BUT! I learned that way and then I started to develop my skills in Lua more, Many old forum members surely must remember all my questions everywhere and plz give me an example etc.

BUT, I learn alot from them, My biggest Regards/Thanks goes to: Tezlo, Chiller, Skrollster, Wombat,Phatty & not but least PLOP! They are the ones that have helped me on my way to know Lua as much as I do.

Man this post got huge... Feels like I have poored my heart out, lmao...

Cheers / NL
Title:
Post by: jackthebest on 05 August, 2004, 22:08:08
QuoteOriginally posted by (uk-kingdom)pH?tt?
QuoteOriginally posted by jackthebest
what do you think about gekko?

it good

but v7.2 ban wihtout any reason a large number o user....
Why??  ;(

remove the ranges.dat, it probably has ther ips on bad ip ranges, add ones u dont want :)


ummmmmmmmmmmmmmmmmm......
thx :D :D :D
Title:
Post by: plop on 06 August, 2004, 06:23:57
QuoteOriginally posted by NightLitch But you must agree with me when I say:

- Plop! You are everywhere ! But! That is good cause I can't live without u pal.  :P
i know. lol
there are few operator bot's which don't have my name in the credits.
i like a challange, and you guy's reguarly give me nice once's.
life would be really boring without you guy's.
QuoteOriginally posted by NightLitch To a point now:

I agree with the copy/paste thing for creating scripts, BUT! I learned that way and then I started to develop my skills in Lua more, Many old forum members surely must remember all my questions everywhere and plz give me an example etc.

BUT, I learn alot from them, My biggest Regards/Thanks goes to: Tezlo, Chiller, Skrollster, Wombat,Phatty & not but least PLOP! They are the ones that have helped me on my way to know Lua as much as I do.
yw mate.
you sure learned a lot but still 1 thing you got 2 learn, but no offense you really need 2 wait a bit longer before asking for help.
reguarly when you ask a question in my hub i wait with answering because i know that you can do it.
or i see you talking about it with the other guy's from the hub and that way find the answer 2gether.

QuoteOriginally posted by NightLitch Man this post got huge... Feels like I have poored my heart out, lmao...

Cheers / NL
need a tischue?? lol

plop
Title:
Post by: Herodes on 06 August, 2004, 07:28:16
who has a real 'favourite' apart from those sentimental guys over here ? :)
Title:
Post by: ((UKSN))shad_dow on 06 August, 2004, 10:15:50
mmmmm

nope cant realy say i got  a a fav ,simpley cos all bots/scripts are diffent inculding mine ,

so for if i were to have a fav it would be every single script/bot rolled in to 1 bot ,

as for those sentimental guys over there  ,  what can i say with out em il never have started learning to script :D

so scripters keep it alive :)
Title:
Post by: NightLitch on 06 August, 2004, 11:20:32
QuoteOriginally posted by plop
need a tischue?? lol

Plzzz, Am sitting in a lake now, While you're at it, bring me some fishing gear, some really big ones here, I see Herodes and Shad_dow and w8........ What do I see out there, ohww it was only Typhoon sailing with his Toilet.

QuoteOriginally posted by plop
you sure learned a lot but still 1 thing you got 2 learn, but no offense you really need 2 wait a bit longer before asking for help.
reguarly when you ask a question in my hub i wait with answering because i know that you can do it.
or i see you talking about it with the other guy's from the hub and that way find the answer 2gether.

Well what can I say heh, sometimes I want fast answers so my brain not plop out  :D

Take care all and ploppy each other / NL
Title:
Post by: UwV on 13 August, 2004, 22:32:12
.. my favorite .. well i think maybe this one ..
for what it does was pretty unique .. when it was made still don't see much scripts that actually go online and update  themselfs or part of themselfs.. ..

--Exchange-Converter V.1 written by chill
--Based on an idea from Kotten

 out there somwhere .. and UNCOMPILED  :0) ...
Title:
Post by: _Satan_ on 13 September, 2004, 23:43:09
jumble fever script by rabidwombat
Title:
Post by: bastya_elvtars on 14 September, 2004, 03:10:34
user welcome by rabidwombat rules

the greatest idea i have ever seen