Random Intro/Outro Script -> PLS help
 

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

Random Intro/Outro Script -> PLS help

Started by Penguin, 06 June, 2005, 16:57:02

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Penguin

Hi ppl,

I have this script -> Random Intro/Outro Scripts
-----------------------------------------------------------
--Random Intro/Outro Script
-----------------------------------------------------------

Bot = frmHub:GetHubSecAliasName() 

LogIn = {
		
"[USERNAME] Comes in crawling On Their Hands And Knees.",

"[USERNAME] Enters With A Corayzie Look In Their Eyes",

"Sir [USERNAME] Of My Lucid Dreams Has Arrived.",

}

--// Log out

LogOut = {

"[USERNAME] Runs In Raving On Like A Maniac.",

"[USERNAME] Has Been Droped Off By Aliens.",

"[USERNAME] Appears Out Of Nowhere And Begins Speaking In Tongues.",

}

--// Login VIP users

function NewUserConnected(curUser)

	if (curUser.iProfile == 2) then

		if LogIn[curUser.sName] then

		local msg = string.gsub(LogIn[curUser.sName], "%[nick%]", curUser.sName) 

			SendToAll(Bot,msg)

		--//Others VIP users

		elseif (curUser.iProfile == 2) then

		local Profile = GetProfileName(curUser.iProfile)

			SendToAll(Bot, "" ..Profile.. " user " ..curUser.sName.. " Welcome ;)") 

		end

	end

end

--// Log out VIP users

function UserDisconnected(curUser)

	if (curUser.iProfile == 2) then

		if LogOut[curUser.sName] then

		local msg = string.gsub(LogOut[curUser.sName], "%[nick%]", curUser.sName) 

			SendToAll(Bot,msg)

		--// Others VIP users

		elseif (curUser.iProfile == 2) then

		local Profile = GetProfileName(curUser.iProfile)

			SendToAll(Bot, "" ..Profile.. " user" ..curUser.sName.. " Log out! :)") 

		end

	end

end

--// OPs login

function OpConnected(curUser)

	if LogIn[curUser.sName] then

	local msg = string.gsub(LogIn[curUser.sName], "%[nick%]", curUser.sName) 

		SendToAll(Bot,msg)

	--// Others OPs login

	elseif curUser.iProfile == 1 then

		SendToAll(Bot, "OPerator " ..curUser.sName.. " Hello!")

	else

	local Profile = GetProfileName(curUser.iProfile)

		SendToAll(Bot, ""..Profile.." " ..curUser.sName.. " Hello!") 

	end

end

--// Odhlaseni OPu

function OpDisconnected(curUser)

	if LogOut[curUser.sName] then

	local msg = string.gsub(LogOut[curUser.sName], "%[nick%]", curUser.sName) 

		SendToAll(Bot, msg)

	--// Pokud neni v tabule LogOut

	elseif curUser.iProfile == 1 then

		SendToAll(Bot, "OPerator" ..curUser.sName.. " Has Left The Hub :-/")

	else

	local Profile = GetProfileName(curUser.iProfile)

		SendToAll(Bot, ""..Profile.. " "..curUser.sName.. " Has Left The Hub:-/")

	end

end

But the login messages are sending before MOTD!
Can you somebody help me with FIX login messages  sending before MOTD?

  Thank you in advance!
     Penguin

Dessamator

no need for that, there are a "gazillion" scripts that do all that, search my boy search !
Ignorance is Bliss.

H?LL?L?L??nG?L

#2
Ive searched and searched and even edited but i cant get a stand alone intro/outro script to show my own everyone can see them all but not their own. I tried 6 even in the funscript they dont show Please help or tell me wot im doing wrong. This is for the new ptokax :(  ?(

thx

mateci

QuoteOriginally posted by Penguin

But the login messages are sending before MOTD!
Can you somebody help me with FIX login messages  sending before MOTD?


You must use release 0.3.3.2 or above. Because;

from changelog.txt


--------------------------------0.3.3.2 31.Jul.2005----------------------------
Fixed: Data sent to user from NewUserConnected/OpConnected now PtokaX send after MOTD.

i think it s the your problem.

H?LL?L?L??nG?L

#4
Thank you for the quick reply Mutor  ;)  It works Perfectly  ;)  can i have an example on how to add more login/logout messages to this script :P would be very grateful thank u  :P  :]
thank u too for ur reply mateci :))

H?LL?L?L??nG?L

i already tried it, but as i said no one can see their own intros and i dont need custom intros, i prefer the old random ones i actually like the login one u just did :]   :]

H?LL?L?L??nG?L

I love you  :P  :P  :P  :P  :P
Thank you so much for the help and keep doing the things u do i wish id asked you about this a few weeks ago wouldve saved me a lot of stress :]  :]

thx
xxxxxxxxx

Dr-Pepper

I have a small request for this script: Login Greetings 1.2 LUA 5

Can it be done that it uses a bot's nickname, just like:

The Pope DA-Pepper entered the shop. The ruler of the shop returned to chat you down, and pep you up again

Instead of

[ THE Pope Login ] The Pope DA-Pepper entered the shop. The ruler of the shop returned to chat you down, and pep you up again

That would make my second dreamscript :P
Cheers...  Dr-Pepper

bastya_elvtars

--Login Greetings 1.1 LUA 5
--
--by Mutor  9/5/05
--
-- bot name added by bastya_elvtars 9/15/05
--
-- Sends login/logout message per profile
--
--User Settings----------------------------------------------------------------------------------------------------------------
--
--
--Set your profiles here.
--[profile_idx] = {Greeting enabled [0=no 1=yes], "Custom Profile Name","Login Message","Logout Message"}

BotName="GreEtZbOt"

ConnProfiles = {
[-1] = {1,"Unregistered user","logged in, glad you could join us.","has left the Hub, See you Soon."},
[0] = {1,"Master","Has entered. To your knees peon!","struts out the building, toilet paper trailing from shoe..."},
[1] = {1,"Operator","has been seen in the vicinity and is considered armed and dangerous!","has left, before the authorities recognize the profile"},
[2] = {1,"Vip","is here to kick ass and take names...","has left the hub, and per the court order, checks into rehab."},
[3] = {1,"Registered user","is here. Hey Now!","has left, before the authorities recognize the profile."},
[4] = {1,"Moderator","has returned to the hub.","vanished, ...like a thief in the night!"},
[5] = {1,"NetFounder","when did you get out?.","has left, it's all part of the conspiracy!"},
}

function NewUserConnected(user)
	if ConnProfiles[user.iProfile] and ConnProfiles[user.iProfile][1] == 1 then
		SendToAll(BotName,"The "..ConnProfiles[user.iProfile][2].." "..user.sName.." "..ConnProfiles[user.iProfile][3]) -- Send to all
		user:SendData(BotName,"The "..ConnProfiles[user.iProfile][2].." "..user.sName.." "..ConnProfiles[user.iProfile][3])
	end
end

OpConnected = NewUserConnected

function UserDisconnected(user, data)
	if ConnProfiles[user.iProfile] and ConnProfiles[user.iProfile][1] == 1 then
		SendToAll(BotName,"The "..ConnProfiles[user.iProfile][2].." "..user.sName.." "..ConnProfiles[user.iProfile][4]) -- Send to all
	end
end

OpDisconnected = UserDisconnected
Everything could have been anything else and it would have just as much meaning.

Dr-Pepper

Cheers...  Dr-Pepper

SMF spam blocked by CleanTalk