Kilra Yan
Member
I am testing the released sphynx code which is available from
http://www.runuo.com/community/threads/sphynx-re-release.82200/
and once implemented everytime I restart server it tells me something missing from playermobile and suddendly delete my character.
I included in my playermobile all the code
seems like the culript is happening adding this piece of code here:
If I comment this last part no error 0x0000006 during startup but the character change name to "Generic Player"...
http://www.runuo.com/community/threads/sphynx-re-release.82200/
and once implemented everytime I restart server it tells me something missing from playermobile and suddendly delete my character.
I included in my playermobile all the code
Code:
switch (version)
{
//add sphynx
case 30:
{
m_FortuneType1 = reader.ReadEncodedInt();
if ( m_FortuneType1 > 0 )
{
m_FortunePower1 = reader.ReadEncodedInt();
m_FortuneType2 = reader.ReadEncodedInt();
m_FortunePower2 = reader.ReadEncodedInt();
FortuneExpire = reader.ReadDateTime();
if ( FortuneExpire > DateTime.Now )
{
ApplyFortune( m_FortuneType1, m_FortunePower1 );
ApplyFortune( m_FortuneType2, m_FortunePower2 );
FortuneGump.Told.Add( this );
}
else
m_FortuneType1 = m_FortuneType2 = m_FortunePower1 = m_FortunePower2 = 0;
}
goto case 29;
}
seems like the culript is happening adding this piece of code here:
Code:
base.Serialize(writer);
// Version 30
//changed next line for sphynx
writer.Write(30); // version
//add sphynx
writer.WriteEncodedInt( m_FortuneType1 );
if ( m_FortuneType1 > 0 )
{
writer.WriteEncodedInt( m_FortunePower1 );
writer.WriteEncodedInt( m_FortuneType2 );
writer.WriteEncodedInt( m_FortunePower2 );
writer.Write( (DateTime) m_FortuneExpire );
}
//end sphynx
/*************************************************************************************/
If I comment this last part no error 0x0000006 during startup but the character change name to "Generic Player"...