Intro Lua
 

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

Intro Lua

Started by Annie, 17 March, 2008, 17:13:03

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Annie

Please can i somebody convert this script for me  hub im using is Ptokax 0.4.0.0  thanks  :D

-- InlogScript created by [NL]Foxy 
-- added Receiver and Receiver2 to seperate totalk counter from log 
-- Updated Total reset per day  
 
BotName = "?Intro?" 
Receiver = "OP1" 
Receiver2 = "OP2"
Receiver3 = "OP3"
 
function Main()  
	frmHub:RegBot(BotName)  
end 
 
CheckProfiles = { --//Set the profiles you want to check to 1  
	[-1] = 1,	-- Users (Unregged)  
	[0] = 0,	-- Masters  
	[1] = 0,	-- Operators  
	[2] = 0,	-- VIP  
	[3] = 1,	-- Reg  
	[4] = 0,	-- Moderator  
	[5] = 0,	-- NetFounder  
}  
 
total = 0 
 
lastday = os.date("%a") 
 
function NewUserConnected(user, data)  
	if CheckProfiles[user.iProfile] == 1 then 
		total = total + 1 
		local shares = string.format( "%.2f",user.iShareSize/(1024*1024*1024)) 
		local disp = total.." IP: "..user.sIP.."\t\tNick: "..user.sName.. 
			"\t\tShare: "..shares.." GiB\t\tTag: "..user.sTag.. 
			"\t\tProfile: "..user.iProfile.."." 
		SendPmToNick(Receiver,BotName,disp) 
		SendPmToNick(Receiver2,BotName,disp)
                                           SendPmToNick(Receiver3,BotName,disp) 
		disp = "" 
		local now = os.date("%a") 
			if now ~= lastday then 
				disp = "total on "..lastday.." was "..total.." users." 
				SendPmToNick(Receiver2,BotName,disp) 
				SendPmToNick(Receiver,BotName,disp)
				total = 0 
				lastday = now 
			end 
	end 
end


I changed the names in it  because you dont want to see those lol so i put OP1 OP2 and OP3
thank you :)

Annie

thank you very much :D

SMF spam blocked by CleanTalk