Can someone tell what I'm doing wrong?

Need help running MacroQuest2? Ask your questions about how to get things to work on your computer.

Moderator: MacroQuest Developers

Azantar
decaying skeleton
decaying skeleton
Posts: 4
Joined: Sun Oct 03, 2004 10:53 pm

Can someone tell what I'm doing wrong?

Post by Azantar » Fri Oct 29, 2004 5:51 pm

Got it
Last edited by Azantar on Fri Oct 29, 2004 8:46 pm, edited 1 time in total.

User avatar
Cr4zyb4rd
Plugins Czar
Posts: 1449
Joined: Tue Jul 20, 2004 11:46 am

Post by Cr4zyb4rd » Fri Oct 29, 2004 6:31 pm

o.O

User avatar
ieatacid
Developer
Developer
Posts: 2727
Joined: Wed Sep 03, 2003 7:44 pm

Post by ieatacid » Fri Oct 29, 2004 7:03 pm

What macro are you trying to compile as a plugin?

magictiger
a snow griffon
a snow griffon
Posts: 450
Joined: Sun Mar 21, 2004 2:24 pm

Post by magictiger » Fri Oct 29, 2004 7:06 pm

Did someone post on RPGexpert or sell a kit about compiling macros or something?

Azantar
decaying skeleton
decaying skeleton
Posts: 4
Joined: Sun Oct 03, 2004 10:53 pm

Post by Azantar » Fri Oct 29, 2004 7:19 pm

Its the bazaar plat farming Marco. I'm new to this but the more I read the forums the more I understand . I read a post that says you don't have to compile marco's. So thats where I was screwing up .
Here is the marco.

Code: Select all

Created by dstern

How To Run: target a trader/npc; open up the merchant window; type in /macro pricecheck

You will either get nothing returned besides the "macro ended" message, or your computer 
will beep, and will return a message saying that "You can make a #copper profit on item 
number #item sold by merchantName

Have fun with this, and you can probably figure out ways to automate this process.

Oh! And happy farming PP!!!
**|

Sub Main
  /declare priceToBuy int outer
  /declare priceToSell int outer 
  /declare iteration int outer 1
  /declare totalItems int outer ${Merchant.Items}
  :loop
  /if (${Merchant.Open}&&(${iteration}<=${totalItems})) {
    /varset priceToBuy  ${Merchant.Item[${iteration}].BuyPrice}
    /varset priceToSell ${Merchant.Item[${iteration}].Value}
    /if (${priceToBuy}<${priceToSell}) {
        /echo You can make a ${Math.Calc[${priceToSell}-${priceToBuy}]} copper profit on item number ${iteration} sold by ${Merchant.Name}
        /varcalc iteration ${iteration}+1
        /beep
        /goto :loop
    } else {
        /varcalc iteration ${iteration}+1
        /goto :loop
   }
  }
/endmacro


MO Betta???????
Last edited by Azantar on Fri Oct 29, 2004 9:47 pm, edited 2 times in total.

TheWarden
a hill giant
a hill giant
Posts: 253
Joined: Sat Dec 27, 2003 3:51 pm
Location: In your bushes...

Post by TheWarden » Fri Oct 29, 2004 8:24 pm

I quit life...
[img]http://img.photobucket.com/albums/v629/Deevious/SigPics/KristinKreukSig01.jpg[/img]

Azantar
decaying skeleton
decaying skeleton
Posts: 4
Joined: Sun Oct 03, 2004 10:53 pm

Post by Azantar » Fri Oct 29, 2004 8:45 pm

Good maybe we will hear about on the news.

eqjoe
a grimling bloodguard
a grimling bloodguard
Posts: 984
Joined: Sat Sep 28, 2002 12:26 pm

Post by eqjoe » Fri Oct 29, 2004 9:38 pm

Code: Select all

Code goes in here... noob.
Learn to post or dont post.

-j