well, you can call up a userdefined gump in which you could do all of those things with an entry like this
Code:
<SpeechEntry>
<EntryNumber>14</EntryNumber>
<ID>34</ID>
<Text>Let me show you some things.</Text>
<Action>GUMP,Hero's quest completed,0,XmlNewGump/Here are your selections.</Action>
<Keywords>gump</Keywords>
<DependsOn>33</DependsOn>
</SpeechEntry>
which uses the GUMP keyword
from the xmlspawner2.txt document
Quote:
|
The GUMP keyword can also be used to display user gumps with the syntax "GUMP,title,number,gumpconstructor/text".
|
where you had scripted in your own custom gump with a constructor that gets called with the following arguments.
Code:
namespace Server.Gumps
{
public class XmlNewGump : Gump
{
public XmlNewGump( XmlSpawner spawner, string gumptext, string gumptitle, int gumpnumber, BaseXmlSpawner.KeywordTag tag ): base( 0, 0 )
{
// put in whatever you want
// note, you can use the gumpnumber to send in values
// that might correspond to the quest type, quest level, or anything else you wanted.
}
public override void OnResponse( Server.Network.NetState state, RelayInfo info )
{
// put in whatever you want
}
}
}
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. "
For questions, information, and support for XmlSpawner and its addons, visit the
XmlSpawner Support Forum