is there ...
 

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

is there ...

Started by Daros, 11 May, 2004, 12:26:26

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Daros

is in lua function called "delay" which parameters are amount of time in seconds ot other time format

for examle delay(4) it waits 4 seconds betwen next post or something?

plop

use a timer.
set it to 4 seconds and continue where you left.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

Daros

so there goes my second question , do i have place the timmer in dcpp listener or just make some function which will be called every time , timer gives bnumber ( ex 4) , no matter if someone send something on chat, someone send myinfo or someone search something on the hub?;)

Daros

and what for is it to me? hmm i want to give the bot thing like searching thorught hubs somme files which szhould be in share , but i need timmer to it else it sends something about 20 searches at one time , this is my problem;)

plop

there is this.
function OnTimer()
	-- Called every second.
end
which you can use a counter 2 slow down the searching, and  handle 1 search @ a time.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

Daros

and i dont have to call this function? it runs every second?

plop

QuoteOriginally posted by Daros
and i dont have to call this function? it runs every second?
indeed, it's called every sec.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

SMF spam blocked by CleanTalk