Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Maupishon committed Sep 21, 2024
2 parents 6c44f22 + 883d80d commit 103be0c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 12 deletions.
10 changes: 9 additions & 1 deletion Scripts/Engines/BulkOrders/Books/BOBSmallEntry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,15 @@ public void Serialize( GenericWriter writer )

writer.Write( (bool) m_RequireExceptional );

writer.WriteEncodedInt( (int) m_DeedType );
if (World.ServUOSave && m_DeedType == BODType.Fletcher)
{
writer.WriteEncodedInt((int)BODType.ServUOFletcher);
}
else
{
writer.WriteEncodedInt((int)m_DeedType);
}

writer.WriteEncodedInt( (int) m_Material );
writer.WriteEncodedInt( (int) m_AmountCur );
writer.WriteEncodedInt( (int) m_AmountMax );
Expand Down
3 changes: 2 additions & 1 deletion Scripts/Engines/BulkOrders/Books/BODType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ public enum BODType
{
Smith,
Tailor,
Fletcher
Fletcher,
ServUOFletcher = 5
}
}
2 changes: 1 addition & 1 deletion Scripts/Items/Special/Solen Items/BallOfSummoning.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public override void GetContextMenuEntries( Mobile from, List<ContextMenuEntry>
}
else
{
list.Add( new BallEntry( new BallCallback( SummonPet ), 6181 ) );
list.Add( new BallEntry( new BallCallback( CastSummonPet ), 6181 ) );
list.Add( new BallEntry( new BallCallback( UpdatePetName ), 6183 ) );
list.Add( new BallEntry( new BallCallback( UnlinkPet ), 6182 ) );
}
Expand Down
12 changes: 3 additions & 9 deletions Scripts/Nelderim/Engines/MacroCheck/CheckPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,22 +47,16 @@ public void PlayerRequest( bool isTrue )
TimeSpan clickbutton = DateTime.Now - m_Start;

if ( isTrue )
m_GM.SendMessage( 0x40, "Gracz {0} poprawnie odpowiedzial na wezwanie w czasie {1} sekund.", m_Player.Name , TimeSpanFormat( clickbutton ) );
m_GM.SendMessage( 0x40, "Gracz {0} poprawnie odpowiedzial na wezwanie w czasie {1} sekund.", m_Player.Name , clickbutton.TotalSeconds );
else
m_GM.SendMessage( 0x20, "Gracz {0} blednie odpowiedzial na wezwanie w czasie {1} sekund.", m_Player.Name , TimeSpanFormat( clickbutton ) );
m_GM.SendMessage( 0x20, "Gracz {0} blednie odpowiedzial na wezwanie w czasie {1} sekund.", m_Player.Name , clickbutton.TotalSeconds );
}

public void PlayerRequest()
{
PlayerRequest( true );
}


public static string TimeSpanFormat( TimeSpan time )
{
return String.Format("{0}", time.Seconds );
}


public void TimeOut()
{
if ( m_Timer != null )
Expand Down

0 comments on commit 103be0c

Please sign in to comment.