help with the script artbot
 

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

help with the script artbot

Started by Re@SoN, 26 January, 2005, 18:26:04

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Re@SoN

hello!

cold anyone help me  put this script showing the txt in pm instead of showing in the main chat when we do the comand??
here is the script:

----------------------------------------------------------------------
--Artbot 1.0 made by: [NL]MrBuitenhuizen
--Artbot has most of the scripting lines from > :
-->ShowInfo v1.0 by latinmusic == poweroperator 18/04/2003
-->Based on TrickerBot 2 by ?Ptaczek?
-->Based on a few lines of DirtyBot made by Dirty Finger)
--nov 2003 = start empty rule idea by Plop
--thnx to the people who made the Art txt files
--you need to have the directory "art" in your txt directory
--have fun with it

BotName = "? M?X?H?Lp ?"
Files = {
["!lol"] = "txt/art/lol.txt",
["!codecs"] = "txt/art/codecs.txt",
["!programas"]= "txt/art/programas.txt",
["!cracks"]= "txt/art/cracks.txt",
["!uteis"]= "txt/art/uteis.txt",
["!legendas"]= "txt/art/legendas.txt",
["!speed"]= "txt/art/speed-test.txt",

}
function Main()
end
function DataArrival(user, data)
if( strsub(data, 1, 1) == "<" ) then
s,e,msg = strfind(data, "%b<> ([ -z]*)")
for key, value in Files do
if( strfind( strlower(msg), key) ) then
txtToShow, x = gsub(value, "%b[]", user.sName)
SendToAll( data )
Show(user, TheFile)
return 1
end
end
end
end
function Show(user, TheFile)
readfrom(txtToShow, "r")
local message = "\r\n"
while 1 do
local line = read()
if line == nil then break
else
message = message..line.."\r\n"
end
end
SendToAll( BotName, message ) -- send bot's message
readfrom()
return 1;
end
-----------------------------------------------------------------------

greatings, Re@SoN

[UK]Madman

Change

SendToAll( BotName, message ) -- send bot's message

for

user:SendPm(BotName, message)

[UK]Madman

Quite right mutor, forgot about that :o)

Re@SoN

tks Mutor!!! :D

i already tested and it works fine now the txt apears em pm...much better now..heh


greatings, Re@SoN

SMF spam blocked by CleanTalk