Basic user info
 

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

Basic user info

Started by yoonohoo, 16 June, 2005, 13:51:39

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

yoonohoo

Can some1 make this into a script?
Must send info (main) on connection.
ConnectInfo = 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\r\n"
		info = info.."\t"..sPace.."O teu nick: "..(user.sName  or "n/a").."\r\n"
		info = info.."\t"..sPace.."O teu IP: "..(user.sIP or "n/a").."\r\n"
		info = info.."\t"..sPace.."O teu perfil: "..tProfileName(user.iProfile).."\r\n"
		info = info.."\t"..sPace.."Est?s ligado em modo: "..(tMode[user.sMode] or "n/a").."\r\n"
		info = info.."\t"..sPace.."Est?s ligado a "..(user.iHubs or "n/a").." hubs com "..(user.iSlots or "n/a").." slots abertas".."\r\n"
		info = info.."\t"..sPace.."Est?s a partilhar: "..ConvShare(user.iShareSize).."\r\n\r\n"
		info = info.."\t-=-=-=-=-=-=-= Welcome to "..hName.." =-=-=-=-=-=-=-\r\n"
		user:SendData(tSettings.sBot, info)
	end
end


Thanks

It might be simple for you but rocket science for me...

Dessamator

change this
ConnectInfo = function(user)

to this :

NewUserConnected = function(user)
Ignorance is Bliss.

yoonohoo

Too good to be true!
It doesn't do anything...

It might be simple for you but rocket science for me...

jiten

#3
Maybe this:
NewUserConnected = function(user)
	if user.bHasTag then
		if user.sMode == "A" then tmp = "Activo" else tmp = "Passivo" end
		local Share = string.format("%0.2f",tonumber(user.iShareSize)/(1024*1024*1024)).." GB"
		local sPace = string.char(32)..string.char(32)..string.char(32)..string.char(32)
		local info = "\r\n\r\n\t-=-=-=-=-=-=-= Welcome to "..frmHub:GetHubName().." =-=-=-=-=-=-=-\r\n\r\n"
		info = info.."\t"..sPace.."O teu nick: "..(user.sName  or "n/a").."\r\n"
		info = info.."\t"..sPace.."O teu IP: "..(user.sIP or "n/a").."\r\n"
		info = info.."\t"..sPace.."O teu perfil: "..(GetProfileName(user.iProfile) or "Not Registered").."\r\n"
		info = info.."\t"..sPace.."Est?s ligado em modo: "..(tmp or "n/a").."\r\n"
		info = info.."\t"..sPace.."Est?s ligado a "..(user.iHubs or "n/a").." hubs com "..(user.iSlots or "n/a").." slots abertas".."\r\n"
		info = info.."\t"..sPace.."Est?s a partilhar: "..(Share or "n/a").."\r\n\r\n"
		info = info.."\t-=-=-=-=-=-=-= Welcome to "..frmHub:GetHubName().." =-=-=-=-=-=-=-\r\n"
		user:SendData(frmHub:GetHubBotName(), info)
	end
end

OpConnected = NewUserConnected

yoonohoo

eheheh :D
Jiten came to the rescue and done it! u da man...
Thanks jiten and Dessamator for the reply

It might be simple for you but rocket science for me...

Dessamator

Ignorance is Bliss.

SMF spam blocked by CleanTalk