Very Lil Stand Alone Scrip
 

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

Very Lil Stand Alone Scrip

Started by D-J Valhala, 24 May, 2004, 10:44:46

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

D-J Valhala

if someone can do it?...
+SFV will show txt/sfv.txt
+renm will show txt/Renaming.txt
10x :D
My PsyIsrael Network
==================
--=[PsyIsrael DC Hub]=--
--=[PsyIsrael Website]=--
==================

plop

QuoteOriginally posted by D-J Valhala
if someone can do it?...
+SFV will show txt/sfv.txt
+renm will show txt/Renaming.txt
10x :D
check my texter series, 1 of those earlyer versions can do what you want.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

D-J Valhala

there is alot of scripts...
can you post it here maybe? :)
My PsyIsrael Network
==================
--=[PsyIsrael DC Hub]=--
--=[PsyIsrael Website]=--
==================

plop

QuoteOriginally posted by D-J Valhala
there is alot of scripts...
can you post it here maybe? :)
check the 1st url in my signature, they are all on my website.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

D-J Valhala

yea i know but in the website there is alot of scripts
please post it here :)
My PsyIsrael Network
==================
--=[PsyIsrael DC Hub]=--
--=[PsyIsrael Website]=--
==================

pHaTTy

QuoteOriginally posted by D-J Valhala
yea i know but in the website there is alot of scripts
please post it here :)
just because he helping dont mean hes ya personal slave, if ya cant be bothered todo something yaself, i dont think we shud bother to help....its simple, webite->nameofscript verrry simple

click link for plops scripts then download the texter bot
Resistance is futile!

D-J Valhala

ok ok in the site there is to meny bot's man... how can i know wich one to take?
no harm only asking for help... :\
My PsyIsrael Network
==================
--=[PsyIsrael DC Hub]=--
--=[PsyIsrael Website]=--
==================

plop

QuoteOriginally posted by D-J Valhala
ok ok in the site there is to meny bot's man... how can i know wich one to take?
no harm only asking for help... :\
the script is for ptokax so click ptokaxbots.
next script is made by me (plop), click on my name in the list.
whoooooowieeeee there are all the texter versions.
you prob have enough on version 1.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

D-J Valhala

#8
ok i fopund it thanks alot :)
but the script dont work
-- texter bot by plop
-- modified 2 show only 6 files,
-- thx 2 chilla for the faster routine for opening the files
-- shows text files from a folder named text.


Bot = "-=<[LsD_-_BoT]>=-"

FDFolder = "txt"

cmd1 = "+sfv"
file1 = "sfv.txt"

cmd2 = "+renm"
file2 = "Renaming.txt"

cmd3 = "+news"
file3 = "news.txt"


function Main()
   frmHub:RegBot(Bot)
end

function DataArrival(user, data)
   data=strsub(data,1,strlen(data)-1) 
   if( strsub(data, 1, 1) == "<" ) then
      s,e,cmd = strfind(data,"%b<>%s+(%S+)") 
      if (cmd == cmd2) then
         showtext(user, file2)
         return 1
      elseif cmd == cmd1  then
         showtext(user, file1)
         return 1
      elseif cmd == cmd3 then
         showtext(user, file3)
         return 1
      end
   elseif(strsub(data, 1, 4) == "$To:") then
      s,e,cmd = strfind(data,"$To:%s+%S+%s+From:%s+%S+%s+$%b<>%s+(%S+)")
      if cmd == cmd2 then
         showtext(user, file2)
         return 1
      elseif cmd == cmd1 then
         showtext(user, file1)
         return 1
      elseif cmd == cmd3 then
         showtext(user, file3)
         return 1
      end
   end
end

function showtext(user, file)
local handle = openfile(FDFolder.."/"..file..".txt", "r")
local contents = gsub(read(handle, "*a"),strchar(10), "\r\n")
closefile (handle)
user:SendPM(Bot, "\r\n"..contents.."\r\n|")
end

function showtextmain(user, file)
local handle = openfile(FDFolder.."/"..file..".txt", "r")
local contents = gsub(read(handle, "*a"),strchar(10), "\r\n")
closefile (handle)
SendToAll(Bot, "\r\n"..contents.."\r\n|")
end

this is what i get...

Syntax Error: bad argument #1 to `read' (string expected, got nil)
Syntax Error: bad argument #1 to `read' (string expected, got nil)
Syntax Error: bad argument #1 to `read' (string expected, got nil)
Syntax Error: bad argument #1 to `read' (string expected, got nil)
Syntax Error: bad argument #1 to `read' (string expected, got nil)
My PsyIsrael Network
==================
--=[PsyIsrael DC Hub]=--
--=[PsyIsrael Website]=--
==================

plop

did you make a folder called "txt" and placed the files in there???
and offcourse change the script so it matches your filenames.
i'm 200% sure that this script works.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

bastya_elvtars

texter bot works amazing, add my 200 per cent as well... :)
Everything could have been anything else and it would have just as much meaning.

D-J Valhala

yes i did...
and it's not working...
My PsyIsrael Network
==================
--=[PsyIsrael DC Hub]=--
--=[PsyIsrael Website]=--
==================

plop

QuoteOriginally posted by D-J Valhala
yes i did...
and it's not working...
just notiched that the script you posted is a modded version.
try texter version 2 from my site.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

SMF spam blocked by CleanTalk