help
 

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

help

Started by antonio, 14 October, 2005, 23:37:38

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

antonio

I try a script for the commandos of the mouse for single user and a script that it sendes is in pvt or in main to time rows from prefixed me... can be had that? thanks




cerco uno script per i comandi del mouse per soli user e uno script  che invia sia in pvt o in main a tempo un file da me prefissato... si pu? avere ci?? grazie

6Marilyn6Manson6

QuoteOriginally posted by antonio
a script that it sendes is in pvt or in main to time rows from prefixed me... can be had that? thanks

Try this:

--- Periodical PM and DATA send TxtFile? requested by antonio
--- Ripped by Herodes
--- optimized by 6Marilyn6Manson6 15 / 10 /2005

botsName = "SeNDeR"		   --- Change this to whatever u want 
TxtFile = "sendfile.txt"   --- be sure to have a file corresponding to this one in the 'scripts' 
thecmd = "!sendfile"	   --- change this to whatever u want ... 

secs = 1000 
mins = 60*secs 
timerinterval = 20*mins	   --- I hope this is clear enough ... 

function Main() 
	frmHub:RegBot(botsName)--- and Register it again ... ( using the string defined by the ' botsName ' value, again ) 
	SetTimer(timerinterval) 
	StartTimer() 
end 

function OnTimer() 
	SendEm()
end 

function ChatArrival( user, data) 
	if user.bOperator then
		data = string.sub(data,1,-2) 
		local s,e,cmd = string.find( data, "%b<>%s+(%S+)" ) 
		if ( cmd == thecmd ) then 
			SendEm()
		end
	end
end 
function SendEm()
	local sText = ReadTextFile(TxtFile) 
	for i, user in frmHub:GetOnlineUsers() do 
		if user.iProfile == -1 then
			user:SendData(botsName, sText)
			user:SendPM(botsName, sText)
		end
	end
end

function ReadTextFile(file) 
	local f=io.open(file, "r");
	if f then local m=f:read("*all");f:close;return m;end;
	return "file isn't there";
end

c ya

antonio

ciao  6Marilyn6Manson6 ti cercavo anche in un'altro sito ma felice di trovarti mi da questo errore dove sbaglio? mi dici la procedura come salvarlo... scusa so negato in merito. grazie.


Syntax C:\Documents and Settings\user\Desktop\ptokax2\scripts\SeNDeR.lua:6: function arguments expected near `='

bastya_elvtars

Copy from between the horiz. lines only! ;)
Everything could have been anything else and it would have just as much meaning.

6Marilyn6Manson6

Copi da quando comincia sta riga:

--- Periodical PM and DATA send TxtFile? requested by antonio

fino all'ultimo

end

ci si becca. ciao

antonio

nada non va .. ecco l'errore.
[22:12] Syntax [string "--- Periodical PM and DATA send TxtFile? requested by antonio
..."]:44: function arguments expected near `;'

6Marilyn6Manson6

QuoteOriginally posted by antonio
nada non va .. ecco l'errore.
[22:12] Syntax [string "--- Periodical PM and DATA send TxtFile? requested by antonio
..."]:44: function arguments expected near `;'

Appena ho un p? di tempo lo vedo credimi sono incasinato, penso domani. Ciao :)

SMF spam blocked by CleanTalk