Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cheapest way of making a perfect item!
#1
The cheapest way of making a perfect item is sometimes hard to know about. I wrote down a mathematical way of solving this problem in Common Lisp for some time ago, but then making pretty gui and stuff did not happen for some time. Today, when looking through my stuff on this computer, I noticed the folder with this data, and decided to convert it to PHP.

Link here

The script's pretty straightforward, and most people should understand how this works. If you don't want to include e.g. white scrolls because they are too rare, then you can simply untick the box saying that you want to include white scrolls.

For people bored of writing down the zeroes, you can omit so if you want to. Say you want 9 scrolls on your two-handed sword. Instead of writing that a sword costs 40,000,000 per, that a white scroll costs 200,000,000, a dark scroll cost 18,000,000 and that a 10% costs 2,000,000, then we have a simpler way of doing this. Just write 40, 200, 18 and 2. Then your answer will come in millions.

Please be aware of two things when using this calculator:
  • It shows the estimated amount of money used. That is, what one would on average would use to get a perfect equip.
  • Some answers may be pricey. Keep in mind that this is the amount of money you have to pay in order to get the weapon for the cheapest amount of money. This does not include the sale of eventual almost-perfect items.

Oh and yeah, updates for this thing? Maybe. Adding in chaos scrolls would be possible, and clean slating slots could also be included here, though this would require more manipulation of values than what I've done as of right now. But it's possible, of course it is.

Enjoy! (Oh and yeah, the GUI's simple)

Noah
Reply
#2
I keep getting a "All inputs should be integers" message when I try calculating

This is with 30% scrolls checked white scrolls unchecked and 10% scrolls unchecked
Reply
#3
Kurtle Wrote:I keep getting a "All inputs should be integers" message when I try calculating

Hmm, I think I see the problem. Have you filled in all the boxes? If not, it'll force you to (Even disabled boxes. Give me a second).

Edit: Should be somewhat fixed now. Just don't leave any box completely empty.

Noah
Reply
#4
Put numbers in all fields as zero, then populate as you so choose. Noah made it so all fields had to be populated.
Reply
#5
It also gives that integer error if you use a decimal point in any of the fields.
Reply
#6
Well considering they are all supposed to be integer inputs.
Reply
#7
So the cheapest way for me to scroll a perfect reverse engaw using 60% scrolls only would cost 16,378,924,326 mesos, and 2,790,833,334 mesos using white scrolls.

Neither way is cheap Frown
Reply
#8
byakugan Wrote:So the cheapest way for me to scroll a perfect reverse engaw using 60% scrolls only would cost 16,378,924,326 mesos, and 2,790,833,334 mesos using white scrolls.

Neither way is cheap Frown

Just remember, that numbers are /never/ exact.
Goggleemoticon
Reply
#9
This is fun, but it's all still random. I failed ten 10% Claw with White Scrolls on my claw, I don't really fit into your program.
Reply
#10
Interesting calculator.
Reply
#11
y0y0y0y0shi0 Wrote:Just remember, that numbers are /never/ exact.
Goggleemoticon
Yeah, but 16b and 2b are very different expected values.
Reply
#12
If you update this, add 15/65% scrolls with a selectable limit for reverse items/other untradeables due to the event coming up soon :o
Reply
#13
Also, it just occurred to me that this can be used in interesting ways.

You can have it calculate the cheapest way to get 3 10/30%'s, then use the result as the item price and do 4 60/70%'s.
Reply
#14
Which event, Cyanne?
Reply
#15
Wow... If I tried to make a perfect Reverse Equinox (the knuckle), this is what it'd cost...

(Forging the knuckle taking 50,000,000 mesos and each scroll costing 5,000,000 each.)

Results from your parsing:
1.30% scroll
2.30% scroll
3.30% scroll
4.30% scroll
5.30% scroll
6.30% scroll
7.30% scroll

The upper list will be the most efficient (in your case) for making a perfect item.
The total price will on average be on 261,277,069,045 mesos.
On average, 6,531 30% scrolls will be used, costing a total of 32,655,000,000 mesos.
On average, 0 10% scrolls will be used, costing a total of 0 mesos.
You will also use, on average, 0 white scrolls, costing a total of 0 mesos.
As a final note, you'll on average use 4573 items, costing a total of 228,650,000,000 mesos.



And 7 60%s would be :

(Again, the knuckle costing 50m and each scroll costing 1m each)

Results from your parsing:
1.60% scroll
2.60% scroll
3.60% scroll
4.60% scroll
5.60% scroll
6.60% scroll
7.60% scroll

The upper list will be the most efficient (in your case) for making a perfect item.
The total price will on average be on 1,786,122,543 mesos.
On average, 0 70% scrolls will be used, costing a total of 0 mesos.
On average, 87 60% scrolls will be used, costing a total of 0 mesos.
You will also use, on average, 0 white scrolls, costing a total of 0 mesos.
As a final note, you'll on average use 36 items, costing a total of 1,800,000,000 mesos.



CHEAP!? I DON'T THINK SO! Sad
Reply
#16
OB3LISK Wrote:This is fun, but it's all still random. I failed ten 10% Claw with White Scrolls on my claw, I don't really fit into your program.

The keyword here is average (or, being more exact, expected value). If you want to scroll an item perfect infinite times, this will be the cheapest way to do so. You might get lucky on one try and hit some 30%s in a row, making it easier to make the item perfect, but the calculator calculates the cheapest way of making that item on average.

Heliocentric Wrote:Interesting calculator.

Thank you! Smile

Cyanne Wrote:If you update this, add 15/65% scrolls with a selectable limit for reverse items/other untradeables due to the event coming up soon :o

Adding in 15% and 65% is fully possible, but those are untradeable, correct? So if I get you right, then you want me to add in a possibility to use 15% and/or 65%, but just a limited amount of them? Hmm...

I'll see what I can do, but that seems to be a rather nifty issue. I have to deliver some math-report today, so I can't really work with it atm.

Russt Wrote:Also, it just occurred to me that this can be used in interesting ways.

You can have it calculate the cheapest way to get 3 10/30%'s, then use the result as the item price and do 4 60/70%'s.

Hmm, actually I never thought of that, but the output will be correct, indeed.

Noah
Reply
#17
For the 15/65% scroll thing, there's a limit of 25 scrolls per character over the entire event, so adding a limit could be useful to those who have untradeable items like equipped reverse items, lunchbox, locked items, etc. and who might choose and mix and match scroll upgrades. For everything else though, items can just be legendary spirited on a mule, so there's really no limit for tradeable items.

Kitteh Wrote:Which event, Cyanne?

Spirit week event next patch.
Reply
#18
Noah Wrote:The keyword here is average (or, being more exact, expected value). If you want to scroll an item perfect infinite times, this will be the cheapest way to do so. You might get lucky on one try and hit some 30%s in a row, making it easier to make the item perfect, but the calculator calculates the cheapest way of making that item on average.

This....is what I was trying to get at by "not always exact"
For all you know, you could /never/ get a perfect scrolled item. And then, at the same time, it could take you 5 minutes (cheapest possible) to get it. You never know.
Reply
#19
y0y0y0y0shi0 Wrote:This....is what I was trying to get at by "not always exact"
For all you know, you could /never/ get a perfect scrolled item. And then, at the same time, it could take you 5 minutes (cheapest possible) to get it. You never know.

Search wikipedia for expected value, read more about probability and statistics.
Reply
#20
That is rather depressing.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)