- Hit Life Leech now works in PvP
(http://www.uodemise.com/discussion/showthread.php?t=121298) - Summoned Daemon now has the proper bodyvalue (AoS+) and effect (http://www.uodemise.com/discussion/showthread.php?t=127404) - Two new house signs are added (http://www.uodemise.com/discussion/showthread.php?t=125409) - Changes to Satyrs and Dryads: --> Dryads: ----> they do area peace ----> can partially undress males ----> have chance to drop peculiar or fragrant (not yet implemented) seeds --> Satyrs: ----> their karma is neutral ----> can peace combatants ----> can provoke nearby creatures to the combatant ----> can undress females ----> can discord combatants --> Both: can drop spellweaving scrolls (http://www.uodemise.com/discussion/showthread.php?t=125444) - Added Auto Arrow Recovery feature (SE+) (http://www.uodemise.com/discussion/showthread.php?t=114807)
This commit is contained in:
parent
37043076e0
commit
cd7c2becf7
14 changed files with 511 additions and 98 deletions
|
|
@ -190,6 +190,8 @@ namespace Server.Gumps
|
|||
660, 666, 672, 898, 970,
|
||||
974, 982
|
||||
};
|
||||
|
||||
private static List<int> _HouseSigns = new List<int>();
|
||||
|
||||
public HouseGumpAOS( HouseGumpPageAOS page, Mobile from, BaseHouse house ) : base( 50, 40 )
|
||||
{
|
||||
|
|
@ -486,20 +488,37 @@ namespace Server.Gumps
|
|||
case HouseGumpPageAOS.ChangeSign:
|
||||
{
|
||||
int index = 0;
|
||||
|
||||
if ( _HouseSigns.Count == 0 )
|
||||
{
|
||||
// Add standard signs
|
||||
for ( int i = 0; i < 54; ++i )
|
||||
{
|
||||
_HouseSigns.Add( 2980 + ( i * 2 ) );
|
||||
}
|
||||
|
||||
// Add library and beekeeper signs ( ML )
|
||||
_HouseSigns.Add( 2966 );
|
||||
_HouseSigns.Add( 3140 );
|
||||
}
|
||||
|
||||
int signsPerPage = Core.ML ? 24 : 18;
|
||||
int totalSigns = Core.ML ? 56 : 54;
|
||||
int pages = (int) Math.Ceiling( (double) totalSigns / signsPerPage );
|
||||
|
||||
for ( int i = 0; i < 3; ++i )
|
||||
for ( int i = 0; i < pages; ++i )
|
||||
{
|
||||
AddPage( i + 1 );
|
||||
|
||||
AddButton( 10, 360, 4005, 4007, 0, GumpButtonType.Page, ((i + 1) % 3) + 1 );
|
||||
AddButton( 10, 360, 4005, 4007, 0, GumpButtonType.Page, ((i + 1) % pages ) + 1 );
|
||||
|
||||
for ( int j = 0; j < 18; ++j )
|
||||
for ( int j = 0; j < signsPerPage && totalSigns - ( signsPerPage * i ) - j > 0; ++j )
|
||||
{
|
||||
int x = 30 + ((j % 6) * 60);
|
||||
int y = 130 + ((j / 6) * 60);
|
||||
|
||||
AddButton( x, y, 4005, 4007, GetButtonID( 9, index ), GumpButtonType.Reply, 0 );
|
||||
AddItem( x + 20, y, 2980 + (index++ * 2) );
|
||||
AddItem( x + 20, y, _HouseSigns[index++] );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1305,9 +1324,9 @@ namespace Server.Gumps
|
|||
}
|
||||
case 9:
|
||||
{
|
||||
if ( isOwner && m_House.Public && index >= 0 && index < 54 )
|
||||
if ( isOwner && m_House.Public && index >= 0 && index < _HouseSigns.Count )
|
||||
{
|
||||
m_House.ChangeSignType( 2980 + (index * 2) );
|
||||
m_House.ChangeSignType( _HouseSigns[index] );
|
||||
from.SendGump( new HouseGumpAOS( HouseGumpPageAOS.Customize, from, m_House ) );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue