Example #1
0
        public Entity CreateItem(string itemName, int typeID, int ownerID, int locationID, int flag, bool contraband, bool singleton, int quantity, double x, double y, double z, string customInfo)
        {
            ulong itemID = ItemDB.CreateItem(itemName, typeID, ownerID, locationID, flag, contraband, singleton, quantity, x, y, z, customInfo);

            if (itemID == 0)
            {
                return(null);
            }

            if (LoadItem((int)itemID) == false)
            {
                return(null);
            }

            return(itemList[itemID]);
        }