jamisoncrzy
Member
Is there a way I can make certain items have a chance to drop off of any/all mobs in Felucca?
if ( ControlMaster == null && 40 > Utility.RandomDouble() && this.Map == Map.Felucca) // 40= 60% drop
{
int amount = Utility.RandomMinMax( 1, 5 );
switch (Utility.Random(2))
{
case 0: c.DropItem(new AbyssalCloth(amount)); break;
case 1: c.DropItem(new PowderedIron(amount)); break;
}
}
add this to the end of method OnDeath(Container c) in basecreature
Code:if ( ControlMaster == null && 40 > Utility.RandomDouble() && this.Map == Map.Felucca) // 40= 60% drop { int amount = Utility.RandomMinMax( 1, 5 ); switch (Utility.Random(2)) { case 0: c.DropItem(new AbyssalCloth(amount)); break; case 1: c.DropItem(new PowderedIron(amount)); break; } }
// Eodon Recipe/Armor set drops
CheckRecipeDrop(this, c);
for (int i = 0; i < titles.Count; ++i)
{
Titles.AwardFame(titles[i], fame[i], true);
Titles.AwardKarma(titles[i], karma[i], true);
}
}
// Eodon Recipe/Armor set drops
CheckRecipeDrop(this, c);
for (int i = 0; i < titles.Count; ++i)
{
Titles.AwardFame(titles[i], fame[i], true);
Titles.AwardKarma(titles[i], karma[i], true);
}
}
if ( ControlMaster == null && 40 > Utility.RandomDouble() && this.Map == Map.Felucca) // 40= 60% drop
{
int amount = Utility.RandomMinMax( 1, 5 );
switch (Utility.Random(2))
{
case 0: c.DropItem(new AbyssalCloth(amount)); break;
case 1: c.DropItem(new PowderedIron(amount)); break;
}
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.