Page 1 of 1

Can someone tell what I'm doing wrong?

Posted: Fri Oct 29, 2004 5:51 pm
by Azantar
Got it

Posted: Fri Oct 29, 2004 6:31 pm
by Cr4zyb4rd
o.O

Posted: Fri Oct 29, 2004 7:03 pm
by ieatacid
What macro are you trying to compile as a plugin?

Posted: Fri Oct 29, 2004 7:06 pm
by magictiger
Did someone post on RPGexpert or sell a kit about compiling macros or something?

Posted: Fri Oct 29, 2004 7:19 pm
by Azantar
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???????

Posted: Fri Oct 29, 2004 8:24 pm
by TheWarden
I quit life...

Posted: Fri Oct 29, 2004 8:45 pm
by Azantar
Good maybe we will hear about on the news.

Posted: Fri Oct 29, 2004 9:38 pm
by eqjoe

Code: Select all

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

-j