I'm running ServUO pub (latest) and trying to add a staff travel book based on public moongate script from "old" Runuo client. It keeps throwing this error...



Error1.png


This is the area of code throwing this error.

[ICODE
public class TravelBookGump : Gump
{
private Mobile m_Mobile;
private Item m_TravelBook;
private PMList[] m_Lists;
public TravelBookGump( Mobile mobile, Item TravelBook ) : base( 100, 100 )
{
m_Mobile = mobile;
m_TravelBook = TravelBook;
PMList[] checkLists;
if ( mobile.Player )
{
if ( mobile.Kills >= 5 )
{
checkLists = PMList.RedLists;
}
else
{
int flags = mobile.NetState == null ? 0 : mobile.NetState.Flags;
if ( Core.AOS && (flags & 0x8) != 0 )
checkLists = PMList.AOSLists;
else if ( (flags & 0x4) != 0 )
checkLists = PMList.LBRLists;
else
checkLists = PMList.UORLists;
}
}
else
{
checkLists = PMList.AOSLists;
}
m_Lists = new PMList[checkLists.Length];
for ( int i = 0; i < m_Lists.Length; ++i )
m_Lists = checkLists;
for ( int i = 0; i < m_Lists.Length; ++i )
{
if ( m_Lists.Map == mobile.Map )
{
PMList temp = m_Lists;
m_Lists = m_Lists[0];
m_Lists[0] = temp;
break;
}
}
][/ICODE]

Not sure how to fix, and how the new ServUO handles mobile "flags".
 
Back