trigger every specified second of a minute (HELP)

All about the macro plugin can be found in this forum. This forum is intended for the macro plugin only.

Moderator: Moderators

zexel0014
Human
Human
Posts: 43
Joined: 27 Oct 2011, 20:44
Noob?: No

trigger every specified second of a minute (HELP)

#1 Post by zexel0014 »

can anybody help me here..
here's the situation..
i want my bots.. to do same thing every 30 seconds of every minute which must be synchronized with my CPU time.. so what i have is this

Code: Select all

automacro exacttime {
	localtime == 14:50:30       <------------must be null:null:30
	exclusive 1
	call {
		do something,whatever,ETC
	}
}
my problem is.. how can i make the hour and minute value to become null so it will trigger every 14:50:30 / 14:51:30 / 14:52:30 / and so on....
zexel0014
Human
Human
Posts: 43
Joined: 27 Oct 2011, 20:44
Noob?: No

Re: trigger every specified second of a minute (HELP)

#2 Post by zexel0014 »

no need for help anymore i got it ^_^

Code: Select all

automacro exacttime {
	location prontera
	exclusive 1
	call {
		log $.second
		$x = $.second
		if ($x != 30) goto ganto
		
		do something, womewhat, everything, etc
		:ganto
		stop
	}
}
Dark Airnel
Been there done that!
Been there done that!
Posts: 133
Joined: 09 Oct 2009, 01:43
Noob?: No

Re: trigger every specified second of a minute (HELP)

#3 Post by Dark Airnel »

zexel0014 wrote:no need for help anymore i got it ^_^

Code: Select all

automacro exacttime {
	location prontera
	exclusive 1
	call {
		log $.second
		$x = $.second
		if ($x != 30) goto ganto
		
		do something, womewhat, everything, etc
		:ganto
		stop
	}
}
This is going to work if it is the only macro that you have. If you have multiple macros you might encounter problems.