can u make a welcoming msg
 

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

can u make a welcoming msg

Started by raz, 22 October, 2003, 17:53:17

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

raz

hi, can some1 make me a welcome msg for ops and users when they enter the hub. thanks

pHaTTy

sure easy ;)

Bot = "Keiko"

function NewUserConnected(user)
SendToAll(Bot,"Welcome our new user "..user.sName..", good to have you")
end

function OpConnected(user)
SendToAll(Bot,"Our Op "..user.sName..", has entered the hub")
end

thers a simple one ;)

-phatty
Resistance is futile!

raz

thanks. but i need 1 which gives it in pm not on main.

pHaTTy

Bot = "Keiko"

function NewUserConnected(user)
user:SendPM(Bot,"Welcome  "..user.sName..", good to have you")
end

function OpConnected(user)
user:SendPM(Bot,"Hey "..user.sName..", welcome back at the hub")
end

-phatty
Resistance is futile!

Tuben

Try this not tested ..

Make a txt .. whit the name, "msg.txt".




sBot = "-Msg-"

Message = "msg.txt"



function OpConnected(curUser)
Msg(curUser)
end
	function NewUserConnected(curUser)
	 Msg(curUser)
	end


	function Msg(curUser)
		readfrom(Message)
		local message = ""
		while 1 do
		local line = read()
		if (line == nil) then  break  else	
		message = message..line.."\r\n"
		end
		end
		curUser:SendPM(sBot,message)
		end
-Dark-Mind-[ DOWNLOAD ]

raz

phatty ur script doesn't work in pm and neither does ur tuban.

pHaTTy

Bot = "Keiko"

function Main()
frmHub:RegBot(Bot)
end

function NewUserConnected(user)
user:SendPM(Bot,"Welcome  "..user.sName..", good to have you")
end

function OpConnected(user)
user:SendPM(Bot,"Hey "..user.sName..", welcome back at the hub")
end

that will work for sure
Resistance is futile!

servaks

--Litle edit by Shhipis

botname = "Keiko"

function Main()
frmHub:RegBot(botname)
end

function NewUserConnected(user)
user:SendPM(botname,"Welcome  "..user.sName..", good to have you")
end

function OpConnected(user)
user:SendPM(botname,"Hey "..user.sName..", welcome back at the hub")
end
My hub is back! (yeeeeeey)

hub.servaks.com


pHaTTy

Resistance is futile!

servaks

Damn..
Im too sow  :rolleyes:
My hub is back! (yeeeeeey)

hub.servaks.com


pHaTTy

and why change to botname bot is smaller text, the less text the better, less k, so when you write a full script it has less k in size with all the text shotened down ;)
Resistance is futile!

servaks

Yep...
Your right...
Btw..
The bot you help me out with..
It allready ahve a version 1.6.1  8) lol
I named it "Hub-Seciurity Bot"

/shipis
My hub is back! (yeeeeeey)

hub.servaks.com


pHaTTy

hmmm yep i wud think you have added purs name in there too, as he was first to help out if i remember correctly ;)
Resistance is futile!

Tuben

I think my works perfect not my fault ;))))))))))))
-Dark-Mind-[ DOWNLOAD ]

raz

tuben ur 1 never sent a welcoming msg at start in pm he showed it on main. thanks phatty ur second 1 works just wat i needed. thanks

pHaTTy

np m8, a pleasure :o)
Resistance is futile!

SMF spam blocked by CleanTalk