Hi,
I'm about to commit an update to rombot with a lot of changes. 1 of the things I ended up doing was create a 'store' class. The way it works is, whenever buying stuff, it loads the store data once only for that npc. From then on player merchant should run supper fast. It only changes the data when you visit a different store.
I need peoples opinion as to which functions should be moved to the store class. buyItem() was a no brainer. buyconsumables() wasn't so obvious because it also uses the inventory but seeing as it's about 'buying' I moved that too. The main 1 I'm not sure about is autosell(). It also uses the inventory but doesn't use the data stored in 'store'. Seeing as the 'store' class is mainly about the items for sale I'm not sure if a selling function should be moved to it. But then again selling is still a store function I guess.
What are people opinions?
Feedback on store class idea
Feedback on store class idea
- 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
-
Personalausweis
- Posts: 73
- Joined: Mon Aug 16, 2010 12:50 pm
Re: Feedback on store class idea
hi Rock5,
one thing that is disturbing me is the fact that consumables are always bought one by one.
perhaps it is possible to check how many potions are in bag and then buy the rest to maximun in one stack.
sth like this:

one thing that is disturbing me is the fact that consumables are always bought one by one.
perhaps it is possible to check how many potions are in bag and then buy the rest to maximun in one stack.
sth like this:
Code: Select all
inBag = getBagItemCount(ID)
toBuy = (Maximum to buy from profile?! - inBag)
sendmacro("StoreBuyItem(position,toBuy)")
Re: Feedback on store class idea
Yeah, me too. That's why I fixed it in rev 559.Personalausweis wrote:one thing that is disturbing me is the fact that consumables are always bought one by one.
- 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
Re: Feedback on store class idea
I love the idea. Idk if it exists but a buy-item-by-name option would be swell!
Thanks for reading! 
Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates
Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates
Re: Feedback on store class idea
That would bejduartedj wrote:I love the idea. Idk if it exists but a buy-item-by-name option would be swell!
Code: Select all
store:buyItem(nameIdOrIndex, quantity)http://www.solarstrike.net/phpBB3/viewt ... =21&t=2101
- 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
Who is online
Users browsing this forum: Bing [Bot] and 4 guests