Quilistan wrote...
I understand there is a MaxBuy Price and an item type limit that is set in the toolset.
I am looking to see if you can script a check to limit the things a store will purchase regarding their cost. I am hoping to create a store that only buys items ABOVE a certain (preferably settable) price.
Hi Quillstan,
There are (possibly) two approaches, depending upon how accurate this needs to be.
1) ROUGH APPROACH: If the items are generally of the same type, then simply using the "Will Not Buy" system to prevent the store from buying items of that type would suffice. E.g. If all daggers were too cheap for your vendor, then make sure "dagger" is in the "Will Not Buy" list. However, this approach does not work so well if you wish to distinguish between items of the same "type" but of different values.
2) ACCURATE APPROACH: (This may or may not be possible as I have not checked it): There is a command inside the store.xml that says: OnMouseDropReceived=UIListBox_OnDropReceived_SellToStore(). Now, if you were to add your own OnMouseDropReceived to fire a script prior to this line, then you could have the code check the item being dropped and "reject" it if too cheap.
Without testing, I cannot give you any more info, but I don't see why this could not work.
Lance.