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 Crafting Profit Calculator Archeage 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 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" />
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap" rel="stylesheet">
<style>
body {
background: linear-gradient(135deg, #ffdea2, #ff8c62);
color: #3a3a3a;
font-family: 'Poppins', sans-serif;
padding: 20px;
text-align: center;
transition: background 0.4s;
}
h1 {
margin-bottom: 30px;
color: #ff455e;
animation: bounce 1s infinite;
}
input, button {
margin-top: 10px;
border-radius: 30px;
font-size: 16px;
padding: 10px;
width: calc(100% - 22px);
max-width: 400px;
}
button {
background-color: #57c57d;
color: white;
border: none;
cursor: pointer;
transition: background 0.3s;
}
button:hover {
background-color: #45aa68;
}
#profitResult, #trendInfo {
margin-top: 20px;
font-weight: bold;
}
@keyframes bounce {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
}
</style>
<script type="text/javascript">
document.addEventListener("DOMContentLoaded", function() {
const itemPrices = {};
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,
};
};
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
};
};
document.getElementById('calculate').onclick = function() {
const item = document.getElementById('item').value;
const craftingCost = parseFloat(document.getElementById('craftingCost').value);
const laborSpent = parseFloat(document.getElementById('laborSpent').value);
const { profit, profitPerLabor, salePrice } = calculateProfit(item, laborSpent, craftingCost);
document.getElementById('profitResult').innerHTML = `Profit: ${profit}, Profit per Labor: ${profitPerLabor} | Sale Price: ${salePrice}`;
};
fetch("https://sermeatball.com/api/prices")
.then(response => response.json())
.then(data => {
data.forEach(item => {
itemPrices[item.name] = item.average_price;
});
});
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);
document.getElementById('trendInfo').innerHTML = `Current Trend: ${trend}, 2-Month Range: ${min} - ${max}`;
});
</script>
</head>
<body>
<h1>Archeage Crafting Profit Calculator</h1>
<input type="text" id="item" placeholder="Item Name" />
<input type="number" id="craftingCost" placeholder="Total Crafting Cost" />
<input type="number" id="laborSpent" placeholder="Labor Spent" />
<button id="calculate">Calculate Profit</button>
<div id="profitResult"></div>
<div id="trendInfo"></div>
</body>
</html>
NEW APPS
These are apps made by the community!