Jump to content

Mining profits


DC 

Recommended Posts

With the new mining addon, I thought it would be cool to code something that calculated how much you would get for selling your minerals, so I did; if you have python downloaded, you can download the file at the bottom of the guide or use this code:

print("[CG MINING]")
print("***********\n")

bronze=int(input("Enter the amount of bronze you have mined: "))
silver=int(input("Enter the amount of silver you have mined: "))
gold=int(input("Enter the amount of gold you have mined: "))
plat=int(input("Enter the amount of platinum you have mined: "))

bronzetot=bronze*500
silvertot=silver*800
goldtot=gold*1800
plattot=plat*8000

total=bronzetot+silvertot+goldtot+plattot
print("\nIf you sold your minerals, you would earn: £"+str(total))

 

If not, then each mineral price per 1 is:

Bronze: £500

Silver: £800

Gold: £1,800

Platinum: £8000

>You can use these prices and calculate it manually,

Hope this helps! ~DC

CG mining profits.py

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...