CS0118 Error

//Sorry for posting so many errors, but I need these scripts for my game.

using UnityEngine;

using System.Collections;

namespace Stats {

public static class UpdateLists
{

public static void UpdateInventory(Stats Stat)
{
    for (int i = 0; i < Stat.Inventory.Length; i++)
    {                                   
        if (Stat.Ability*.name == "Potion")*

{
Stat.Inventory*.cost = 15;*
Stat.Inventory*.type = “Medicine”;*
Stat.Inventory*.effect= “Heal”;*
Stat.Inventory*.modifier = 30;*
Stat.Inventory*.description = “To restore health”;*
}

if (Stat.Ability*.name == “Bomb”)*
{
Stat.Inventory*.cost = 35;*
Stat.Inventory*.type = “Bomb”;*
Stat.Inventory*.effect= “Explode”;*
Stat.Inventory*.modifier = 50;*
Stat.Inventory*.description = “Damage enemies within an area of effect”;*
}
}
}
}
}
// I am getting a CS0118 error at line 9 public static void UpdateInventory(Stats Stat)
'Stats is a namespace, but a ‘type’ was expected is what the error says.

It is just as it says. Stats is a namespace, that is a kind of “directory of classes”.

In your code, you use Stats as a class. To do so, you need to create a class called Stats.

You should also learn a bit more about the basics of C#.