PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: Sunnis on 08 March, 2005, 17:04:52

Title: mkdir dos prompt
Post by: Sunnis on 08 March, 2005, 17:04:52
Hi!!!
I want a script that do a mapp on a place on the computer when i write !dir in main chat on dc.
it will make a mapp but when i write the command the computer made mapps on my computer but i will have a script that  do a mapp.
if user write the command it gonna do a mapp on there computers not mine.
 
Bot = "Dir"

function main()
frmHub:RegBot(Bot)
end

function DataArrival(curUser,data)
if strsub(data, 1, 1) == "<" then
data=strsub(data,1,strlen(data)-1)
s,e,cmd = strfind(data,"%b<>%s+(%S+)")
if (cmd == "!dir") then
execute("mkdir C:\\Muuu\\Offline")
end
end
end
Title:
Post by: bastya_elvtars on 08 March, 2005, 17:34:41
It's a clientside script then. PtokaX is not a backdoor. :P
Title:
Post by: Sunnis on 10 March, 2005, 14:44:23
QuoteOriginally posted by bastya_elvtars
It's a clientside script then. PtokaX is not a backdoor. :P

ok thanx :) then i know :)