i made a simple one , not as Co2 of course but u can change the numbers as u want
add this at the MagicArtisan NPC case
Code:
byte MetsNeed = Calculation.MetsNeeded(ItemId, Plus);
then at anywhere at any class under Calculations folder add this (mine at NextLevelEquip.cs)
Code:
public static byte MetsNeeded(int ItemId,byte Plus)
{
byte MetsNeeded = 0;
Struct.ItemData Item = Nano.Items[ItemId];
if (Item.Level < 40) MetsNeeded = 2;
else if (Item.Level < 60) MetsNeeded = 4;
else if (Item.Level < 75) MetsNeeded = 5;
else if (Item.Level < 85) MetsNeeded = 7;
else if (Item.Level < 95) MetsNeeded = 9;
else if (Item.Level < 100) MetsNeeded = 11;
else if (Item.Level < 112) MetsNeeded = 18;
else if (Item.Level >= 112) return 0;
if (Item.Quality == 9) MetsNeeded += 4;
else if (Item.Quality == 8) MetsNeeded += 2;
else if (Item.Quality == 7) MetsNeeded += 1;
if (Plus > 2) MetsNeeded += Plus;
return MetsNeeded;
}
of course u can add the them at the NPCs itself but that is a try to organize your work
Note that u suppose to know how to get the item ID and item plus which u will need at the first call line
byte MetsNeed =
Calculation.MetsNeeded(ItemId, Plus)