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
no need for that, there are a "gazillion" scripts that do all that, search my boy search !
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
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.
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 :))
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 :] :]
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
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
--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
Thank you :D