--Version 1.0 by skippy
sBot = frmHub:GetHubBotName()
botDesc = ""
botSpeed = ""
botEmail = ""
botShare = 0
startchars = "." -- shows before
endchrs = "(last_User)" -- shows after
first = 0
function NewUserConnected(user)
if first < 1 then
nick = user.sName
first = 1
frmHub:RegBot(startchars..nick..endchrs)
else
frmHub:UnregBot(startchars..nick..endchrs)
nick = user.sName
frmHub:RegBot(startchars..nick..endchrs)
end
end
OpConnected=NewUserConnected
this script shows in the userlist the last connected user
at the first place
the german version of the Script can be found on
http://skippy.dyndns.ws/forum
How to use this? As far as I see, there is no command to use :)
It?s no command needed it shows the last connected user in the Userlist at the right site of the client
example
-example user(last_user)
next user
next user
.
.
.
have you an idea for a command ?
Here is a other version of the script it shows the last user
in the topic of the client
--Shows Last connected User in Topic
--Make by Skippy
--Version 1.0
addtxt = "(last_User_is:)" -- shows for the Username
nick = "-----" -- this set the variable nick at a standart value
----------------------------------------------------------------------------------------
function GetBanner()
hubname=frmHub:GetHubName()
topic=frmHub:GetHubTopic()
if topic then
banner=hubname.." "..addtxt.." "..nick.." - "..topic
else
banner=hubname.." "..addtxt..""..nick
end
end
function NewUserConnected(user)
nick = user.sName
GetBanner()
SendToAll("$HubName "..banner)
end
OpConnected=NewUserConnected
Maybe some funny messages for 1000th, 2000th.... connected user since hub start and for 1000th, 2000th online user at hub at that moment. Just some ideas...
--Version 1.2 von Skippy
--added funktion to show custom messages then x=people in the Hub at the moment
--Version 1.1 von Skippy
--added funktion to show custom messages then x=people at the Hub since scripts started
--Version 1.0 von Skippy
sBot = frmHub:GetHubBotName()
botDesc = ""
botSpeed = ""
botEmail = ""
botShare = 0
startchars = "." -- shows before
endchrs = "(letzter_User)" -- shows after
first = 0
times = 0 --timer how many user are connected since hub started
timer = 0 --timer how many user at the moment in this hub
message = {
[1] = "you are skippyliceus you are the first people in this Hub",
[2] = "haha you are the second Hubbie here not the first, your to late",
[5] = "you are the 5. Lemming in this Hub",
}
messagr = {
[1] = "you are alone at this hub",
[2] = "haha you are the second Hubbie here not the first, your to late",
[3] = "you are the 3. people at the moment",
}
----------------------------------------------------------------------
function NewUserConnected(user)
times = times + 1
if message[times] then
SendToAll(user.sName.. " " ..message[times] )
end
timer = timer + 1
if messagr[timer] then
SendToAll(user.sName.. " " ..messagr[timer] )
end
if first < 1 then
nick = user.sName
first = 1
frmHub:RegBot(startchars..nick..endchrs)
else
frmHub:UnregBot(startchars..nick..endchrs)
nick = user.sName
frmHub:RegBot(startchars..nick..endchrs)
end
end
function UserDisconnected(user)
if timer > 0 then
timer = timer -1
end
end
OpConnected=NewUserConnected
OpDisconnected=UserDisconnected
the german Version of the Script can found on
http://skippy.dyndns.ws/forum too.