PDA

View Full Version : [Thais] BreadMaker \o/



Furpan
10-23-2014, 09:30 PM
Deposits Gold
Withdraws Gold
Buy > Wheat
Wheat > Flour
Flour > Dough
Dough >Bread
Bread > Sell
??????
Profit
Repeat


Wheat = 1 gp
Bread = 2 gp

Your first backpack open must contain a bucket which can be found around the ovens in northern Thais
http://i.imgur.com/oO9Qur6.png
Bucket ID: 2873


Download here (https://www.dropbox.com/s/idms8fwm463s1l0/BreadMaker%20V_1.3.rar?dl=0)

DarkstaR
10-23-2014, 09:45 PM
How fast can bread be made? Basically the profit is something like


T = time, in seconds, to make bread
A = amount of bread that can be made per run
R = time it takes, in seconds, to do a full re-stock


breadPerHour = (60 * 60) / T
depositsPerHour = breadPerHour / A
secondsSpentDepositingPerHour = depositsPerHour * R
goldPerHour = ((60 * 60) - secondsSpentDepositingPerHour) / T


So, given these variables

T = 2
A = 5000
R = 60

The profit margin is
breadPerHour = (60 * 60) / 2 = 1800
depositsPerHour = 1800 / 5000 = .36
secondsSpentDepositingPerHour = .36 * 60 = 21.6
goldPerHour = ((60 * 60) - 21.6) / 2 = 1789.2

Nearly 1789 gold per hour if you can cap 2.5 backpacks of bread, and walk reasonably fast. Potentially great to run on multiple characters on the new PvP servers, as there is much less risk to die, you need no supplies to restart, and you can run potentially infinite chars at once.

Stusse
10-23-2014, 09:49 PM
How fast can bread be made? Basically the profit is something like


T = time, in seconds, to make bread
A = amount of bread that can be made per run
R = time it takes, in seconds, to do a full re-stock


breadPerHour = (60 * 60) / T
depositsPerHour = breadPerHour / A
secondsSpentDepositingPerHour = depositsPerHour * R
goldPerHour = ((60 * 60) - secondsSpentDepositingPerHour) / T


So, given these variables

T = 2
A = 5000
R = 60

The profit margin is
breadPerHour = (2 * 60 * 60) = 7200
depositsPerHour = 7200 / 5000 = 1.44
secondsSpentDepositingPerHour = 1.44 * 60 = 86.4
goldPerHour = ((60 * 60) - 86.4) / 2 = 1756.8

Nearly 1757 gold per hour if you can cap 2.5 backpacks of bread, and walk reasonably fast. Potentially great to run on multiple characters on the new PvP servers, as there is much less risk to die, you need no supplies to restart, and you can run potentially infinite chars at once.
Cap 5000 bread nigguh? What beast are u even

/Stusse

DarkstaR
10-23-2014, 09:50 PM
Cap 5000 bread nigguh? What beast are u even

/Stusse

Well I have a 300+ EK running around in FACC with nothing to do and high ping.. sooo.. yeah.

DarkstaR
10-23-2014, 10:05 PM
Okay, new algo, my last one could overflow the amount of seconds in an hour and come up with negative profit.


T = time, in seconds, to make bread
A = amount of bread that can be made per run
R = time it takes, in seconds, to do a full re-stock

goldPerRun = A
timePerRun = (A * T) + R
runsPerHour = (60 * 60) / timePerRun
goldPerHour = runsPerHour * goldPerRun


Let's see what this comes out to for a level 8:
T = 2
A = 36
R = 75

goldPerRun = 36
timePerRun = (36 * 2) + 75 = 147
runsPerHour = (60 * 60) / 147 = 24.49
goldPerHour = 24.48 * 36 = 881.28


So a level 8 can make 881 gold per hour if he can make 36 pieces of bread per run, make 1 piece of bread per second, and do a full deposit and restock in 75 seconds.

Piratrobin
10-23-2014, 11:10 PM
Nvm..

Would be awesome if you could combine this with autologin and open backpacks on a lvl 8, since you don't lose anything when dying.

DarkstaR
10-23-2014, 11:17 PM
Lets see what this means at level 20, where you have a free blessing and more cap.

770 cap on an EK because you have 752 cap for wheat. Wheat is 12.5 cap, which means you can carry about 60 pieces. You walk a bit faster, so you will probably cover a run in 60 seconds.

T = 2
A = 60
R = 60

goldPerRun = 60
timePerRun = (60 * 2) + 60 = 180
runsPerHour = (60 * 60) / 180 = 20
goldPerHour = 20 * 60 = 1200 gold per level 20 knight


Now lets say you just have a bunch of level 8's and a beast EK handing out wheat and taking bread and making runs. Lets say the time the EK takes to do this does not effect the time the characters take, and the characters take 5 seconds to swap items with the EK.

T = 2
A = 36
R = 5

goldPerRun = 36
timePerRun = (36 * 2) + 5 = 77
runsPerHour = (60 * 60) / 77 = 46.75
goldPerHour = 46.75 * 36 = 1683 per level 8

Y2Quakepc2
10-23-2014, 11:21 PM
With 10 characters level 8 running this for 24H, you would get something around 190K / day.

pretty good idea for the new servers i think :o

raiQi
10-23-2014, 11:29 PM
With 10 characters level 8 running this for 24H, you would get something around 190K / day.

pretty good idea for the new servers i think :o
That's pretty insane since prem scrolls on new servers are so cheap, u'd end up paying all accounts premium in the first day or so lol.

RobD
10-24-2014, 12:19 AM
Gonna give this a try on three of my money makers, levels 50, 37 and 40.

Will comment tomorrow an let you guys know of how much profit has been made

Furpan
10-24-2014, 03:30 AM
Updated to v1.1, added 'balance' to bank part, increased waits to minimum 800ms (shouldn't get any messages about that you're being too fast) and updated the oven part to steal others bread opaksopaks
Aaaaaaand a bp opener for reconnecting

--
Updated to v1.2
Added safelist incase someone else is trying to steal your bread :(

iMike
10-24-2014, 10:05 PM
Loved this, I used to do this stuff (manual) back in 2007 in Amera I guess...

ziemniaq
10-24-2014, 10:13 PM
DarkstaR
Something is wrong with Your calculations, because in 19 minutes on 24 lvl, I've gained 132 gold and that makes 416gp/hour, basically, character makes his run in 9-10 minutes. I think it could be less if there was condition to deposit if > 1000gp

Glowingstick
10-25-2014, 01:31 AM
add rats in targeting in case of raids :)

J.Dre
10-25-2014, 03:11 AM
What happens if someone throws trash on top of the bread or stoves? Stops working?

You'll need a trash thing like casino scripts have. :p

Furpan
10-25-2014, 04:00 AM
What happens if someone throws trash on top of the bread or stoves? Stops working?

You'll need a trash thing like casino scripts have. :p

I thought the script had that at v1.0, either way, v1.2 sure has it o;
You could've tested it on the chars at Rowana xd

Kociii
10-25-2014, 07:40 AM
Haha ;) I used it on 2 of my chars last night.. Both died by a orc berserker.

DarkstaR
10-25-2014, 04:02 PM
@DarkstaR (http://forums.xenobot.net/member.php?u=2)
Something is wrong with Your calculations, because in 19 minutes on 24 lvl, I've gained 132 gold and that makes 416gp/hour, basically, character makes his run in 9-10 minutes. I think it could be less if there was condition to deposit if > 1000gp

My run time and bread make time are estimates. You need to use actual numbers to get actual results.

Summ
10-25-2014, 07:04 PM
Seems very interesting, I guess you could optimize it by getting water left from the millstone (saving a few steps) and by using the money earned to buy new wheat.

My level 8 takes an average of 325 seconds for one route, making it 11.077 gold per wheat and hour.
I was using 30 wheat (332.31 gp/hour) but you can probably use 35 wheat (387.7 gp/hour).

J.Dre
10-25-2014, 08:30 PM
You guys should be testing this on higher levels that run faster. ;)

Would be funny to see a bunch of level 300's making bread.

Y2Quakepc2
10-25-2014, 08:37 PM
You guys should be testing this on higher levels that run faster. ;)

Would be funny to see a bunch of level 300's making bread.

lvl 300 cooking style:

http://www.funnfun.in/wp-content/uploads/2012/09/funny-man-funny-cooking.jpg

Yasuo
10-25-2014, 08:38 PM
Now on my server 20 characters with ~20level go to dp and to the bread maker, thats look so FUNNY ^^

Stusse
10-25-2014, 08:49 PM
Still its more profit just botting rotworms at level 20 :p

Summ
10-25-2014, 11:04 PM
The problem here is that the actions to make flour, dough and bread take a long time, the walking can be optimized.

I modified your script a little but the delays stayed the same, sometimes the delay for making flour even seems to be to short ('You cannot use objects that fast.' cancel appeared).
I recorded the times it took to create flour, dough and bread which you can say are 1 second, 2 seconds and 1.9 seconds per item.

Let's assume you got a character with 45000 cap, so that you can carry 3600 wheat. At that amount we can neglect the movements between the different locations.
To create these 3600 breads your character would need 4 hours and 54 minutes resulting in a gold per hour of ~734 (17632 gold daily).
Here is the script showing that: http://repl.it/2W6/2

A knight about level 100 can carry about 222 wheat (2775 cap needed) and it takes about 49 seconds to walk the path.
To create these 3600 breads on a level 100 knight it would take 5 hours and 7 minutes, resulting in a gold per hour of ~703 (16872 gold daily).
Here is the script with adjust values: http://repl.it/2W6/3

Here are the values which I got if your character is a level 20 knight: http://repl.it/2W6/4
583.78 gold per hour (14010 gold daily).

The time which the 3 different actions take in reality are probably slightly higher, I rounded them down.
The walking times are rough measurements.
In reality you will get much lower results getting killed, blocked, people trying to steal your bread and optimistic values.

derkonsito
10-26-2014, 02:01 AM
So level 8 can make 881 gold per hour if he can make 36 pieces of bread per run, make 1 piece of bread per second, and do a full deposit and restock in 75 seconds.
I made about 400gp in 1 hour with 34 pieces of bread in a lvl 8 with 0 lag! Maths failed?? Ideas why ??




Furpan The waits are in the best way possible?

Furpan
10-26-2014, 02:10 AM
Imo, they are, with the RNG, but I always encourage people to change scripts to their likings

derkonsito
10-26-2014, 02:17 AM
Imo, they are, with the RNG, but I always encourage people to change scripts to their likings

@RNG? What is that ?? And how much u made / hour ? same as me?

Furpan
10-26-2014, 02:21 AM
About 240gph/char, so total 2,4k/h
Reason for that was because people was so fascinated that there was a farm running in thais they started to kill them and steal bread

satoshi
10-26-2014, 09:17 AM
About 240gph/char, so total 2,4k/h
Reason for that was because people was so fascinated that there was a farm running in thais they started to kill them and steal bread

were you the group of purple mages in Hydera?

Furpan
10-26-2014, 09:52 AM
Nah, knights, Rowana xd

iMike
10-26-2014, 08:15 PM
Anyone doing this in Mortera?

Weathercock
10-27-2014, 04:37 AM
At first I thought Furpan was just trolling, but then I realize that depending on the level, this is actually pretty nice with multiple chars. running. Also, does this script treat an oven as a dp when running? i.e.: if a character is occupying an oven, does the script automatically switch to a different oven? I had a couple of other players throw troughs in front of the ovens and the game responded with "There is no way". Just my thought on the script. Very simple and profitable. Thanks for sharing. :o

Furpan
10-27-2014, 07:44 AM
At first I thought Furpan was just trolling, but then I realize that depending on the level, this is actually pretty nice with multiple chars. running. Also, does this script treat an oven as a dp when running? i.e.: if a character is occupying an oven, does the script automatically switch to a different oven? I had a couple of other players throw troughs in front of the ovens and the game responded with "There is no way". Just my thought on the script. Very simple and profitable. Thanks for sharing. :o
It does not switch ovens if occupied, it's possible to make multiple breads if all makers use a dough at the same time though, don't know if it's necessary to add
For the troughs/plants; Redownload v1.3 :]

---
Updated to v1.3
Returns to position if pushed at bread-, flour-, dough-stage
Anti-Idle is enabled if players are around when making bread
Moves any blocking item to a tile that's not occupied by another blocking item or a player
Moves to south of oven position before using any dough on the ovens to make bread

desche188
10-27-2014, 08:20 AM
It does not switch ovens if occupied, it's possible to make multiple breads if all makers use a dough at the same time though, don't know if it's necessary to add
For the troughs/plants; Redownload v1.3 :]

---
Updated to v1.3
Returns to position if pushed at bread-, flour-, dough-stage
Anti-Idle is enabled if players are around when making bread
Moves any blocking item to a tile that's not occupied by another blocking item or a player
Moves to south of oven position before using any dough on the ovens to make bread

this is the best thing i have ever seen.

Redspeare
10-27-2014, 02:27 PM
It does not switch ovens if occupied, it's possible to make multiple breads if all makers use a dough at the same time though, don't know if it's necessary to add
For the troughs/plants; Redownload v1.3 :]

---
Updated to v1.3
Returns to position if pushed at bread-, flour-, dough-stage
Anti-Idle is enabled if players are around when making bread
Moves any blocking item to a tile that's not occupied by another blocking item or a player
Moves to south of oven position before using any dough on the ovens to make bread

how much can you make a day?

Weathercock
10-27-2014, 07:19 PM
It does not switch ovens if occupied, it's possible to make multiple breads if all makers use a dough at the same time though, don't know if it's necessary to add
For the troughs/plants
Nah, I was just a little curious is all. The script's running fine for me.

Alexione
10-27-2014, 07:48 PM
Trying it out right now on a 140 knight :P.
Will let you know how it works

NeeP
10-27-2014, 09:00 PM
funny script, tested it, it works. But why would you make bread instead of botting trolls and then going rots etc? in the end this isnt profitable enough...

iMike
10-27-2014, 10:59 PM
What's this? :mad:

16:58 XenoScript Error:
Script: BreadMaker.lua
Line #: 67
Chunk: C:?XenoBot?Scripts??BREADM?2.LUA
Error: 'then' expected near 'Map'

Kociii
10-27-2014, 11:02 PM
funny script, tested it, it works. But why would you make bread instead of botting trolls and then going rots etc? in the end this isnt profitable enough...

This script is great if you have let's say been hacked and need a little start. Or if you start a new world, you can put this on for 1-2 days and have some extra cash ;) Then start botting

Furpan
10-27-2014, 11:44 PM
What's this? :mad:

16:58 XenoScript Error:
Script: BreadMaker.lua
Line #: 67
Chunk: C:?XenoBot?Scripts??BREADM?2.LUA
Error: 'then' expected near 'Map'

Oops, tried to clean up the code some, guess I forgot some stuff

NeeP
10-28-2014, 08:13 PM
This script is great if you have let's say been hacked and need a little start. Or if you start a new world, you can put this on for 1-2 days and have some extra cash ;) Then start botting

but in those 2 days I could also start botting thais trolls with starter eq that I get after Dawnport/Rookgard and on trolls I make idk 10k per day? thats probably more than making bread :P but i understand maybe if trolls is occupied by many others and alternatives like venore swamp trolls are taken, then yes xD

Weathercock
10-30-2014, 05:46 AM
but in those 2 days I could also start botting thais trolls with starter eq that I get after Dawnport/Rookgard and on trolls I make idk 10k per day? thats probably more than making bread :P but i understand maybe if trolls is occupied by many others and alternatives like venore swamp trolls are taken, then yes xD
It's great if your stamina is extremely low.

Stronghamer
10-30-2014, 06:49 AM
Keep getting this

23:27 XenoScript Error:
Script: BreadMaker.lua
Line #: 66
Chunk: C:?Users?******?1?DOCUME?1?XenoBot?Scripts??BREADM ?2.LUA
Error: unexpected symbol near 'then'
This is an error with user-input and should not be reported as a bug with XenoBot.



What am i doing wrong

Furpan
10-30-2014, 07:13 AM
Keep getting this

23:27 XenoScript Error:
Script: BreadMaker.lua
Line #: 66
Chunk: C:?Users?******?1?DOCUME?1?XenoBot?Scripts??BREADM ?2.LUA
Error: unexpected symbol near 'then'
This is an error with user-input and should not be reported as a bug with XenoBot.



What am i doing wrong

Too many 'then', fixed it, I'll run it through later to see if there's anything else I missed

NeeP
10-30-2014, 06:34 PM
It's great if your stamina is extremely low.

If my maker's stamina is low, I'd rather regain it by being offline on this char and creating a new char at trolls and later rotworms :) Profiting more!

Sorry mate, you can't win this discussion :D

J.Dre
11-01-2014, 09:18 PM
They deleted all of the ovens in Thais, lol. :D

Spectrus
11-01-2014, 09:31 PM
They deleted all of the ovens in Thais, lol. :D

No they didn't?
http://i.imgur.com/GlH4Myb.png

J.Dre
11-01-2014, 09:35 PM
No they didn't?
http://i.imgur.com/GlH4Myb.png

Must be the world event then. :( They're gone on Rowana.

Fleet
11-01-2014, 09:38 PM
Must be the world event then. :( They're gone on Rowana.

Are you sure they're not just trashed?

J.Dre
11-01-2014, 09:43 PM
Are you sure they're not just trashed?

http://i62.tinypic.com/1zvskcg.png

Furpan
11-01-2014, 09:45 PM
The kings festival or whatever the event is called, removes the ovens :[

test1234
11-04-2014, 07:37 AM
I'm testing this script right now, it looks wonderfull but i'm stuck at 1 spot all the time.
When the bot has made flour and gets to the water well , it fill's his bucket with water but it doesn't use the flour on the bucket of water.

test1234
11-04-2014, 07:43 AM
One other thing i notice, is that when he is baking his bread, the last bread he made is left on the hot stove.

Matildabot
11-04-2014, 03:52 PM
This script was made on Blackd proxy 4 years ago by me, nothing new but thanks for making it on xeno :)

Lucius66633s
11-05-2014, 01:26 PM
I'm testing this script right now, it looks wonderfull but i'm stuck at 1 spot all the time.
When the bot has made flour and gets to the water well , it fill's his bucket with water but it doesn't use the flour on the bucket of water.
When will you guys deal with this issue?

dezaodoido
01-21-2015, 03:00 PM
Very cool script.
Aparently some functions are DEPRECATED.
I Fixed it.

Here the new version:
http://pastebin.com/download.php?i=9Yh2GVrT


br?

Furpan
01-21-2015, 04:15 PM
Very cool script.
Aparently some functions are DEPRECATED.
I Fixed it.

Here the new version:
http://pastebin.com/download.php?i=9Yh2GVrT


br?

Appreciate it, however
local f = null
local w = null
if f ~= null and w ~= null then
should be
local f = nil
local w = nil
if f ~= nil and w ~= nil then

Also, why this? What if user is carrying a bag?
for i=0,20 do

Afaik, no functions in this script are deprecated, what functions were you thinking of?

dezaodoido
01-21-2015, 04:50 PM
Appreciate it, however
local f = null
local w = null
if f ~= null and w ~= null then
should be
local f = nil
local w = nil
if f ~= nil and w ~= nil then

Also, why this? What if user is carrying a bag?
for i=0,20 do

Afaik, no functions in this script are deprecated, what functions were you thinking of?

Yeah you right.
I'm not familiar with lua.

In the last code this part
for index, item in Container.GetFirst():iItems() do


The function Container.GetFirst():iItems() returned 0.
So the loop don't executed.
I assume they change this behavior.

I'll make the changed you pointed.
Thank you.

dezaodoido
01-21-2015, 04:59 PM
You can count the number of the slots with this code.

Container.GetFirst():ItemCount()+Container.GetFirs t():EmptySlots()

dezaodoido
01-21-2015, 05:05 PM
Here:
http://pastebin.com/download.php?i=riHPbGcT

dezaodoido
01-21-2015, 05:15 PM
I do not see this function
But does not matter.
http://xenobot.wikia.com/wiki/Container_ItemCapacity

mytholia
01-22-2015, 10:52 PM
Furpan Nice script only it doesn't make the dough unless i have a dough in my bp.

Ps. solved it by changing the script to keep 1 dough in my bp.

Rodrigofioritti
11-07-2016, 11:45 AM
Dont have waypoint in scripit, char no move! repair pls