Problem with priority

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

Moderator: Moderators

qualitybot
Noob
Noob
Posts: 5
Joined: 29 Jan 2014, 07:05
Noob?: Yes

Problem with priority

#1 Post by qualitybot »

Code: Select all

automacro autoloot {
	console /Other players are not allowed to view your Equipment./
	exclusive 1
	priority 0
	call doAutoloot
}

macro doAutoloot {
	do c @alootid Gold
	release all
}


automacro doWarp {
	delay 5
	location not pay_fild10
	exclusive 1
        priority 1
	call do@Warp
}

macro do@Warp {
		do c @warp pay_fild10
		release all
}
Hi, i'm trying to figure out what am I doing wrong in this macro, what I'm trying to accomplish is when I start/login/reconnect the bot, the first thing it will do is to do @alootid gold, then after that, check if the map is pay_fild10 if not, do @warp pay_fild10, but what happening is when I start/login/reconnect the bot immediately warp to pay_fild10 instead of doing @alooid gold, I already set the priority of automacro autoloot to 0, but still did'nt work. Can someone tell me what am I doing wrong?
Lethor
Noob
Noob
Posts: 6
Joined: 26 Jan 2014, 08:52
Noob?: No

Re: Problem with priority

#2 Post by Lethor »

I think your first macro triggers too fast after login.

Try

Code: Select all

automacro autoloot {
   delay 2
   console /You are now ingame/ #you may have to adjust this according to your language setting
   exclusive 1
   priority 0
   call doAutoloot
}

macro doAutoloot {
   do c @alootid Gold
   #release all #you don't have to release anything here
}


automacro doWarp {
   delay 5
   location not pay_fild10
   exclusive 1
        priority 1
   call do@Warp
}

macro do@Warp {
      do c @warp pay_fild10
      #release all #nor here
}