TreasureMap Loot corrections.
http://www.runuo.com/community/threads/ready-treasure-map-chest-loot.446419/page-2#post-3612315
This commit is contained in:
parent
47a3491667
commit
030daa30da
1 changed files with 77 additions and 25 deletions
|
|
@ -72,30 +72,61 @@ namespace Server.Items
|
||||||
{
|
{
|
||||||
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,6 +134,7 @@ namespace Server.Items
|
||||||
{
|
{
|
||||||
cont.Movable = false;
|
cont.Movable = false;
|
||||||
cont.Locked = true;
|
cont.Locked = true;
|
||||||
|
int numberItems;
|
||||||
|
|
||||||
if ( level == 0 )
|
if ( level == 0 )
|
||||||
{
|
{
|
||||||
|
|
@ -132,12 +164,32 @@ 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;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue