Page 1 of 1

[DarkRO] Gold Counter

Posted: 06 May 2015, 04:22
by coarse
I use this instead of using a timer for my gold room bot.

Code: Select all

automacro instantiate {
	var gold unset
	call {
		$gold = 0
	}
	run-once 1
}
automacro add {
	var gold >= 0
	console /got (\d+) GP/
	call {
		$add = $.lastMatch1
		$gold = @eval($gold+$add)
		log You have $gold gold.
	}
}

Re: [DarkRO] Gold Counter

Posted: 08 May 2015, 06:20
by coarse
DarkRO updated their servers. They've added a total GP collected everytime you get GP. Here's the updated macro for exiting the room, though you can still use the one above.

Code: Select all

automacro exit {
   console /Total GP: (\d+)/
   call {
      if ($.lastMatch 1 >= 500) {
            -insert your exit commands here-
      }
   }
}

Re: [DarkRO] Gold Counter

Posted: 28 Oct 2016, 05:54
by kamukamu
Why is it when i put the gold counter on my macro.txt when the bot enters the gold room all automacros are triggering?

Re: [DarkRO] Gold Counter

Posted: 12 Nov 2016, 15:12
by kalalako
can somebody teach me how to use the bot? email me at desuasidokurtolin@gmail.com, please please help me :( :( :(

Re: [DarkRO] Gold Counter

Posted: 13 Nov 2016, 23:08
by nizdi
kalalako wrote:can somebody teach me how to use the bot? email me at desuasidokurtolin@gmail.com, please please help me :( :( :(
Vague and terrible way to ask for help, you should read wiki a little bit: http://openkore.com/index.php/Main_Page.
If your problem is with macros, there's a extense and long post there.