PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: monnie on 05 August, 2004, 16:44:59

Title: Conecting Users
Post by: monnie on 05 August, 2004, 16:44:59
Greetings once again scripters

I wanted a script if it's possible, who can be able to show a welcome msg im main chat at the exact moment he logs in:

EX:

2Admin
2 master OP's
2 op's
2 vip's
2 Reg's
2 Unreg

If you can make this script with the chance to i be able to write what i want to each one and to each class, it would be grate..

EX:

Don't take it personal... :P

if op xxx logs in then show " the user xxx arrived"
if op zzz logs in then show "....."
if vip xxx logs in then show "..."
if vip zzz logs in then show "...."
..reg
..reg
if any other user unreg logs in then show " another user join the hub"

Hope i make my self understandable...

Thanks

                         monnie
 
Title:
Post by: Troubadour on 05 August, 2004, 17:38:44
try Random In-Outro (might be what you want.)

goto the thread for downloading Random In-Outro (http://board.univ-angers.fr/thread.php?threadid=2468&boardid=12&styleid=1&sid=051d84e31ffc1651f269396589bcc845)
Title:
Post by: Troubadour on 06 August, 2004, 00:13:13
Nice 1 Mutor.
I did know that one yet!
Title: Mutor....(read)
Post by: monnie on 06 August, 2004, 17:24:19
Thanks for the code but tell me something:
i make a txt file and place it in scripts folder, but
what do i put in the txt??
see this:

ex:

**monnie -hello monnie, welcome to...
**Mutor -Mutor has join us

I don't understand it; how it knows the message to each one who enters??

Thanks

                  monnie
Title: still waiting
Post by: monnie on 10 August, 2004, 11:14:02
Greetings

I don't know how to write the .txt folder
What do i type??
simple

op x " welcome..."
vip x " welcome...."


???
Help me out please

Thanks

                       monnie
Title:
Post by: Typhoon on 10 August, 2004, 12:41:46
You could also try this , real nice and easy , works not by profile but by the users nickname...


-- Personal user login message script by   [aXs] Wellx   D. 5/9-03
-- Made for insomniac Hubowner at Nattens-?je

UserLoginMessage={}
UserLoginMessage["[DK][WILD]Spirit?"]  = "The Nasty SU "
UserLoginMessage["[DK][WILD]Megaman"]  = "The Powerfull HubOwner "
UserLoginMessage["[DK][WILD]BAMBAM_THE_QUEEN"]  = "THE Queen Of This Hub "
UserLoginMessage["[DK][WILD]Heime"]  = "I Love to Watch Robinson  "
UserLoginMessage["[DK][WILD]Futte?"]  = "The Evil Operator "
UserLoginMessage["[DK][WILD]Nemo?"]  = "The Slim & Ugly "
UserLoginMessage["[DK][WILD]DreCronic"]  = "The Small And Young Operator "
UserLoginMessage["[DK][WILD]Diana"]  = "The Old And Sexy Operator "
UserLoginMessage["[DK][WILD]JEztER"]  = "The NO_OB Operator "

function OpConnected(user)
local User = user.sName
if UserLoginMessage[User] ~= nil then
SendToAll(frmHub:GetHubName(), ""..UserLoginMessage[User].."  "..user.sName.."  has entered the hub.")
end
end

function NewUserConnected(user)
local User = user.sName
if UserLoginMessage[User] ~= nil then
SendToAll(frmHub:GetHubName(), ""..UserLoginMessage[User].."  "..user.sName.."  has entered the hub.")
end
end



Title: Simple as that...
Post by: monnie on 10 August, 2004, 14:13:21
Greetings Scripters

Typhoon...
Thanks a lot, i know this script may be a litle old...but is exactily what i needed...
Is for only a matter of welcome phrase...
Each user tell me what he/she wants to appear when logging in, and now i'll try to make it on disconnecting...
If i can't do that, i'll come here and need help from you!!

Thanks man
Keep helping the newbies...

                                             monnie