Arcadius

Member
I'm adding OWLTR 4.0 to my shard but i get this error and i can't solve it.

Code:
        public void EndCombine(Mobile from, object o)
        {
            if (o is Item && ((Item)o).IsChildOf(from.Backpack))
            {
                if (o is SmallBOD)
                {
                    SmallBOD small = (SmallBOD)o;

                    LargeBulkEntry entry = null;

                    for (int i = 0; entry == null && i < this.m_Entries.Length; ++i)
                    {
                        if (this.m_Entries[i].Details.Type == small.Type)
                            entry = this.m_Entries[i];
                    }

                    if (entry == null)
                    {
                        from.SendLocalizedMessage(1045160); // That is not a bulk order for this large request.
                    }
                    else if (this.m_RequireExceptional && !small.RequireExceptional)
                    {
                        from.SendLocalizedMessage(1045161); // Both orders must be of exceptional quality.
                    }
                    else if (small.Material != this.m_Material && this.m_Material != BulkMaterialType.None)
                    {
                        from.SendLocalizedMessage(1157311); // Both orders must use the same resource type.
                    }
                    else if (this.m_AmountMax != small.AmountMax)
                    {
                        from.SendLocalizedMessage(1045163); // The two orders have different requested amounts and cannot be combined.
                    }
                    else if (small.AmountCur < small.AmountMax)
                    {
                        from.SendLocalizedMessage(1045164); // The order to combine with is not completed.
                    }
                    else if (entry.Amount >= this.m_AmountMax)
                    {
                        from.SendLocalizedMessage(1045166); // The maximum amount of requested items have already been combined to this deed.
                    }
                    else
                    {
                        entry.Amount += small.AmountCur;
                        small.Delete();

                        from.SendLocalizedMessage(1045165); // The orders have been combined.

                        from.SendGump(new LargeBODGump(from, this));

                        if (!this.Complete)
                            this.BeginCombine(from);
                    }
                }
                else
                {
                    from.SendLocalizedMessage(1045159); // That is not a bulk order.
                }
            }
            else
            {
                from.SendLocalizedMessage(1045158); // You must have the item in your backpack to target it.
            }
        }


Code:
Errors:
+ Customs/Britts/[ServUO.com]-OWLTR 4.0 for ServUO/OWLTR 4.0 for ServUO/Modified/Services/BulkOrders/LargeBOD.cs:
    CS1519: Line 274: Invalid token 'else' in class, struct, or interface member declaration
    CS1519: Line 276: Invalid token '(' in class, struct, or interface member declaration
    CS1518: Line 280: Expected class, delegate, enum, interface, or struct
    CS1518: Line 293: Expected class, delegate, enum, interface, or struct
    CS1022: Line 294: Type or namespace definition, or end-of-file expected
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
 
Not on my computer, anyway try this

Code:
   public void EndCombine(Mobile from, object o)
        {
            if (o is Item && ((Item)o).IsChildOf(from.Backpack))
            {
                if (o is SmallBOD)
                {
                    SmallBOD small = (SmallBOD)o;
                    LargeBulkEntry entry = null;
                    for (int i = 0; entry == null && i < this.m_Entries.Length; ++i)
                    {
                        if (this.m_Entries[i].Details.Type == small.Type)
                            entry = this.m_Entries[i];
                    }
                    if (entry == null)
                    {
                        from.SendLocalizedMessage(1045160); // That is not a bulk order for this large request.
                    }
                    else if (this.m_RequireExceptional && !small.RequireExceptional)
                    {
                        from.SendLocalizedMessage(1045161); // Both orders must be of exceptional quality.
                    }
                    else if (small.Material != this.m_Material && this.m_Material != BulkMaterialType.None)
                    {
                        from.SendLocalizedMessage(1157311); // Both orders must use the same resource type.
                    }
                    else if (this.m_AmountMax != small.AmountMax)
                    {
                        from.SendLocalizedMessage(1045163); // The two orders have different requested amounts and cannot be combined.
                    }
                    else if (small.AmountCur < small.AmountMax)
                    {
                        from.SendLocalizedMessage(1045164); // The order to combine with is not completed.
                    }
                    else if (entry.Amount >= this.m_AmountMax)
                    {
                        from.SendLocalizedMessage(1045166); // The maximum amount of requested items have already been combined to this deed.
                    }
                    else
                    {
                        entry.Amount += small.AmountCur;
                        small.Delete();
                        from.SendLocalizedMessage(1045165); // The orders have been combined.
                        from.SendGump(new LargeBODGump(from, this));
                        if (!this.Complete)
                            this.BeginCombine(from);
                    }
                else
                {
                    from.SendLocalizedMessage(1045159); // That is not a bulk order.
                }
            }
            else
            {
                from.SendLocalizedMessage(1045158); // You must have the item in your backpack to target it.
            }
        }
        }
 
Ok that solved that. It's reporting that I'm missing a whole bunch of assemblies. Which I'm not.

Code:
Errors:
+ Customs/GM Addons/[ServUO.com]-Auction/Auction/AddAuctionGump.cs:
    CS0246: Line 128: The type or namespace name 'AuctionContainer' could not be found (are you missing a using directive or an assembly reference?)
    CS0246: Line 131: The type or namespace name 'AuctionContainer' could not be found (are you missing a using directive or an assembly reference?)
    CS0246: Line 11: The type or namespace name 'AuctionContainer' could not be found (are you missing a using directive or an assembly reference?)
    CS0246: Line 13: The type or namespace name 'AuctionContainer' could not be found (are you missing a using directive or an assembly reference?)
+ Customs/GM Addons/[ServUO.com]-Auction/Auction/AuctionGump.cs:
    CS0246: Line 161: The type or namespace name 'AuctionContainer' could not be found (are you missing a using directive or an assembly reference?)
    CS0246: Line 162: The type or namespace name 'AuctionContainer' could not be found (are you missing a using directive or an assembly reference?)
    CS0246: Line 13: The type or namespace name 'AuctionContainer' could not be found (are you missing a using directive or an assembly reference?)
    CS0246: Line 14: The type or namespace name 'AuctionContainer' could not be found (are you missing a using directive or an assembly reference?)
+ Customs/GM Addons/[ServUO.com]-Auction/Auction/ViewItemGump.cs:
    CS0246: Line 14: The type or namespace name 'AuctionContainer' could not be found (are you missing a using directive or an assembly reference?)
    CS0246: Line 17: The type or namespace name 'AuctionContainer' could not be found (are you missing a using directive or an assembly reference?)
+ Customs/Vita-Nex Core 4.0.0.0/Modules/AutoPVP/Options/Battles/Options.cs:
    CS0246: Line 30: The type or namespace name 'PvPRewards' could not be found (are you missing a using directive or an assembly reference?)
+ Customs/Vita-Nex Core 4.0.0.0/Modules/AutoPVP/Options/System/SeasonOpts.cs:
    CS0246: Line 39: The type or namespace name 'PvPRewards' could not be found (are you missing a using directive or an assembly reference?)
+ Customs/Vita-Nex Core 4.0.0.0/SuperCrafts/Framework/CraftInfo.cs:
    CS0246: Line 26: The type or namespace name 'ResourceInfo' could not be found (are you missing a using directive or an assembly reference?)
    CS0246: Line 35: The type or namespace name 'ResourceInfo' could not be found (are you missing a using directive or an assembly reference?)
    CS0246: Line 44: The type or namespace name 'ResourceInfo' could not be found (are you missing a using directive or an assembly reference?)
    CS0246: Line 55: The type or namespace name 'ResourceInfo' could not be found (are you missing a using directive or an assembly reference?)
+ Customs/Vita-Nex Core 4.0.0.0/SuperCrafts/Framework/SuperCraft.cs:
    CS0246: Line 84: The type or namespace name 'ResourceInfo' could not be found (are you missing a using directive or an assembly reference?)
    CS0246: Line 95: The type or namespace name 'ResourceInfo' could not be found (are you missing a using directive or an assembly reference?)
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
 

Active Shards

Donations

Total amount
$50.00
Goal
$1,000.00
Back