I need a simpel script that shows the Hub rules in the main chat window then a user connects. I need to write the rules in a text file, so they have to be shown from there...
Thx for your time...
Well I'v tried:
botname = "OP_Rules"
file = "rules.txt"
function NewUserConnected(user)
readfrom(file)
local message = ""
while 1 do
local line = read()
if (line == nil) then break else
message = message..line.."\r\n"
end
end
user:SendPM(botname,message)
end
But when the message apears it saids: "Private message from OP_Rules: "... Is it posible to remove the first part, so it only saids: ""...?
why u want 2 to send them 2 a user when u got op rules written as bot name. lol :D
botname = "OP_Rules"
file = "rules.txt"
function NewUserConnected(user)
readfrom(file)
local message = ""
while 1 do
local line = read()
if (line == nil) then break else
message = message..line.."\r\n"
end
end
user:SendData(botname,message)
end
try that.
// Pacman
--> raz; all my scripts has "OP_", in front...
--> Pacman; it dosn't work... And I'v found out that the other script, dosn't work at all... damn...
Sry Pacman, it was because I was logged in as an OP... all thing is fine, thx for the help...