Check for a typo on line 2178, you have a ; instead of || (at the end of the line)
Note : This code is causing crashes and will need gone over again by its author.
Using PlaceInBackpack with a null item is causing the crash.
I was looking at the 57 repo and curious if this line is going to hold that up?
ObjectPropertyList.Enabled = Core.AOS;
because of..
public static void ContextMenuRequest(NetState state, PacketReader pvSrc)
{
var target = World.FindEntity(pvSrc.ReadInt32())...
By your crash report it looks to be missing a null check in FactionStoneGump.cs in
public override void OnResponse(NetState sender, RelayInfo info) Case 0:
if (m_Faction.Election != null)
{...
Some simple examples I threw together for this system, but hoping to get back to bringing life to towns and npcs in the coming year. Merry Christmas UO fans!
You could try.. (FindItemByType instead of FindItemsByType)
if (from.Backpack.FindItemByType(typeof(PortableAnvil)) != null && from.Backpack.FindItemByType(typeof(PortableForge)) != null)
{
return 0; // if both are found
}
I was responding to your original gump question..which would have been, in public static void HandleSpeech(Mobile vendor, SpeechEventArgs e)
case 0x0002: // *bank*
{
e.Handled = true...