Тестил кто нить, сколько нужно минимум человек чтобы получить баф 3 уровня? Зависит ли баф от расс в пати или зависит от профессий? Какие профессии премерно должны находится и минимальный уровень их?
Там 4 профы в пати, 2 Джуда делал, ШК и Спойл. ЛВЛ не проверял, но тут смысл от этого бафа не очень-минуту всего висит, на 2 минуты не критует. Можно набор из других проф собрать, тоже будет работать, искал инфу про это давно уже, но толком нигде нет ничего, поэтому пробовал сам.
Код: weight.put(ClassId.duelist, 0.2); weight.put(ClassId.dreadnought, 0.7); weight.put(ClassId.phoenixKnight, 0.5); weight.put(ClassId.hellKnight, 0.5); weight.put(ClassId.sagittarius, 0.3); weight.put(ClassId.adventurer, 0.4); weight.put(ClassId.archmage, 0.3); weight.put(ClassId.soultaker, 0.3); weight.put(ClassId.arcanaLord, 1.); weight.put(ClassId.cardinal, -0.6); weight.put(ClassId.hierophant, 0.); weight.put(ClassId.evaTemplar, 0.8); weight.put(ClassId.swordMuse, 0.5); weight.put(ClassId.windRider, 0.4); weight.put(ClassId.moonlightSentinel, 0.3); weight.put(ClassId.mysticMuse, 0.3); weight.put(ClassId.elementalMaster, 1.); weight.put(ClassId.evaSaint, -0.6); weight.put(ClassId.shillienTemplar, 0.8); weight.put(ClassId.spectralDancer, 0.5); weight.put(ClassId.ghostHunter, 0.4); weight.put(ClassId.ghostSentinel, 0.3); weight.put(ClassId.stormScreamer, 0.3); weight.put(ClassId.spectralMaster, 1.); weight.put(ClassId.shillienSaint, -0.6); weight.put(ClassId.titan, 0.3); weight.put(ClassId.dominator, 0.1); weight.put(ClassId.grandKhauatari, 0.2); weight.put(ClassId.doomcryer, 0.1); weight.put(ClassId.fortuneSeeker, 0.9); weight.put(ClassId.maestro, 0.7); weight.put(ClassId.doombringer, 0.2); weight.put(ClassId.trickster, 0.5); weight.put(ClassId.judicator, 0.1); weight.put(ClassId.maleSoulhound, 0.3); weight.put(ClassId.femaleSoulhound, 0.3); Код: private double getCoefficient(int count) { double cf; switch(count) { case 4: cf = 0.7; break; case 5: cf = 0.75; break; case 6: cf = 0.8; break; case 7: cf = 0.85; break; case 8: cf = 0.9; break; case 9: cf = 0.95; break; default: cf = 1; } return cf; } Код: private int getBuffLevel(Player pc) { if(pc.getParty() == null) return 0; Party party = pc.getParty(); // Small party check if(party.getMemberCount() < 5) return 0; // Newbie party or Not in zone member check for(Player p : party) if(p.getLevel() < 80 || !p.isInZone(zone)) return 0; double points = 0; int count = party.getMemberCount(); for(Player p : party) points += weight.get(p.getClassId()); return (int) Math.max(0, Math.min(3, Math.round(points * getCoefficient(count)))); }
Хоть я незнаю английский, т.е у каждой профы есть коэффициент и нужно набрать какую то сумму в итоге? Только сколько в итоге набрать надо и можно одной и той же профой?