What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Addon that buys specific stuff (limited stock items) from a vendor?

highend

Member
Joined
Jan 15, 2010
Messages
422
Reaction score
1
Hi,

I'd like to have a toon standing in front of an NPC that checks e.g. every 10 seconds if a few items from this vendor are available now (there are only limited quantaties available and the respawn time for them is very high (> 30 mins)).

This NPC is Casandra Downs - NPC - World of Warcraft and she sells e.g. Silver Charm Bracelet - Item - World of Warcraft and trying to get such an item from her manually is a tedious task.

Is something like this already available?

Regards,
Highend
 
There was one that did it for dark moon faire items, should be easy to change.
 
Thx exfelon,

Although it isn't buying something from the vendor...

Code:
string[] ItemList = new string[]{"Light Parchment", "Preserved Ogre Eye", "Silver Charm Bracelet"};

Light Parchment is only in the list to test if it's working.

Code:
if (wu.Name == "Casandra Downs")

Changed the name of the vendor.

When I run it, the log says:

[Mr.DarkMoon]:Vender Has 9 Items
[Mr.DarkMoon]:Item Slot 1 is Crystal Vial has -1
[Mr.DarkMoon]:Item Slot 2 is Vanishing Powder has -1
[Mr.DarkMoon]:Item Slot 3 is Dust of Disappearance has -1
[Mr.DarkMoon]:Item Slot 4 is Light Parchment has -1
[Mr.DarkMoon]:Item Slot 5 is Common Parchment has -1
[Mr.DarkMoon]:Item Slot 6 is Heavy Parchment has -1
[Mr.DarkMoon]:Item Slot 7 is Resilient Parchment has -1
[Mr.DarkMoon]:Item Slot 8 is Virtuoso Inking Set has -1
[Mr.DarkMoon]:Item Slot 9 is Scribe's Satchel has 2
[Mr.DarkMoon]:Closing Merchant Frame

But it won't buy the Light Parchment (the other two were out of stock).

Anything else that has to be changed in the addons code to get it working?

Tia,
Highend
 
my server is down and i'm not at home, so i can't legitimately comment on what's stopping it...
 
*sad face* :)

Maybe when your server's up again and you're back home?

Regards,
Highend
 
Great!

Btw, I know why it's not buying them :)

Code:
slog("Item Slot {0} is {1} has {2} ", i.ToString(), ItemInfo[0].ToString(), ItemInfo[4].ToString());

produces entries like:
[Mr.DarkMoon]:Item Slot 1 is Crystal Vial has -1

-1 means: item has unlimited quantity.

The problem is this line:

Code:
while (ItemInfo[4].ToInt32() > 0)

It obviously never buys items that are unlimited (which affects Light Parchment as well). I don't know if it was originally coded as a security purpose (don't buy things that can't be out of stock).

I changed the Light Parchment to Scribe's Satchel and it bought 2/2.

The only (new) problem is:

When it has bought all items in the list, it won't close the vendor frame so it would be stuck in finding out if items have become available.

Just to give you an update :)
 
Last edited:
Back
Top