Hey does anyone know the formula to calculate how much it costs to repair an item? I found out how to repair items just dont know how to put price for it :D it was in packet system
uint cost = torepair.ItemtypeData.Value.Price;
uint duraCost = (torepair.CurrentDura * cost) / torepair.MaximumDura;
cost -= duraCost;