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.