Hi again!
I need script :]
A welcome message with private message!
When i enter the hub, ive got a PM with some information!
Thx :)
QuoteOriginally posted by anubis_say
Hi again!
I need script :]
A welcome message with private message!
When i enter the hub, ive got a PM with some information!
Thx :)
sorry for the short answer but i lost count on the amount of scripts like that witch are posted here on the forum.
a simple search with the string "welcome" should @ least return 10 scripts.
if you don't find the script witch matches your wishes, then post the 1 witch comes closest here and state your requests on what you want 2 have changed.
plop
function NewUserConnected(user)
readfrom("pmmsg.txt")
while 1 do
local line = read()
if line == nil then break end
user:SendPM(Bot,line)
end
readfrom()
end
pmmsg.txt in the script folder
QuoteOriginally posted by kepp
function NewUserConnected(user)
readfrom("pmmsg.txt")
while 1 do
local line = read()
if line == nil then break end
user:SendPM(Bot,line)
end
readfrom()
end
pmmsg.txt in the script folder
Thx for the fast reply
Not working :(
Sorry, Forgot something
Bot = "Your Bot Name"
function NewUserConnected(user)
readfrom("pmmsg.txt")
while 1 do
local line = read()
if line == nil then break end
user:SendPM(Bot,line)
end
readfrom()
end
hmmm
USer ok...
Maybe when op entering the hub?...
i dont get the massage, but users get!
pls, i want --> not only users, ops and vips as well!
sry for bad english!
thx
Syntax error: attempt to perform arithmetic on a nil value
stack traceback:
1: function `OpConnected' at line 34 [file `C:\SaveZ\ptokax\scripts\pmop.lua']
?
Syntax error: attempt to perform arithmetic on a nil value
stack traceback:
1: function `OpConnected' at line 34 [file `C:\SaveZ\ptokax\scripts\pmop.lua']
:((
User ok, but op dont get this message!
and Syntax error: attempt to perform arithmetic on a nil value
stack traceback:
1: function `OpConnected' at line 34 [file `C:\SaveZ\ptokax\scripts\pmop.lua']
Bot = "Test"
function NewUserConnected(user)
readfrom("pmmsg.txt")
while 1 do
local line = read()
if line == nil then break end
user:SendPM(Bot,line)
end
readfrom()
end
function OpConnected(user)
NewUserConnected(user)
end
if you want PM in a window the bot has to be regged
then this is what you want
Bot = "Test"
function Main()
frmHub:RegBot(Bot)
end
function NewUserConnected(user)
readfrom("pmmsg.txt")
while 1 do
local line = read()
if line == nil then break end
user:SendPM(Bot,line)
end
readfrom()
end
function OpConnected(user)
NewUserConnected(user)
end
Not good!
But
Bot = "Test"
function Main()
frmHub:RegBot(Bot)
end
function NewUserConnected(user)
readfrom("pmmsg.txt")
while 1 do
local line = read()
if line == nil then break end
user:SendPM(Bot,line)
end
readfrom()
end
function OpConnected(user)
NewUserConnected(user)
end
THX :)