Jump to content

New special calc suggestion


Recommended Posts

Hi All!!!!

 

This is my first post but have been using this site for awhile and would like to say A+++++++ the site is awesome

keep up the great work :thumbsup:

 

This is my suggestion, the potions table in the herblore skill guide is great but how about creating a new potion calc with

GE compare so that users know exactly how much the cost of the herb the secondary ingredient/s + vial of water or

swamp tar is in relation to current price on the GE, this would be similar to the high alch calc where as it would show the

exact profit/loss when creating the potion in comparison to the latest prices on the GE, users would then be able to figure

out the most cost effective way to train herblore in relation to experience gained this would be a great tool because everyone

knows herblore isn't the cheapest or easiest skill to train

 

Well thats my suggestion :rolleyes:

 

Anyone else want to see this become a reality??? :thumbsup:

Link to comment
Share on other sites

Hello Kissmyassist, welcome to the forums, what a wonderful name you have.

 

Your idea is quite cool and useful, I think. You would basically like a Herblore calculator (or planner) that also shows you how much money you'd spend on raw materials and how much you'd earn back from potions made, such that you can figure out how big of an impact it'd have on your personal wealth, right?

 

Adding such a feature to the existing calculators wouldn't be particularly easy, as they're built around the general principle that all of them produce the same output, more or less. Adding it as a "special calculator" would be an option, I suppose. I'll write it down somewhere, you might see it pop up in future :)

Link to comment
Share on other sites

  • 2 weeks later...

I've made this calc a while back:

http://wina2.ugent.be/~ivoos/cgi-bin/herb.cgi

 

It updates the prices once a day and calculates the gp spent per xp. I forgot restore special potions, and I may add unfinished potions too if people like it :)

The update takes a while because it has to get all of the prices from the GE and there is no text-only GE like there is for the highscores, as far as I know of. That only happens once a day though, if it doesn't have to download the prices, it's quite quick.

 

 

Edit: if you want to use it on the tip.it site, just let me know and I'll add restore spec pots and unfinished potions. I'll also speed it up a bit since I used to be the only one using it and performance wasn't really that important. Just lemme know.

Edit2: I know some potions are missing, but if I recall correctly, those are the potions that require untradeable ingredients. Anyway, for all practical purposes, this calc should do. It got me to 99 :)

ivo2pe7.gif

http://www.tip.it/runescape/?herb

^^ A herblore cost/xp calculator. Any feedback would be greatly appreciated. Cleaning herbs has the values switched at the moment, but the fix has been submitted.

Link to comment
Share on other sites

Hello Ivoos, welcome to the forums, and thank you for your generous offer.

 

I'm guessing that Kissmyassist would also like to find out how many potions he needs to make to reach a certain level. Your calculator allows a user to quickly look up how much making a certain potion would cost him, which he could then multiply by the amount he'd need to make. Ideally, we'd like to incorporate all of this into one big calculator that basically does all the work for you, and shows you everything you want to know with a single click.

Link to comment
Share on other sites

Hello Ivoos, welcome to the forums, and thank you for your generous offer.

 

I'm guessing that Kissmyassist would also like to find out how many potions he needs to make to reach a certain level. Your calculator allows a user to quickly look up how much making a certain potion would cost him, which he could then multiply by the amount he'd need to make. Ideally, we'd like to incorporate all of this into one big calculator that basically does all the work for you, and shows you everything you want to know with a single click.

Sounds reasonable :) Like I said, it's a pretty crude version that I used to get my herblore up, it's not really designed to be aesthetic or even used by others :P

 

I've been thinking about adding that too, but I mainly made the calculator to practice some Python for school. I haven't really gotten around to looking at how arguments are passed in the html(/cgi?) from the textbox to the python script.

I have a week or 2 spare before the new semester starts so I'd be more than happy to add to the calc.

 

Would it be possible to get the (html/cgi) source for one the calculators you use? Mainly because it will save me a lot of googling, but it'd probably be easier to incorporate into the site once it's done and look more like the house-style.

 

Edit: preferably a calc that has a "get stats" button, I'll add a goal level box too with the cost for each potion to get it.

 

Edit2: I also imagine you prefer a database over a text file to store the prices?

ivo2pe7.gif

http://www.tip.it/runescape/?herb

^^ A herblore cost/xp calculator. Any feedback would be greatly appreciated. Cleaning herbs has the values switched at the moment, but the fix has been submitted.

Link to comment
Share on other sites

Sounds reasonable :) Like I said, it's a pretty crude version that I used to get my herblore up, it's not really designed to be aesthetic or even used by others :P

I know what you mean. Back in the day I used a little tool to help me out with calculator data, but after looking at it recently it took me quite a while to even figure out how it worked :-X

 

I've been thinking about adding that too, but I mainly made the calculator to practice some Python for school. I haven't really gotten around to looking at how arguments are passed in the html(/cgi?) from the textbox to the python script. I have a week or 2 spare before the new semester starts so I'd be more than happy to add to the calc.

 

Would it be possible to get the (html/cgi) source for one the calculators you use? Mainly because it will save me a lot of googling, but it'd probably be easier to incorporate into the site once it's done and look more like the house-style.

 

Most of our calculators (possibly all of them) use a combination of HTML and Javascript. It's all right there when you view the source of a page. For example, for our herblore calculator, the code relevant to the calculator can be found between lines 235 to 593. In addition, all skill calculators share a Javascript file that handles generic calculations and output generation (tipcalc.js).

 

Edit: preferably a calc that has a "get stats" button, I'll add a goal level box too with the cost for each potion to get it.

Edit2: I also imagine you prefer a database over a text file to store the prices?

While the herblore calculator has a get stats button, I'm not too sure on how that bit actually works. As far as I know the name you put in is passed to "store_userdata.php" which then bakes a cookie. Extracting the relevant information from the cookie is done in the tipcalc script (see tipstats function).

 

I'd imagine that our GE centre runs off a database, so we'd probably be able to use this database for the calculator too.

Link to comment
Share on other sites

Ok thanks, that should help me make about 90% of the calculator.

I'll just add enough comments to show where the numbers should be gotten from the database.

 

The biggest part of the calculator is downloading and parsing the GE site, that's kind of useless now :P

I have nothing better to do right now, so I think it should be done somewhere next week. I was actually thinking of doing something similar for summoning, to keep busy, but this is even better since it'll help others :)

ivo2pe7.gif

http://www.tip.it/runescape/?herb

^^ A herblore cost/xp calculator. Any feedback would be greatly appreciated. Cleaning herbs has the values switched at the moment, but the fix has been submitted.

Link to comment
Share on other sites

It appears I couldn't use a single line of code from the calculator I made :P

I made a new one, but it's still showing some flaws. The biggest flaw is that big number won't show right, but I'm working on it.

 

http://wina2.ugent.be/~ivoos/tipit/herb.php

 

Ideas/suggestions?

Should I keep the cost and price like that, or show the average too somewhere?

 

Edit: by big numbers, I mean anything above level 40 :/

ivo2pe7.gif

http://www.tip.it/runescape/?herb

^^ A herblore cost/xp calculator. Any feedback would be greatly appreciated. Cleaning herbs has the values switched at the moment, but the fix has been submitted.

Link to comment
Share on other sites

Looks great :)

 

Showing any more information would probably end up breaking the page layout on smaller resolutions, so I'd say it's fine like this.

 

Total cost to goal seems to break as soon as you need to make more than 1000 of an item.

Link to comment
Share on other sites

Total cost to goal seems to break as soon as you need to make more than 1000 of an item.

Thank you! I didn't notice it had anything to do with the number of items, I thought the number was too big. Found the error and that part is working now too.

 

I'll just make some minor adjustments, -300 - 300 doesn't really look good...

 

Can I pm you the code when I'm done? All that needs to happen now is getting real numbers for the variables by putting in a few dozen sql queries.

 

 

 

Edit: if anyone wants to use it already, don't. Half the numbers are made up.

ivo2pe7.gif

http://www.tip.it/runescape/?herb

^^ A herblore cost/xp calculator. Any feedback would be greatly appreciated. Cleaning herbs has the values switched at the moment, but the fix has been submitted.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.