PM on connect
 

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

PM on connect

Started by virusel2013, 14 August, 2007, 21:13:59

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

virusel2013

hi.
help me please with script
--[[			PM to user on connection by Mozzilla™
				Requested by ScAnDaL
			
				Will send a PM to users when they connect to the hub
]]

Cfg = {
-- Mesage to send ["" = none/use extenal file]
Message = "",
-- Path/filename of login message file ["" = none/use scripted Message]
File = "Login.txt",
}
message=[[

What you write appears for the \o/ user, with "quotes" and \\back/forward slashes//.
]]

who = frmHub:GetHubBotName()
what = frmHub:GetHubName()

function NewUserConnected(user)
	user:SendPM(who, "")
end

OpConnected=NewUserConnected


the script is working great but when i want to put a message from a file is not working. please what i must to change to this script to work.

the path where ptokax folder is look like that
F:\kituri\kituri\ptokas

virusel2013

Thx Mutor the script is working great

Giorgos

Could someone please update this script so it works on the new API and maybe add a profile table and a timer for how often it will be sent? Or maybe point me in the right direction towards a script that will do this. I am trying to get the unregistered users in one of my hubs to register and see some info on the hub/network when they connect and every third hour or so... Thanks in advance  :D

Giorgos

That seems like a very nice script but I don't think I will be able to modify it to fit my needs... See I only want a scheduled message for unregged users. The message I use has some info on the network and encourages users to register themselves to enjoy some of the perks of being a registered user and to check out the other hubs in the network. I tried editing the lua to show my scheduled message but every time I try to modify it, something goes wrong =p


How should I modify:

local Msg = user.sNick.. " you are required to register "..
		"in this hub. PM an operator for registration. "


to be able to use my own message?

Giorgos

Wohoo! Seems to be working great. Thanks a lot Mutor  :D

SMF spam blocked by CleanTalk