PtokaX forum

Archive => Archived 4.0 boards => Help with Lua 4 scripts => Topic started by: Caduceus on 15 March, 2005, 23:16:29

Title: help with userclientinfo.lua
Post by: Caduceus on 15 March, 2005, 23:16:29
Hi,

I'm using the new Robo10.1a and Ptokax 0.3.3.0 b16.06 and was trying to modify the userclientinfo.lua to replace the MOTD completely.

However, the user/client-info won't show for simple users, but does show for anyone else (Reg and up).

How do i change the script (or anything else) so that unregged users too (that means everybody) see the info when they login?

Thanx in advance.

(below is original script userclientinfo.lua)
QuoteConnectInfo = function(user)
   local sTag = user.bHasTag
   if sTag then
      local hName = frmHub:GetHubName()
      local sPace = string.char(32)..string.char(32)..string.char(32)..string.char(32)
      local info = "\r\n\r\n\t?????????? Welcome to "..hName.." ??????????\r\n"
      info = info.."\t"..sPace.."Your name is: "..(user.sName  or "n/a").."\r\n"
      info = info.."\t"..sPace.."Your profile is: "..tProfileName(user).."\r\n"
      info = info.."\t"..sPace.."Your current ip: "..(user.sIP or "n/a").."\r\n"
      info = info.."\t"..sPace.."Your using client: "..(user.sClient or "n/a").."\r\n"
      info = info.."\t"..sPace.."Your version is: "..(user.sClientVersion or "n/a").."\r\n"
      info = info.."\t"..sPace.."Your current mode is: "..(tMode[user.sMode] or "n/a").."\r\n"
      info = info.."\t"..sPace.."Your total hubs are: "..(user.iHubs or "n/a").."\r\n"
      info = info.."\t"..sPace.."Your open slots are: "..(user.iSlots or "n/a").."\r\n"
      info = info.."\t"..sPace.."Your sharesize is: "..ConvShare(user.iShareSize).."\r\n"
      info = info.."\t"..sPace.."Your description is: "..(user.sDescription or "n/a").."\r\n"
      info = info.."\t"..sPace.."Your connection is: "..(user.sConnection or "n/a").."\r\n"
      info = info.."\t"..sPace.."Your email is: "..(user.sEmail or "n/a").."\r\n"
      info = info.."\t?????????? Welcome to "..hName.." ??????????\r\n"
      user:SendData(tSettings.sBot, info)
   end
   
end
Title:
Post by: Caduceus on 17 March, 2005, 11:31:41
I just read that Optimus disabled the userclientinfo-msg for simple users to save bandwidth.

Does anyone knows an alternative log-on script that can replace the MOTD for ALL users?

tnx