Welcome Message PM
 

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

Welcome Message PM

Started by anubis_say, 09 January, 2004, 21:35:46

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

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 :)

plop

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
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

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
Guarding    

anubis_say

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

anubis_say


kepp

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
Guarding    

anubis_say

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

anubis_say

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']

?

anubis_say

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']

:((

anubis_say

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']

kepp

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
Guarding    

anubis_say

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 :)

SMF spam blocked by CleanTalk