Page 1 of 1
[Request][RoM] Script for Buy Stack -> Unpack -> Sell
Posted: Tue Dec 04, 2012 7:10 pm
by Mizo
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

Re: [Request][RoM] Script for Buy Stack -> Unpack -> Sell
Posted: Wed Dec 05, 2012 1:07 am
by rock5
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.
Re: [Request][RoM] Script for Buy Stack -> Unpack -> Sell
Posted: Wed Dec 05, 2012 8:20 am
by Mizo
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

Re: [Request][RoM] Script for Buy Stack -> Unpack -> Sell
Posted: Wed Dec 05, 2012 10:52 am
by rock5
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.
Re: [Request][RoM] Script for Buy Stack -> Unpack -> Sell
Posted: Wed Dec 05, 2012 11:24 am
by Mizo
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
Re: [Request][RoM] Script for Buy Stack -> Unpack -> Sell
Posted: Wed Dec 05, 2012 11:52 am
by rock5
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".
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?
Re: [Request][RoM] Script for Buy Stack -> Unpack -> Sell
Posted: Wed Dec 05, 2012 11:54 am
by Mizo
yes i have good packages but they dont open when bot working
Re: [Request][RoM] Script for Buy Stack -> Unpack -> Sell
Posted: Wed Dec 05, 2012 11:56 am
by rock5
I edited my last post so please reread it.
Are you playing in English?
Re: [Request][RoM] Script for Buy Stack -> Unpack -> Sell
Posted: Wed Dec 05, 2012 12:01 pm
by Mizo
im stupid ... i dont play in english client ...
ill gona check it instantly
Re: [Request][RoM] Script for Buy Stack -> Unpack -> Sell
Posted: Wed Dec 05, 2012 12:06 pm
by rock5
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.
Re: [Request][RoM] Script for Buy Stack -> Unpack -> Sell
Posted: Wed Dec 05, 2012 12:43 pm
by Mizo
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?
Re: [Request][RoM] Script for Buy Stack -> Unpack -> Sell
Posted: Wed Dec 05, 2012 12:48 pm
by Mizo
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 ?
Re: [Request][RoM] Script for Buy Stack -> Unpack -> Sell
Posted: Wed Dec 05, 2012 12:52 pm
by Mizo
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
Re: [Request][RoM] Script for Buy Stack -> Unpack -> Sell
Posted: Wed Dec 05, 2012 1:20 pm
by rock5
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.
Re: [Request][RoM] Script for Buy Stack -> Unpack -> Sell
Posted: Wed Dec 05, 2012 1:30 pm
by Mizo
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
Re: [Request][RoM] Script for Buy Stack -> Unpack -> Sell
Posted: Wed Dec 05, 2012 1:39 pm
by rock5
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
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.
Re: [Request][RoM] Script for Buy Stack -> Unpack -> Sell
Posted: Wed Dec 05, 2012 1:53 pm
by Mizo
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
Re: [Request][RoM] Script for Buy Stack -> Unpack -> Sell
Posted: Thu Aug 01, 2013 5:33 am
by Statesider
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

Re: [Request][RoM] Script for Buy Stack -> Unpack -> Sell
Posted: Thu Aug 01, 2013 6:38 am
by rock5
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.
Re: [Request][RoM] Script for Buy Stack -> Unpack -> Sell
Posted: Thu Aug 01, 2013 8:52 am
by Statesider
Thanks Rock, that solved my problem ^^