PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: raz on 25 October, 2003, 01:27:16

Title: a script
Post by: raz on 25 October, 2003, 01:27:16
is there a script which does !boom, !cannabis etc.. onits own. not in a not. if some1 has it can dey post it. thanks :D
Title:
Post by: BlazeXxX on 25 October, 2003, 02:23:47
There was a script called ASCII reader or something..
Title:
Post by: Jabo on 10 November, 2003, 02:48:16
I would like a script like that could do ASCII also.....I never could figure that ASCII Reader out....lol
Title:
Post by: bastsweden on 10 November, 2003, 03:06:45
-- Looks for txt files in  scripts/text

function DataArrival(user, data)
if strsub(data, 1, 1) == "<" then
local s, e, file = strfind(data, "^%b<> %+(%S+)%|$")
if s then return readfile(user, file) end
end
end

function readfile(user, file)
local f = openfile("text/"..file, "r")
if not f then return end

user:SendData(">> "..file.."\r\n"..read(f, "*a"))
closefile(f) return 1
end

Whu dont u use something like this. and then just put the txt files in the folder /files and then u have all of thise command as u wished :-)
Title:
Post by: pHaTTy on 10 November, 2003, 12:08:00
check out the link ;)

click here (http://board.univ-angers.fr/thread.php?threadid=46&boardid=12&styleid=1&sid=4b7748f53b03fd8283dde54bdf3f909e)

-phatz