How to buy cheapest arrows/pots?

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
Edamh
Posts: 106
Joined: Tue May 24, 2011 11:56 pm

How to buy cheapest arrows/pots?

#1 Post by Edamh »

I have my bot buying arrows just fine, but it is buying the most expensive kind. I read through the wiki, but didn't find a way to specify which arrows 'best | cheapest | etc" to buy.

Code: Select all

		<!-- Shopping options, how many of what do you want to keep in your inventory -->
		<option name="HEALING_POTION" value="20" />
		<option name="MANA_POTION" value="20" />
		<option name="ARROW_QUIVER" value="2" />
		<option name="THROWN_BAG" value="0" />
		<option name="POISON" value="0" />
Is there a profile setting to choose which arrows (or pots for that matter) for the bot to buy at the vendor? I'd rather have the bot buy the 100 gold quivers rather than the 10000 gold quivers since the difference in DPS is not substantial (for me to notice anyways).

Thanks.
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: How to buy cheapest arrows/pots?

#2 Post by rock5 »

As far as I know there isn't an option for that. It always buys the best.

You could buy them manually. Something like,

Code: Select all

local numberToBuy = numberyouwant - inventory:itemTotalCount(nameorid) -- change "numberyouwant" to how many you want in total in your bag
if numberToBuy > 0 then -- buy some
    player:openStore(npcname)
    store:buyItem(nameIdOrIndex, numberToBuy)
end
You would add it just after player:merchant command that does your other merchant stuff. Make sure you disable arrow options in the profile so player:merchant doesn't try to buy them.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan
User avatar
Edamh
Posts: 106
Joined: Tue May 24, 2011 11:56 pm

Re: How to buy cheapest arrows/pots?

#3 Post by Edamh »

Code worked perfectly! TYVM!
Post Reply