FFACETools.FFACE.SetCraftItem C# (CSharp) Method

SetCraftItem() private method

private SetCraftItem ( int instanceID, int Zero, ushort ItemID, byte Index, byte Count, byte Box ) : bool
instanceID int
Zero int
ItemID ushort
Index byte
Count byte
Box byte
return bool
        private static extern bool SetCraftItem(int instanceID, int Zero, ushort ItemID, byte Index, byte Count, byte Box);

Usage Example

Example #1
0
            } // @ public bool SetNPCTradeInformation

            /// <summary>
            /// Set items in craft window
            /// </summary>
            /// <param name="sTinfo">NPCTRADEINFO structure</param>
            public bool SetCraftItems (NPCTRADEINFO sTinfo)
            {
                bool result = false;

                if (sTinfo.items == null)
                {
                    return false;
                }
                else
                {
                    for (byte i = 0; i < sTinfo.items.Length; i++)
                    {
                        result = FFACE.SetCraftItem(_InstanceID, 0, sTinfo.items[i].ItemID, sTinfo.items[i].Index, sTinfo.items[i].Count, i);
                        if (!result)
                            break;
                    }
                }
                return result;
            } // @ public bool SetCraftItems
FFACE