1. rebdog1337

    rebdog1337 Naked Wanderer

    I'm getting the following error...
    at ItemValue..ctor (Int32 _type, Int32 minQuality, Int32 maxQuality, Boolean _bCreateDefaultParts) [0x00000] in <filename unknown>:0
    at ItemValue..ctor (Int32 _type, Boolean _bCreateDefaultParts) [0x00000] in <filename unknown>:0

    Does anyone know how to solve this?

    same sort of code as shop

    ItemValue value = new ItemValue(45,true);
    ItemStack stack = new ItemStack(value, 1);
    EntityPlayer _player = GameManager.Instance.World.Players.dict[_cInfo.entityId];
    Puts("get player position");
    value.Quality = 300;
    Puts("creating item");
    GameManager.Instance.ItemDropServer(stack, _player.GetPosition(), Vector3.zero, -1, 50f);
    --- Double Post Merged, Aug 16, 2016 ---
    Never mind, im dumb. I need to read.
    changed it to
    ItemValue value = new ItemValue(ItemClass.GetItem("gunPumpShotgun").type,true);