10-15-2012, 10:41 PM
Тут 100%, какая именно команда за какую строчку отвечает не скажу, но что дроп лист отображается по этому коду знаю, проверял. Поэтому и создал тему, что нужно к этому коду задать цвет.
Цитата:public void droplist() {
L2Player player = (L2Player) getSelf();
L2NpcInstance npc = getNpc();
if (player == null || npc == null) {
return;
}
droplist(player, npc);
}
public void droplist(L2Player player, L2NpcInstance npc) {
if (player == null || npc == null) {
return;
}
if (!Config.ALT_GAME_GEN_DROPLIST_ON_DEMAND) {
show(InfoCache.getFromDroplistCache(npc.getNpcId() ), player, npc);
} else {
int diff = npc.calculateLevelDiffForDrop(player.isInParty() ? player.getParty().getLevel() : player.getLevel());
double mult = 1;
if (diff > 0) {
mult = Experience.penaltyModifier(diff, 9);
}
mult = npc.calcStat(Stats.DROP, mult, null, null);
show(DropList.generateDroplist(npc.getTemplate(), npc.isMonster() ? (L2MonsterInstance) npc : null, mult, player), player, npc);
}
}