XxSP1DERxX said:Code:Exception: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.Collections.ArrayList.get_Item(Int32 index) at Arya.DialogEditor.ConversationGump.OnResponse(NetState sender, RelayInfo info) at Server.Network.PacketHandlers.DisplayGumpResponse(NetState state, PacketReader pvSrc) at Server.Network.MessagePump.HandleReceive(NetState ns) at Server.Network.MessagePump.Slice() at Server.Core.Main(String[] args)
Umm... yep :\ I have no clue how it was caused
In ConverstationGump.cs change
Code:
DialogChoice choice = m_Choices[ info.ButtonID - 10 ] as DialogChoice;
m_NPC.PerformChoice( sender.Mobile, choice );
Code:
if ( info.ButtonID - 10 >= 0 && info.ButtonID - 10 < m_Choices.Count )
{
DialogChoice choice = m_Choices[ info.ButtonID - 10 ] as DialogChoice;
m_NPC.PerformChoice( sender.Mobile, choice );
}