xavier 2010-12-31 18:32:30 +00:00
parent 47a3491667
commit 030daa30da

View file

@ -71,31 +71,62 @@ namespace Server.Items
private static void GetRandomAOSStats( out int attributeCount, out int min, out int max ) private static void GetRandomAOSStats( out int attributeCount, out int min, out int max )
{ {
int rnd = Utility.Random( 15 ); int rnd = Utility.Random( 15 );
if ( rnd < 1 ) if ( Core.SE )
{ {
attributeCount = Utility.RandomMinMax( 2, 6 ); if ( rnd < 1 )
min = 20; max = 70; {
} attributeCount = Utility.RandomMinMax( 3, 5 );
else if ( rnd < 3 ) min = 50; max = 100;
{ }
attributeCount = Utility.RandomMinMax( 2, 4 ); else if ( rnd < 3 )
min = 20; max = 50; {
} attributeCount = Utility.RandomMinMax( 2, 5 );
else if ( rnd < 6 ) min = 40; max = 80;
{ }
attributeCount = Utility.RandomMinMax( 2, 3 ); else if ( rnd < 6 )
min = 20; max = 40; {
} attributeCount = Utility.RandomMinMax( 2, 4 );
else if ( rnd < 10 ) min = 30; max = 60;
{ }
attributeCount = Utility.RandomMinMax( 1, 2 ); else if ( rnd < 10 )
min = 10; max = 30; {
attributeCount = Utility.RandomMinMax( 1, 3 );
min = 20; max = 40;
}
else
{
attributeCount = 1;
min = 10; max = 20;
}
} }
else else
{ {
attributeCount = 1; if ( rnd < 1 )
min = 10; max = 20; {
attributeCount = Utility.RandomMinMax( 2, 5 );
min = 20; max = 70;
}
else if ( rnd < 3 )
{
attributeCount = Utility.RandomMinMax( 2, 4 );
min = 20; max = 50;
}
else if ( rnd < 6 )
{
attributeCount = Utility.RandomMinMax( 2, 3 );
min = 20; max = 40;
}
else if ( rnd < 10 )
{
attributeCount = Utility.RandomMinMax( 1, 2 );
min = 10; max = 30;
}
else
{
attributeCount = 1;
min = 10; max = 20;
}
} }
} }
@ -103,7 +134,8 @@ namespace Server.Items
{ {
cont.Movable = false; cont.Movable = false;
cont.Locked = true; cont.Locked = true;
int numberItems;
if ( level == 0 ) if ( level == 0 )
{ {
cont.LockLevel = 0; // Can't be unlocked cont.LockLevel = 0; // Can't be unlocked
@ -131,13 +163,33 @@ namespace Server.Items
cont.LockLevel = cont.RequiredSkill - 10; cont.LockLevel = cont.RequiredSkill - 10;
cont.MaxLockLevel = cont.RequiredSkill + 40; cont.MaxLockLevel = cont.RequiredSkill + 40;
cont.DropItem( new Gold( level * 1000 ) ); //Publish 67 gold change
//if ( Core.SA )
// cont.DropItem( new Gold( level * 5000 ) );
//else
cont.DropItem( new Gold( level * 1000 ) );
for ( int i = 0; i < level * 5; ++i ) for ( int i = 0; i < level * 5; ++i )
cont.DropItem( Loot.RandomScroll( 0, 63, SpellbookType.Regular ) ); cont.DropItem( Loot.RandomScroll( 0, 63, SpellbookType.Regular ) );
for ( int i = 0; i < level * 6; ++i ) if ( Core.SE)
{
switch ( level )
{
case 1: numberItems = 5; break;
case 2: numberItems = 10; break;
case 3: numberItems = 15; break;
case 4: numberItems = 38; break;
case 5: numberItems = 50; break;
case 6: numberItems = 60; break;
default: numberItems = 0; break;
};
}
else
numberItems = level * 6;
for ( int i = 0; i < numberItems; ++i )
{ {
Item item; Item item;