Code: Select all
|
| baztest.inc
| This is to Test the BazaarBuy Function
| Version 1.0
| Date: September 1, 2004
|
| Please be sure to get the lastest updates at http://www.soc-music.com/mq2/
|
| This is to show and test the bazzarbuy function that I have made.
| You MUST go to the website above and download the common.zip out of
| the tradeskill macro section and put them into a common directory in
| your macro directory. If you don't have one, make it. All you have
| to tell it is what you want. The max you will pay for it. And how many
| you want total. This macro will look to see how many you have first and subtract
| that away by how many you want total. Just change the variables below and let it
| go. You WILL need to be in front of Caerlyna in the bazaar (The lady you turn in
| your bag tokens to) once you start it up. This macro was its own pathing too. Also,
| ever once in a while you get a merchant you can't find, it is designed to skip that
| merchant in the array and go to the next one. Also, when you enter in the max price,
| if you enter 10000, that means 10pp 0g 0s 0c.
|
| When including these into your own macro, be sure to include the buy.inc and the
| gogetitem.inc too.
|
| Disclaimer:
| Code was used from other programers also from the MQ Forums.
|
#include common/bazaarbuy.inc
#include common/buy.inc
#include common/gogetitem.inc
Sub Main
/declare ItemToBuy string inner
/declare HighestPriceToPay int inner
/declare TotalYouWant int inner
/varset ItemToBuy "Spider Silk"
/varset HighestPriceToPay 10000
/varset TotalYouWant 40
/call BazaarBuy ${ItemToBuy} ${HighestPriceToPay} ${TotalYouWant}
/return
