RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Dialog NPC

Serp

Sorceror
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 );
to
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 );
}
 
H

hudel

Guest
davidb said:
does anyone have the xml files that goes with this script?

Are you looking for these files? They are original from Arya...
 

Attachments

  • DialogNPC (XML-Files).zip
    2.8 KB · Views: 121
H

hudel

Guest
When I want to change the path to the data files do I just have to change it in the file DialogNPC.cs at this point?
Code:
	public class DialogNPC : BaseCreature
	{
		/// <summary>
		/// This is the folder where the XML configuration files are stored.
		/// This path is considered based at the RunUO folder.
		/// </summary>
		// private static string m_XmlFolder = @"TheBox\Dialog";
Is there anything else a check?

When I take the Travel Dialog and I choose to go to Britain, I will die before the travel and then I will be teleported to Britain. Has anybody else these problem, too?
 

wensday

Wanderer
Ok, well, I just went to the very last page of the dialog NPC log, and the link there is alive and kickin' ;) try lookin all the way through a script... oft' times they've been reposted throughout.
 

Jeff

Lord
wensday said:
Ok, well, I just went to the very last page of the dialog NPC log, and the link there is alive and kickin' ;) try lookin all the way through a script... oft' times they've been reposted throughout.
shoulda looked at the fact that you were in Archive and the last post on this thread was 06-19-2005, 07:34 PM
 

Uhhhh

Wanderer
Shadowrock99 said:
The link no longer works, could someone link me to the dialogue npc system?

I don't think any of the scripts in this Archive are officially supported anymore.

Try checking the Custom Script Submission forum for ones that are still active.
 
Top