EQ2Bot and NoTrade/Lore Items

ownagejoo

Well-Known Member
Ok got this working this weekend, Here is the fix to get EQ2Bot to stop looting NoTrade and Lore Items using the check box already in the UI

ADD:
In the main function right after all the tempvars
Code:
variable int LootWndCount
Now overwrite the loot routine at the end of the main function with the following:
Code:
      LootWndCount:Set[1]
      do
      {
          if (${LootWindow.Item[LootWndCount].Lore} ||  ${LootWindow.Item[LootWndCount].NoTrade}) && ${LootConfirm}
	 {
	    EQ2UIPage[Choice,RoundedGrouper].Child[button,Choice.Choice1]:LeftClick
	 }
	 else
	 {
	    EQ2UIPage[Choice,RoundedGrouper].Child[button,Choice.Choice2]:LeftClick
	 }
      }
      while ${LootCount:Inc} <= ${LootWindow.NumItems}
You should be able to see where this goes just by matching it up in the current code.

Also remember this works with the check box on the UI, so uncheck it if you DON'T want to loot lore/notrade. And as usual, if you see anything crazy happening with this post it here.

OAJ
 

ownagejoo

Well-Known Member
I don't think this will work anymore, Pygar believes there is a change to the UI. Honestly I have not been home before 8pm for the last couple days so really have not looked into it.

I will when I get a chance.

OAJ
 

Pygar

EQ2Bot Specialist
Yeah, this was working for a while, then it quit. I'm pretty sure something changed in the UI, but I've not had time to look at it either.
 

v01d

Well-Known Member
Any code that interacts with the choice page needs to be looked at. Examples would be lore/notrade loot confirmations, rez accepts etc.

EQ2UIPage[Choice,RoundedGrouper].Child[button,Choice.Choice1]:LeftClick

The above no longer works but you can use the following in it's place

EQ2UIPage[Hud,Choice].Child[button,Choice.Choice1]:LeftClick


Important note.

You can NOT use...

${EQ2UIPage[Hud,Choice].Child[button,Choice.Choice1](exists)}

in place of...

${EQ2UIPage[Choice,RoundedGrouper].Child[button,Choice.Choice1](exists)}

to determine in the window is up, but you can use the following to accomplish the same thing.

!${EQ2UIPage[Hud,Choice].Child[text,Choice.Text].Label.Find[DEVL]}

Hope this helps.

v01d
 

Pygar

EQ2Bot Specialist
Thanks void, effected these changes to the experimental eq2bot.

*If* I get time I'll update the current version later today, after I can test it.
 
Top Bottom