Herb Profit Calculator menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    aznboy's Avatar Active Member
    Reputation
    45
    Join Date
    Jun 2007
    Posts
    807
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Profession Calculator

    I have stop using the java version since I couldn't compile the program correctly. I just redid it using C#.



    Download:
    Profession Calculator(2).exe

    Purpose of this program:
    Taking the stack of the herb you gather and finding which way will give you the most profit out of it.
    As the picture is show, it will take the stack and the price of the Auction House currently and combining it to the result.
    But if you don't want to go that way and want to go with Inscription, it will combine the stack of herbs you have and getting data from wowhead.com, each time you mill would either give you 2-3 of the shadow pigment.(Not including Bountiful Bag as it's random.)
    The last one is enchanting. The shoulder enchant Secret Tiger Fang Inscription - Spell - World of Warcraft which are BoP would sell for 18g a stack and given that it only takes 3 to make them, the program will take the data it has and give you the profits.

    When entering the gold, put the silver as a cent.
    Currently not working:
    Mode Selection from Mining to Herb.
    Will be updating:
    Having an enchant/mine window.
    If you guys have any suggestion, please post any.

    For those that know how to compile it for me. Here is the source code to it

    Code:
    import java.awt.*;
    import javax.swing.*;
    
    import java.awt.event.*;
    
    
    
    public class MainFrame extends JFrame
    {
    	private String win1, win2;
    	JTextField snow;
    	JTextField rain;
    	JTextField silk;
    	JTextField fool;
    	JTextField green;
    	JTextField stack;
    	JTextField stack2;
    	JTextField stack3;
    	JTextField stack4;
    	JTextField stack5;
    	JTextField stackHerb;
    	JFrame window;
    	JTextField herbResult;
    	JFrame herbalisims;
    	JFrame mineore;
    	JRadioButtonMenuItem herb;
    	JRadioButtonMenuItem mine;
    	
    	public MainFrame(String title)
    	{
    		JMenuBar file = new JMenuBar();
    		file.add(fileMenu());
    		file.add(proMenu());
    		file.add(aboutMenu());
    		setJMenuBar(file);
    		
    		
    		setTitle(title);
    		setResizable(false);
    		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    		window();
    		pack();
    		setVisible(true);	
    		
    	}
    
    	public JMenu proMenu()
    	{
    		
    		JMenu mode = new JMenu("Mode");
    		JRadioButtonMenuItem herb = new JRadioButtonMenuItem("Herbalisim");
    		herb.setMnemonic(KeyEvent.VK_U);
    		herb.addActionListener(new MenuClick());
    		mode.add(herb);
    		mode.addSeparator();
    		JRadioButtonMenuItem mine = new JRadioButtonMenuItem("Mine");
    		mine.setMnemonic(KeyEvent.VK_U);
    		mine.addActionListener(new MenuClick());
    		mode.add(mine);
    		
    		
    		return mode;
    	}
    	
    	public JMenu aboutMenu()
    	{
    		JMenu about = new JMenu("Info");
    		JMenuItem creator = new JMenuItem("About");
    		creator.addActionListener(new ActionListener()
    		{
    			public void actionPerformed(ActionEvent e)
    			{
    				JOptionPane.showMessageDialog(null, "This program is brought to you by Aznboy @ Ownedcore.com");
    			}
    		});
    		about.add(creator);
    		
    		return about;
    	}
    	
    	public class MenuClick implements ActionListener
    	{
    		public void actionPerformed(ActionEvent e)
    		{
    			
    			if(herb.isSelected())
    			{
    				mineore.setVisible(false);
    				herbalisims.setVisible(true);
    				JOptionPane.showMessageDialog(null, "Currently not avaliable. Updating soon.");
    				
    			}
    			if(mine.isSelected())
    			{
    				herbalisims.setVisible(false);
    				mineore.setVisible(true);
    				JOptionPane.showMessageDialog(null, "Currently not avaliable. Updating soon.");
    			}
    		}
    	}
    	public JMenu fileMenu()
    	{
    		JMenu menu = new JMenu("File");
    		JMenuItem save = new JMenuItem("Save");
    		save.addActionListener(new ActionListener()
    		{
    			public  void actionPerformed(ActionEvent e)
    			{
    				System.out.println("File has been saved");
    			}
    		});
    		menu.add(save);
    		menu.addSeparator();
    		
    		JMenuItem close = new JMenuItem("Close");
    		close.addActionListener(new ActionListener()
    		{
    			public void actionPerformed(ActionEvent e)
    			{
    				System.exit(0);
    				System.out.println("File has been closed");
    			}
    		});
    		
    		menu.add(close);		
    		return menu;
    	}
    	
    	
    	public void mineWindow()
    	{
    		JFrame mineore = new JFrame();
    		JPanel mine = new JPanel();
    		mine.setLayout(new GridLayout(12,2));
    		mine.setBorder(BorderFactory.createTitledBorder("Raw Stack of ore"));
    		
    		mineore.add(mine);
    		
    		add(mine, BorderLayout.WEST);
    		
    	}
    	public void window()
    	{
    		JFrame herbalisims = new JFrame();
    		JPanel herb = new JPanel();
    		herb.setLayout(new GridLayout(12,2));
    		herb.setBorder(BorderFactory.createTitledBorder("Raw Stack Herb"));
    		final JTextField fool = new JTextField();
    		final JTextField stack5 = new JTextField();
    		final JTextField snow= new JTextField();
    		final JTextField stack = new JTextField();
    		final JTextField green = new JTextField();
    		final JTextField stack2 = new JTextField();
    		final JTextField rain = new JTextField();
    		final JTextField stack3 = new JTextField();
    		final JTextField silk = new JTextField();
    		final JTextField stack4 = new JTextField();
    		
    		JPanel result = new JPanel();
    		result.setLayout(new GridLayout(12,2));
    		result.setBorder(BorderFactory.createTitledBorder("Result"));
    		final JTextField herbResult = new JTextField();
    		final JTextField mininscriptionResult = new JTextField();
    		final JTextField minenchantResult = new JTextField();
    		final JTextField maxenchantResult = new JTextField();
    		final JTextField maxinscriptionResult = new JTextField();
    		
    		JPanel inscription = new JPanel();
    		inscription.setLayout(new GridLayout(12,2));
    		final JTextField stackHerb = new JTextField();
    		final JTextField price = new JTextField();
    		final JTextField min = new JTextField();
    		final JTextField max = new JTextField();
    		final JTextField mist = new JTextField();
    		final JTextField mistpro = new JTextField();
    		final JTextField stragold = new JTextField();
    		JButton calculate = new JButton("Calculate Inscription");
    		
    		JButton calculateRaw = new JButton("Calculate Herbalisim");
    		
    		herb.add(new JLabel("Stack of SnowLily: ", JLabel.RIGHT));
    		herb.add(snow);
    		snow.setText("0");
    		herb.add(new JLabel("Price per stack: ",JLabel.RIGHT));
    		herb.add(stack);
    		stack.setText("0");
    		herb.add(new JLabel("Stack of Green Leaf Tea: ", JLabel.RIGHT));
    		herb.add(green);
    		green.setText("0");
    		herb.add(new JLabel("Price per stack: ", JLabel.RIGHT));
    		herb.add(stack2);
    		stack2.setText("0");
    		stack.setText("0");
    		herb.add(new JLabel("Stack of Rain Poppy: ", JLabel.RIGHT));
    		herb.add(rain);
    		rain.setText("0");
    		herb.add(new JLabel("Price per stack: ", JLabel.RIGHT));
    		herb.add(stack3);
    		stack3.setText("0");
    		herb.add(new JLabel("Stack of Silkweed: ", JLabel.RIGHT));
    		herb.add(silk);
    		silk.setText("0");
    		herb.add(new JLabel("Price per stack: ", JLabel.RIGHT));
    		herb.add(stack4);
    		stack4.setText("0");
    		herb.add(new JLabel("Stack of Fool's Cap:", JLabel.RIGHT));
    		herb.add(fool);
    		fool.setText("0");
    		herb.add(new JLabel("Price per stack: ", JLabel.RIGHT));
    		herb.add(stack5);
    		stack5.setText("0");
    		herb.add(calculateRaw);
    		calculateRaw.addActionListener(new ActionListener()
    		{
    			public void actionPerformed(ActionEvent e)
    			{
    				String input,input2,input3,input4,input5,input6,input7,input8,input9,input10;
    				double herb,herb2,herb3,herb4,herb5;
    				double gold,gold2,gold3,gold4,gold5;
    				double price,price2,price3,price4,price5;
    				double total, totalStack;
    				
    				input = snow.getText();
    				input2 = stack.getText();
    				input3 = green.getText();
    				input4 = stack2.getText();
    				input5 = rain.getText();
    				input6 = stack3.getText();
    				input7 = silk.getText();
    				input8 = stack4.getText();
    				input9 = fool.getText();
    				input10 = stack5.getText();
    				
    				
    				herb = Double.parseDouble(input);
    				gold = Double.parseDouble(input2);
    				herb2 = Double.parseDouble(input3);
    				gold2 = Double.parseDouble(input4);
    				herb3 = Double.parseDouble(input5);
    				gold3 = Double.parseDouble(input6);
    				herb4 = Double.parseDouble(input7);
    				gold4 = Double.parseDouble(input8);
    				herb5 = Double.parseDouble(input9);
    				gold5 = Double.parseDouble(input10);
    				
    				price = herb * gold;
    				price2 = herb2 * gold2;
    				price3 = herb3 * gold3;
    				price4 = herb4 * gold4;
    				price5 = herb5 * gold5;
    				
    				
    				total = price + price2 + price3 + price4 + price5;
    				
    				totalStack = herb + herb2 + herb3 + herb4 + herb5;
    				
    				win1 = Double.toString(total);
    				win2 = Double.toString(totalStack);
    				
    				herbResult.setText("Gold: " + win1);
    				stackHerb.setText(win2);
    			}
    		});
    		
    		
    		inscription.add(new JLabel("Number of Stack: ", JLabel.RIGHT));
    		inscription.add(stackHerb);
    		stackHerb.setText("0");
    		stackHerb.setEditable(false);
    		inscription.setBorder(BorderFactory.createTitledBorder("Inscription"));
    		inscription.add(new JLabel("Minimum of Ink of Dream: ",JLabel.RIGHT));
    		inscription.add(min);
    		min.setText("0");
    		min.setEditable(false);
    		
    		inscription.add(new JLabel("Maximum of Ink of Dream: ", JLabel.RIGHT));
    		inscription.add(max);
    		max.setText("0");
    		max.setEditable(false);
    		
    		inscription.add(new JLabel("Price for each Ink of Dream: ", JLabel.RIGHT));
    		inscription.add(price);
    		price.setText("0");
    		inscription.add(new JLabel("Number of Misty Pigment(if mill)", JLabel.RIGHT));
    		inscription.add(mist);
    		mist.setText("0");
    		inscription.add(new JLabel("Number of Starlight ink", JLabel.RIGHT));
    		inscription.add(mistpro);
    		mistpro.setEditable(false);
    		mistpro.setText("0");
    		inscription.add(new JLabel("Price fo each Starlight ink: ", JLabel.RIGHT));
    		inscription.add(stragold);
    		stragold.setText("0");
    		
    		inscription.add(new JLabel("  ", JLabel.RIGHT));
    		inscription.add(new JLabel("  ", JLabel.RIGHT));
    		inscription.add(new JLabel("  ", JLabel.RIGHT));
    		inscription.add(new JLabel("  ", JLabel.RIGHT));
    		inscription.add(new JLabel("  ", JLabel.RIGHT));
    		inscription.add(calculate);
    		calculate.addActionListener(new ActionListener()
    		{
    			public void actionPerformed(ActionEvent e)
    			{
    				String sinput1, sinput2, sinput3, sinput4;
    				double sprice, sprice2, sprice3, sprice4;
    				double minimum, maximum, numstar, enchantMats, enchantMats2, minnumber, maxnumber;
    				String sinsrciptioninput, sinscriptioninput2, numberstar, enchantprofit, enchantprofit2, maxprofit, minprofit;
    				
    				sinput1 = stackHerb.getText();
    				sprice = Double.parseDouble(sinput1);
    				
    				minimum = ((sprice * 4)*2)/2;
    				maximum = ((sprice * 4)*3)/2;
    				
    				sinsrciptioninput = Double.toString(minimum);
    				sinscriptioninput2 = Double.toString(maximum);
    				
    				min.setText(sinsrciptioninput);
    				max.setText(sinscriptioninput2);
    				
    				sinput2 = price.getText();
    				sprice2 = Double.parseDouble(sinput2);
    				
    				sinput3 = mist.getText();
    				sprice3 = Double.parseDouble(sinput3);
    				
    				numstar = sprice3/2;
    				numberstar = Double.toString(numstar);
    				
    				mistpro.setText(numberstar);
    				
    				sinput4 = stragold.getText();
    				sprice4 = Double.parseDouble(sinput4);
    				
    				enchantMats = (minimum/3)*18;
    				enchantMats2 = (maximum/3)*18;
    				
    				enchantprofit = Double.toString(enchantMats);
    				enchantprofit2 = Double.toString(enchantMats2);
    				
    				minenchantResult.setText("Gold: " + enchantprofit);
    				maxenchantResult.setText("Gold: " + enchantprofit2);
    				
    				minnumber = (numstar * sprice4) + (minimum * sprice2);
    				maxnumber = (numstar * sprice4) + (maximum * sprice2);
    				
    				minprofit = Double.toString(minnumber);
    				maxprofit = Double.toString(maxnumber);
    				
    				mininscriptionResult.setText("Gold: " + minprofit);
    				maxinscriptionResult.setText("Gold: " + maxprofit);
    				
    			}
    		});
    		
    		
    		result.add(new JLabel("Herb Result: ", JLabel.RIGHT));
    		result.add(herbResult);
    		herbResult.setEditable(false);
    		herbResult.setText("Gold: " + "0");
    		repaint();
    		
    		result.add(new JLabel("Minimum Inscription Result: ", JLabel.RIGHT));
    		result.add(mininscriptionResult);
    		mininscriptionResult.setEditable(false);
    		mininscriptionResult.setText("0");
    		result.add(new JLabel("Maximum Inscription Result: ", JLabel.RIGHT));
    		result.add(maxinscriptionResult);
    		maxinscriptionResult.setEditable(false);
    		maxinscriptionResult.setText("0");
    		result.add(new JLabel("Minimum Enchant Result(if vendoring BoP): ", JLabel.RIGHT));
    		result.add(minenchantResult);
    		minenchantResult.setText("0");
    		minenchantResult.setEditable(false);
    		result.add(new JLabel("Maximum Enchant Result(if vendoring BoP): ", JLabel.RIGHT));
    		result.add(maxenchantResult);
    		maxenchantResult.setText("0");
    		maxenchantResult.setEditable(false);
    		
    		herbalisims.add(herb);
    		
    		add(herb, BorderLayout.WEST);
    		add(inscription, BorderLayout.CENTER);
    		add(result, BorderLayout.EAST);
    	}
    
    	public static void main(String[] args)
    	{
    	new MainFrame("Herb v2.0");
    	}
    }
    Last edited by aznboy; 02-01-2013 at 04:42 PM.

    Herb Profit Calculator
  2. #2
    Logandros's Avatar Member
    Reputation
    8
    Join Date
    Apr 2009
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Haven't had a chance to try this yet but wanted to say thanks... certainly looks like a useful tool. Will probably experiment over the weekend.

  3. #3
    TehVoyager's Avatar I just love KuRIoS
    Reputation
    1282
    Join Date
    Nov 2010
    Posts
    2,733
    Thanks G/R
    85/470
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    imgur: the simple image sharer

    Y U TEASE ME LIKE DIS


    (don't post things I post to Patreon.)

  4. #4
    WoWAdvantage4Life's Avatar Banned
    Reputation
    7
    Join Date
    Oct 2012
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hmm i finna give this a go

  5. #5
    ev0's Avatar ★ Elder ★ murlocs.com

    CoreCoins Purchaser Authenticator enabled
    Reputation
    1850
    Join Date
    Jul 2012
    Posts
    2,737
    Thanks G/R
    313/377
    Trade Feedback
    16 (100%)
    Mentioned
    7 Post(s)
    Tagged
    7 Thread(s)
    Is there a source available? I'd love to learn how you did it + try it for mining.

  6. #6
    aznboy's Avatar Active Member
    Reputation
    45
    Join Date
    Jun 2007
    Posts
    807
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sure I ll upload my source... As for the error guys. I ll try to fix that. Some reason when it is compiling messing up for some reason.

  7. #7
    log's Avatar Member
    Reputation
    1
    Join Date
    Oct 2008
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I was just thinking of something like this today. Downloaded it and tried your project out... this is awesome!! Even better when mining works!

  8. #8
    VizToN's Avatar Knight
    Reputation
    29
    Join Date
    Mar 2012
    Posts
    191
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This looks awesome! What program can I use to open the file?

  9. #9
    aznboy's Avatar Active Member
    Reputation
    45
    Join Date
    Jun 2007
    Posts
    807
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by VizToN View Post
    This looks awesome! What program can I use to open the file?
    I am trying to make it a runnable jar file so all you would need is just have java install on your computer,but i am currently having a problem with the compile so what you can do is use netbean or eclipse (Free software IDE) and just create a new project and name the class MainFrame (Case sensitive) and you can run the program like that too.

  10. #10
    aznboy's Avatar Active Member
    Reputation
    45
    Join Date
    Jun 2007
    Posts
    807
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Snicklesworth View Post
    Is there a source available? I'd love to learn how you did it + try it for mining.
    I'll update with the mine code if you're interest about it. I am just currently in school atm

  11. #11
    skeletonboy360's Avatar Active Member
    CoreCoins Purchaser
    Reputation
    36
    Join Date
    Apr 2012
    Posts
    370
    Thanks G/R
    4/14
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Aw man, wheres the download

  12. #12
    aznboy's Avatar Active Member
    Reputation
    45
    Join Date
    Jun 2007
    Posts
    807
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The program wasn't working so I had to take it down. Don't know why it's not working for you guys. But if anyone want to test it out. I uploaded one that I compile with apache ant. Don't know if it's working or not since my JVM crash on me.

    Testing Calculator.jar

  13. #13
    ayusowyontba's Avatar Banned
    Reputation
    5
    Join Date
    Sep 2012
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    bump ^_^ ~~~

  14. #14
    ev0's Avatar ★ Elder ★ murlocs.com

    CoreCoins Purchaser Authenticator enabled
    Reputation
    1850
    Join Date
    Jul 2012
    Posts
    2,737
    Thanks G/R
    313/377
    Trade Feedback
    16 (100%)
    Mentioned
    7 Post(s)
    Tagged
    7 Thread(s)
    Any updates on this?

  15. #15
    pqs's Avatar Contributor
    Reputation
    212
    Join Date
    Jan 2009
    Posts
    522
    Thanks G/R
    9/10
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    can anyone get this to work? Would really appreciate it. I can +Rep x4

Page 1 of 2 12 LastLast

Similar Threads

  1. RMAH Profit Calculator
    By aminios in forum Diablo 3 Bots and Programs
    Replies: 10
    Last Post: 07-23-2012, 10:00 AM
  2. Very simple AH profit calculator
    By Ru1n3r in forum Diablo 3 Guides
    Replies: 4
    Last Post: 05-31-2012, 12:20 PM
  3. [Tool] Profit Calculator 2.0
    By Confucius in forum World of Warcraft Bots and Programs
    Replies: 17
    Last Post: 09-17-2011, 04:17 PM
  4. [Tool] Profit Calculator
    By Confucius in forum World of Warcraft Bots and Programs
    Replies: 8
    Last Post: 11-30-2010, 05:04 PM
  5. [Program] Profit Calculator for JC Vendoring
    By luchin in forum World of Warcraft Bots and Programs
    Replies: 10
    Last Post: 06-08-2010, 05:52 PM
All times are GMT -5. The time now is 02:58 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search