Hello I think I found a bug but I have no src to fix it. It's about the file gameserver \ model \ team2 \ common \ legacy \ LootGroupRules.java
The file looks like this:
public class LootGroupRules {
private LootRuleType lootRule;
private LootDistribution autodistribution
private int common_item_above;
private int superior_item_above;
private int heroic_item_above;
private int fabled_item_above;
private int ethernal_item_above;
private int misc;
private int nrMisc;
private int nrRoundRobin;
private FastList<DropItem> itemsToBeDistributed = new FastList();
public LootGroupRules() {
this.lootRule = LootRuleType.ROUNDROBIN;
this.autodistribution = LootDistribution.ROLL_DICE;
this.common_item_above = 0;
this.superior_item_above = 2;
this.heroic_item_above = 2;
this.fabled_item_above = 2;
this.ethernal_item_above = 2;
}
public LootGroupRules(LootRuleType lootRule, LootDistribution autodistribution, int commonItemAbove, int superiorItemAbove, int heroicItemAbove, int fabledItemAbove, int ethernalItemAbove, int misc) {
this.lootRule = lootRule;
this.autodistribution = autodistribution;
this.misc = misc;
this.common_item_above = commonItemAbove;
this.superior_item_above = superiorItemAbove;
this.heroic_item_above = heroicItemAbove;
this.fabled_item_above = fabledItemAbove;
this.ethernal_item_above = ethernalItemAbove;
}
public boolean getQualityRule(ItemQuality quality) {
switch (quality) {
case COMMON:
return (this.common_item_above != 0);
case RARE:
return (this.superior_item_above != 0);
case LEGEND:
return (this.heroic_item_above != 0);
case UNIQUE:
return (this.fabled_item_above != 0);
case MYTHIC:
return (this.ethernal_item_above != 0);
case EPIC:
return true;
}
return false;
}
There is no rool in this file for MYTHIC, it should look like this public class LootGroupRules
public class LootGroupRules {
private LootRuleType lootRule;
private LootDistribution autodistribution;
private int common_item_above;
private int superior_item_above;
private int heroic_item_above;
private int fabled_item_above;
private int ethernal_item_above;
private int mythic_item_above;
private int misc;
private int nrMisc;
private int nrRoundRobin;
private FastList<DropItem> itemsToBeDistributed = new FastList<DropItem>();
public LootGroupRules() {
lootRule = LootRuleType.ROUNDROBIN;
autodistribution = LootDistribution.ROLL_DICE;
common_item_above = 0;
superior_item_above = 2;
heroic_item_above = 2;
fabled_item_above = 2;
ethernal_item_above = 2;
mythic_item_above = 2;
}
public LootGroupRules(LootRuleType lootRule, LootDistribution autodistribution, int commonItemAbove, int superiorItemAbove, int heroicItemAbove, int fabledItemAbove, int ethernalItemAbove, int mythicItemAbove, int misc) {
super();
this.lootRule = lootRule;
this.autodistribution = autodistribution;
this.misc = misc;
common_item_above = commonItemAbove;
superior_item_above = superiorItemAbove;
heroic_item_above = heroicItemAbove;
fabled_item_above = fabledItemAbove;
ethernal_item_above = ethernalItemAbove;
mythic_item_above = mythicItemAbove;
}
/**
* @param quality
*
return
*/
public boolean getQualityRule(ItemQuality quality) {
switch (quality) {
case COMMON: // White
return common_item_above != 0;
case RARE: // Green
return superior_item_above != 0;
case LEGEND: // Blue
return heroic_item_above != 0;
case UNIQUE: // Yellow
return fabled_item_above != 0;
case EPIC: // Orange
return ethernal_item_above != 0;
case MYTHIC: // Purple
return mythic_item_above != 0;
default:
break;
}
return false;
}
If I'm wrong, please correct me, if it would be possible to get src, I could check if it works.