MQ2Bzsrch Question

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

Terramantian
a ghoul
a ghoul
Posts: 120
Joined: Thu May 13, 2004 6:20 pm

MQ2Bzsrch Question

Post by Terramantian » Fri Aug 27, 2004 4:08 pm

Is there any way to force a mq2bzsrch bazaaritem to the item type? As in, give it access to things such as .Spell, .Weight, etc? I could not find this documented, and I gave up experimenting because any time I do *anything* imperfectly with ${Bazaar} I CTD... I've come to the conclusion/guess that if this is possible it'll mean a change in the plugin... but before I even attempt that, has anyone ran into this/gotten around it/fixed it? Thanks.

[Edit] Oh, a little additional information. Since you get the items name and ID from the search, is there any way to look it up that way, like "${Item[29957].~}"? (but obviously not that cause it doesn't work) ... I've read through the manual and boards, but feel free to flame me if there's an obvious answer :)

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Fri Aug 27, 2004 4:49 pm

The bzsrch plugin simply exercises the bazaar search window. We only get the data back from the server need to fill in the entries. The ITEMINFO data is not available directly. You can do things like right click on the item and then poach the data out of the item display plugin, but it's not currently explosed to macro language.

Additionally, to look up items by ID, you need to write an interface to lucy, since there is no directly method to query the server for it...

Terramantian
a ghoul
a ghoul
Posts: 120
Joined: Thu May 13, 2004 6:20 pm

Post by Terramantian » Fri Aug 27, 2004 4:57 pm

Thanks for the quick reply. I was afraid it was something like that. I knew you didn't get the data back for all the items as soon as the search was done, but I thought there might be an easy way to access it. Well thanks again, I might try the lucy thing.

Terramantian
a ghoul
a ghoul
Posts: 120
Joined: Thu May 13, 2004 6:20 pm

Post by Terramantian » Fri Aug 27, 2004 6:09 pm

Alright forget that, that's too much work. I'm doing the right click thing instead, or trying to. Do you have any suggestions on where to begin? The item display information window.text returns nothing.. I don't suppose there's a way I'm missing to get at it short of editing the plugin/mq2 files? I'm even more newbish to C++ than i am to mq's language (At least with this kind of hook-program, I can do a tiny bit straightforward independent programs) ... but if I get time I guess I'll start learning. If anyone else has any suggestions I'd appreciate it though.