how to improve route in lockmap?

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

Moderator: Moderators

Message
Author
Mandinga
Human
Human
Posts: 20
Joined: 01 Nov 2012, 11:10
Noob?: No

how to improve route in lockmap?

#1 Post by Mandinga »

hello, i'm trying to make my bot to move to a better spots, but he move and goes straight to that cell, he stop attacking or gathering loots. Is it about macro or some option in configs?
using wxstart I can controll with mouse(left or right click in map) to move and attack or just move to that spot. how I do that with a macro?

Code: Select all

automacro time {
	map gef_fild09
	timeout 450
	call {
		$m1 = 226 222
		$m2 = 351 127
		$m3 = 350 90
		$m4 = 368 83
		$m5 = 136 163
		$m6 = 238 187
		$m7 = 40 30
		do move @random ("$m1", "$m2", "$m3", "$sm4", "$m5", "$m6", "$m7") gef_fild09
	}

Mandinga
Human
Human
Posts: 20
Joined: 01 Nov 2012, 11:10
Noob?: No

Re: how to improve route in lockmap?

#2 Post by Mandinga »

I would like to know how I change movement (do move x y) to make bot move but atk monsters near.
if I try "do move @random (a,b,c,d)" bot only move and ignore monsters.

Code: Select all

sub _onRightClick {
	my ($self, $event) = @_;
	if ($self->{clickCb} && $self->{field}{width} && $self->{field}{height}) {
		my ($x, $y) = $self->_viewToPosXY ($event->GetX, $event->GetY);
		
		my $map = $field->baseName;
		AI::clear(qw/move route mapRoute/);
		message TF("Walking to waypoint: %s, %s\n", $x, $y), "success";
		main::ai_route($map, $x, $y,
		attackOnRoute => 2,
		noSitAuto => 1,
		notifyUponArrival => 1);
	}
}
any one know how I use this "attackOnRoute => 2" ?? I use it in macros? I got this from Interface\Wx\MapViewer.pm

Post Reply