trading between bots using @inventory doesn't work

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

Moderator: Moderators

inv
Plain Yogurt
Plain Yogurt
Posts: 58
Joined: 18 Sep 2009, 01:28
Noob?: Yes

trading between bots using @inventory doesn't work

#1 Post by inv »

Any1 knows why when I use automacro to deal another bot it almost always gets cancelled, even with only red potions, yellow potions, orange potions, white potions, green potions and concentration potions?







My deal automacro is basically this

Code: Select all

#5. Keep adding the loots till all unloaded


automacro deal add red potion {
   inventory "red potion" != 0
   timeout 3
   call {
      do deal add @inventory (red potion)
   }
}

automacro deal add green potion {
   inventory "green potion" != 0
   priority 1
   timeout 3
   call {
      do deal add @inventory (green potion)
   }
}

automacro deal add orange potion {
   inventory "orange potion" != 0
   priority 2
   timeout 3
   call {
      do deal add @inventory (orange potion)
   }
}

automacro deal add yellow potion {
   inventory "yellow potion" != 0
   priority 3
   timeout 3
   call {
      do deal add @inventory (yellow potion)
   }
}

automacro deal add white potion {
   inventory "white potion" != 0
   priority 4
   timeout 3
   call {
      do deal add @inventory (white potion)
   }
}

automacro deal add concentration potion {
   inventory "concentration potion" != 0
   priority 5
   timeout 3
   call {
      do deal add @inventory (concentration potion)
   }
}

After the items were added to trade, the deal was cancelled. Rarely, but sometimes the deal somehow randomly works.


It happens on both revision 8468 & latest 8596 openkore.
inv
Plain Yogurt
Plain Yogurt
Posts: 58
Joined: 18 Sep 2009, 01:28
Noob?: Yes

Re: trading between bots using @inventory doesn't work

#2 Post by inv »

I got it working. It's not a problem of @inventory, but I solved it with exclusive 1, I'm guessing it's because the 6 deal adds somehow haywire the inventory "itemname" != 0 check, and exclusive I guess makes them run one at a time so it doesn't cancel each other's inventory "itemname" != 0 check?
rocknroll
Been there done that!
Been there done that!
Posts: 118
Joined: 19 Sep 2011, 07:30
Noob?: Yes

Re: trading between bots using @inventory doesn't work

#3 Post by rocknroll »

always remember in your mind. Case-Sensitive
Sorry, my english is very bad !