Member
Posts: 146
Threads: 10
Joined: 2009-03
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
Posting Freak
Posts: 2,667
Threads: 77
Joined: 2008-08
Gender: Male
Sexual Orientation: Gay
Country Flag: Maryland
Server: Funny
Level: and
Job: Attractive
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
Member
Posts: 146
Threads: 10
Joined: 2009-03
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
Test Mushroom
Posts: 10,045
Threads: 1,506
Joined: 2008-06
Gender: Male
Sexual Orientation: Straight
Country Flag: usa
IGN: GuavaCowboy
Server: Zenith
Level: 10x
Job: Jett
Guild: L>
Put numbers in all fields as zero, then populate as you so choose. Noah made it so all fields had to be populated.
Senior Member
Posts: 250
Threads: 17
Joined: 2008-08
Gender: Male
Sexual Orientation: Straight
Country Flag: usa
IGN: Jaredx3
Server: Bera
Job: Night Lord
Farm: Leningrad
It also gives that integer error if you use a decimal point in any of the fields.
Member
Posts: 110
Threads: 3
Joined: 2008-07
Well considering they are all supposed to be integer inputs.
Posting Freak
Posts: 4,045
Threads: 73
Joined: 2008-07
Gender: Male
2009-09-13, 07:45 PM
(This post was last modified: 2009-09-13, 07:47 PM by byakugan.)
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
Posting Freak
Posts: 3,185
Threads: 76
Joined: 2008-12
Gender: Male
Sexual Orientation: Bi
IGN: y0y0y0y0shi0
Server: Mardia
Level: 98
Job: Priest
Guild: Fateless
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 
Just remember, that numbers are /never/ exact.
Posting Freak
Posts: 2,426
Threads: 88
Joined: 2009-06
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.
Member
Posts: 108
Threads: 18
Joined: 2008-08
Posting Freak
Posts: 4,302
Threads: 256
Joined: 2008-07
Gender: Male
Level: 251
y0y0y0y0shi0 Wrote:Just remember, that numbers are /never/ exact.
 Yeah, but 16b and 2b are very different expected values.
Posting Freak
Posts: 2,530
Threads: 68
Joined: 2008-07
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
Posting Freak
Posts: 4,302
Threads: 256
Joined: 2008-07
Gender: Male
Level: 251
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.
Senior Member
Posts: 529
Threads: 25
Joined: 2009-08
Posting Freak
Posts: 9,625
Threads: 523
Joined: 2008-09
2009-09-13, 10:38 PM
(This post was last modified: 2009-09-13, 10:40 PM by Link.)
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!
Member
Posts: 146
Threads: 10
Joined: 2009-03
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!
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
Posting Freak
Posts: 2,530
Threads: 68
Joined: 2008-07
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.
Posting Freak
Posts: 3,185
Threads: 76
Joined: 2008-12
Gender: Male
Sexual Orientation: Bi
IGN: y0y0y0y0shi0
Server: Mardia
Level: 98
Job: Priest
Guild: Fateless
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.
Posting Freak
Posts: 6,052
Threads: 182
Joined: 2008-07
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.
Member
Posts: 105
Threads: 8
Joined: 2008-07
Gender: Male
Country Flag: australia
IGN: MonkyMagic
Server: Scania
Level: 210
Job: FP Arch Mage
Guild: >3 LOL
That is rather depressing.
|