[Request][RoM] Script for Buy Stack -> Unpack -> Sell

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Mizo
Posts: 20
Joined: Tue Dec 04, 2012 6:59 pm

[Request][RoM] Script for Buy Stack -> Unpack -> Sell

#1 Post by Mizo » Tue Dec 04, 2012 7:10 pm

Hello everyone. I need help whit this script.

I need scipt which gona buy materials (from honor points - if i have them) ofcourse 99 (full stack) hm 1 use 3 stacks. Then unpack all of items and next sell them all from backpack 1,2,3,4,5,6. And then repeat.

Sory for my bad english ;/

Npc name : Melody Woram
Items name : Frost Crystal Sand Material Package
Unpacked items name : Frost Crystal Sand


thx for help :)

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

Re: [Request][RoM] Script for Buy Stack -> Unpack -> Sell

#2 Post by rock5 » Wed Dec 05, 2012 1:07 am

Here is my honor sells script as it is. It buys the maximum possible packages, leaving some space to unpack, then moves to another npc to unpack and sell just to look a little less inconspicuous. It also has a feature that you can stop the script and go to any other merchant and open the store then restart the script and it will sell at that merchant. But if you do that it wont buy more. It uses the slipstream option to automatically open the stores. Depending on how much money and honor you have you probably only need to purchase once.
Attachments
honorsell.xml
(2.53 KiB) Downloaded 196 times
  • 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

Mizo
Posts: 20
Joined: Tue Dec 04, 2012 6:59 pm

Re: [Request][RoM] Script for Buy Stack -> Unpack -> Sell

#3 Post by Mizo » Wed Dec 05, 2012 8:20 am

I have problem. When im turning On bot there is error :

2:17pm - ...s\tr0cek\Desktop\micromacro_1411\scripts\rom/bot.lua:505: onLoad error: [string "..."]:65: finished selling


If i gona buy manualy, then bot is going to second npc and i have other error : [string "...":4: end

plz help :(

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

Re: [Request][RoM] Script for Buy Stack -> Unpack -> Sell

#4 Post by rock5 » Wed Dec 05, 2012 10:52 am

If you already have the packages then you need to open a merchant before starting the script. And the store has to automatically open when you double click the npc, otherwise you will need to select the option to open the store.
  • 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

Mizo
Posts: 20
Joined: Tue Dec 04, 2012 6:59 pm

Re: [Request][RoM] Script for Buy Stack -> Unpack -> Sell

#5 Post by Mizo » Wed Dec 05, 2012 11:24 am

do i need any addons to let it work? ore what ? because now i have clear backpacks and steel have this error i have try to open shop before starting bot -> but he close the shop (dont buy anything, then go to second npc and show error. I also have try to do this whit manualy buy packages, i try to open shop but have the same error

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

Re: [Request][RoM] Script for Buy Stack -> Unpack -> Sell

#6 Post by rock5 » Wed Dec 05, 2012 11:52 am

Just the one to open the store automatically, Streamline, or use a store that already open directly.

Code: Select all

[string "..."]:65: finished selling
Means you had the store open when you started the script. In this case it assumes you already bought some packages and it opens them and sells the sand. Then you get that message saying "finished selling".

Code: Select all

[string "...":4: end
This means you started the script normally and it will buy packages from Melody and sell at Kaen and it will go back and forth until you are out of money or honor points.

If it's not opening the packages I don't know why. Did you buy the right packages?
  • 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

Mizo
Posts: 20
Joined: Tue Dec 04, 2012 6:59 pm

Re: [Request][RoM] Script for Buy Stack -> Unpack -> Sell

#7 Post by Mizo » Wed Dec 05, 2012 11:54 am

yes i have good packages but they dont open when bot working

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

Re: [Request][RoM] Script for Buy Stack -> Unpack -> Sell

#8 Post by rock5 » Wed Dec 05, 2012 11:56 am

I edited my last post so please reread it.

Are you playing in English?
  • 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

Mizo
Posts: 20
Joined: Tue Dec 04, 2012 6:59 pm

Re: [Request][RoM] Script for Buy Stack -> Unpack -> Sell

#9 Post by Mizo » Wed Dec 05, 2012 12:01 pm

im stupid ... i dont play in english client ...

ill gona check it instantly

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

Re: [Request][RoM] Script for Buy Stack -> Unpack -> Sell

#10 Post by rock5 » Wed Dec 05, 2012 12:06 pm

Sorry, I assumed you did because you listed English names. So just change the names and it should work. I didn't use ids because I wrote it for myself.
  • 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

Mizo
Posts: 20
Joined: Tue Dec 04, 2012 6:59 pm

Re: [Request][RoM] Script for Buy Stack -> Unpack -> Sell

#11 Post by Mizo » Wed Dec 05, 2012 12:43 pm

ok i have other problem now. Before i change name of items i have buy 90 stack of materials. Now its unpack some of them - and when backup was full bot didnt sell this. Bot just Stop. Its this gona be ok when its gona buy automaticly ? ora what?

Mizo
Posts: 20
Joined: Tue Dec 04, 2012 6:59 pm

Re: [Request][RoM] Script for Buy Stack -> Unpack -> Sell

#12 Post by Mizo » Wed Dec 05, 2012 12:48 pm

and when im opening shop (im standing near npc) it showing all the time "cant sell this item" bot is using all the time packeges. Is there any way to modify him to :

Unpack 300 packeges, then check and sell all unpacked items ?

Mizo
Posts: 20
Joined: Tue Dec 04, 2012 6:59 pm

Re: [Request][RoM] Script for Buy Stack -> Unpack -> Sell

#13 Post by Mizo » Wed Dec 05, 2012 12:52 pm

ok i know how it works now.

But one more questions - what is the name of addon which open shop instantly? whitout talking whit npc?


Sory for spam. Plz put all my post in to one. Didnt see Edit button before

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

Re: [Request][RoM] Script for Buy Stack -> Unpack -> Sell

#14 Post by rock5 » Wed Dec 05, 2012 1:20 pm

Mizo wrote:But one more questions - what is the name of addon which open shop instantly? whitout talking whit npc?
You still have to talk to the npc but instead of selecting "I want to see what you have for sale" it selects that option automatically.
  • 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

Mizo
Posts: 20
Joined: Tue Dec 04, 2012 6:59 pm

Re: [Request][RoM] Script for Buy Stack -> Unpack -> Sell

#15 Post by Mizo » Wed Dec 05, 2012 1:30 pm

when my backpack is full -> bot is talking whit npc 2 times :

1'st time shop opening automaticly
2'nd time there is opened window whit 2 options "i wona se what you have for sell" and "leave conversation" but bot dont opening shop and not selling items

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

Re: [Request][RoM] Script for Buy Stack -> Unpack -> Sell

#16 Post by rock5 » Wed Dec 05, 2012 1:39 pm

Maybe it just took too long to open. So it tried again but then it failed to open automatically. You could try making the pause after opening the store longer. The command that opens the store to sell is on line 18

Code: Select all

		Attack() yrest(1000)
Try making the yrest bigger. Currently it's 1000ms (1s) which should be plenty but maybe you were standing too far away when you started the script or maybe you have bad lag with the server.
  • 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

Mizo
Posts: 20
Joined: Tue Dec 04, 2012 6:59 pm

Re: [Request][RoM] Script for Buy Stack -> Unpack -> Sell

#17 Post by Mizo » Wed Dec 05, 2012 1:53 pm

i didnt change yrest :)

Best solvation ? Your script + StreamLine addon = working perfectly.

Thx for your help, and wasted time.

I own you good botle of vodka :)

P.S - You are awsome !:D

Statesider
Posts: 14
Joined: Tue Aug 21, 2012 3:05 pm

Re: [Request][RoM] Script for Buy Stack -> Unpack -> Sell

#18 Post by Statesider » Thu Aug 01, 2013 5:33 am

I got a lil question. How can i re-edit it so it buys other materials? Like Rein Crystal Sand... did rename correctly, also honor points and gold adjusted. says doesnt meet requirements. But got enough honor points and gold...strange :roll:

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

Re: [Request][RoM] Script for Buy Stack -> Unpack -> Sell

#19 Post by rock5 » Thu Aug 01, 2013 6:38 am

It might be because the calculations are based on the value of the other item.

Try changing theses 2 lines around line 58 to the correct values.

Code: Select all

	local buy2 = math.floor(inventory.Money/17090)
	local buy3 = math.floor(RoMScript('GetPlayerHonorPoint()')/3000)
I think it should be 38250 and 4000 respectively. I don't know why I originally used Frost Crystals. Maybe it was the highest one you could buy back then.

I just checked again. It's the one that makes the most money per honor point.
Attachments
HonorPointProfit.jpg
  • 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

Statesider
Posts: 14
Joined: Tue Aug 21, 2012 3:05 pm

Re: [Request][RoM] Script for Buy Stack -> Unpack -> Sell

#20 Post by Statesider » Thu Aug 01, 2013 8:52 am

Thanks Rock, that solved my problem ^^

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests