Most memory-efficient way to isolate bzsrch items...help?

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

Moderator: MacroQuest Developers

What is your favorite Activity?

Gaining Levels Fast
1
10%
Shopping for STEALS
1
10%
Guild-chatting with friends?
1
10%
Raiding
6
60%
PvPing
0
No votes
Exploring new Areas
1
10%
Roleplaying
0
No votes
 
Total votes: 10

JWWQ
a lesser mummy
a lesser mummy
Posts: 30
Joined: Sat Jun 19, 2004 4:58 pm

Most memory-efficient way to isolate bzsrch items...help?

Post by JWWQ » Fri Jul 02, 2004 3:00 pm

When I search for "Steel Breastplate" (there is an actual item called just 'Steel Breastplate' ItemID=4004) using /bzsrch in my macros, I am coming up with more than one item as a result.

Gothic Steel Breatsplate
Steel Breastplate
Black Steel Breastplate
Blood Steel Breastplate
Calcified Steel Breastplate
Cold Steel Breastplate
Etc......

"So what," you say.

Each of these items has a different .Cost
This stymies Macros such as DumpsterDiver.mac or FindCheapest.mac.

"So what," you say again.

This also stymies many data-mining posibilities like fetching an average bazaar price on a given item in order to look for steals or steels :lol: :roll:

Is there a way to search for ItemID using Bzsrch or at least doublecheck the ItemId against bzsrch results?

If so, I am in business and will have a pretty good macro/ini set posted before too long for your bazaar-profit enjoyment.

The current code I am using pulls from an ini which lists [Ini_List_ID] = Item.Name

Macro Example:

Code: Select all

/varset File1 Bazaar.ini 
/varset Counter 1
:mainloop 

/echo Searching for ${Ini[${File1},Names,val${Counter}]} 

/bzsrch race any class any ${Ini[${File1},Names,val${Counter}]} 

...etc...




/if (${Bazaar.Count}>1) { 
   /for l1 1 to ${Math.Calc[${Bazaar.Count}1]} 
   /echo ${l1} Price ${Bazaar.Item[${l1}].Price} Trader ${Bazaar.Item[${l1}].Trader}
   /if (${Price}<${Vendor_Cost}) { 
   /goto :BuyTheSucker


...etc....


ini example

Code: Select all

 
  [Names]
  Val1=Cloth Cap
  Val2=Silver Dagger

  [Vendor_Cost]
  Val1=10
  Val2=2030
I could easily include"

Code: Select all

  [Item_ID]
  Val1=1001
  Val2=32345
I am just am seeking the MOST memory-efficient way to isolate a specific item whose entire name is also part of another item's name.in /bzsrch.


Throw me a bone!

JWWQ
a lesser mummy
a lesser mummy
Posts: 30
Joined: Sat Jun 19, 2004 4:58 pm

no-one has an answer for this?

Post by JWWQ » Tue Jul 06, 2004 10:27 am

Am I barking up the wrong tree? Is there a simpler way around this?

User avatar
blueninja
a grimling bloodguard
a grimling bloodguard
Posts: 541
Joined: Thu Aug 28, 2003 7:03 am
Location: Göteborg, Sweden

Post by blueninja » Tue Jul 06, 2004 10:53 am

I've never used the plugin myself but I took a glance at the source and this is my conclusion from that (so yeah, I might be wrong :).

There is no way to limit the actual search to a particular ID, however you can get the ID of the items in the search results. I believe this is how: ${Bazaar.Item[1].ItemID}.