Archeage Classic Crafting Profit Calculator
About this app
Calculate your crafting profit per labor in Archeage Classic based on auction house prices and trends.
Archeage Classic Crafting Profit Calculator Archeage Classic Crafting Profit Calculator Calculate Profit
Related apps
Put this on your site
Source
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Archeage Classic Crafting Profit Calculator</title>
<meta name="description" content="Calculate your crafting profit per labor in Archeage Classic based on auction house prices and trends." />
<meta name="keywords" content="Archeage, crafting, profit calculator, auction house, labor, game tools" />
<!-- Libraries -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.min.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.6.0/css/fontawesome.min.css" crossorigin="anonymous">
<script type="text/javascript">
try {
document.addEventListener("DOMContentLoaded", function() {
const itemPrices = {}; // Holds the average sale prices for items.
const calculateProfit = (item, laborSpent, craftingCost) => {
const salePrice = itemPrices[item] || 0;
const totalCosts = craftingCost + (craftingCost * 0.05); // Include taxes
const profit = salePrice - totalCosts;
const profitPerLabor = laborSpent > 0 ? profit / laborSpent : 0;
return {
profit: profit.toFixed(2),
profitPerLabor: profitPerLabor.toFixed(2),
salePrice: salePrice,
};
};
// Function to analyze the trend
const analyzeTrend = (priceHistory) => {
const prices = priceHistory.map(price => price.value);
const max = Math.max(...prices);
const min = Math.min(...prices);
const latest = prices[prices.length - 1];
const trend = latest > min ? (latest < max ? 'Stable' : 'High') : 'Low';
return {
trend: trend,
max: max,
min: min
};
};
// Event Listener for calculating profit
$('#calculate').on('click', function() {
const item = $('#item').val();
const craftingCost = parseFloat($('#craftingCost').val());
const laborSpent = parseFloat($('#laborSpent').val());
const { profit, profitPerLabor, salePrice } = calculateProfit(item, laborSpent, craftingCost);
$('#profitResult').html(`Profit: ${profit}, Profit per Labor: ${profitPerLabor} | Sale Price: ${salePrice}`);
});
// Fetch latest auction price data
$.ajax({
url: "https://sermeatball.com/api/prices", // Hypothetical endpoint
method: "GET",
success: function(data) {
data.forEach(item => {
itemPrices[item.name] = item.average_price;
});
}
});
// Sample price history for trend analysis
// This would be fetched from an API or database in a real scenario.
const fakePriceHistory = [
{ date: '2023-01-01', value: 10 },
{ date: '2023-01-15', value: 12 },
{ date: '2023-02-01', value: 15 },
{ date: '2023-02-15', value: 14 },
{ date: '2023-03-01', value: 17 }
];
const { trend, max, min } = analyzeTrend(fakePriceHistory);
$('#trendInfo').html(`Current Trend: ${trend}, 2-Month Range: ${min} - ${max}`);
});
} catch (error) {
throw error;
}
</script>
<style>
body {
background: linear-gradient(135deg, #f0e68c, #4c8ed9);
color: #3b3a3a;
font-family: 'Arial', sans-serif;
}
#main-container {
margin-top: 50px;
}
.form-control, button {
margin-top: 10px;
border-radius: 50px;
}
#calculate {
background-color: #57c57d;
color: white;
border: none;
}
#calculate:hover {
background-color: #45aa68;
}
#profitResult, #trendInfo {
margin-top: 20px;
font-weight: bold;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1 class="text-center">Archeage Classic Crafting Profit Calculator</h1>
<div class="text-center">
<input type="text" id="item" placeholder="Item Name" class="form-control" />
<input type="number" id="craftingCost" placeholder="Total Crafting Cost" class="form-control" />
<input type="number" id="laborSpent" placeholder="Labor Spent" class="form-control" />
<button id="calculate" class="btn btn-success">Calculate Profit</button>
</div>
<div id="profitResult" class="text-center"></div>
<div id="trendInfo" class="text-center"></div>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!