Перейти к содержанию
Авторизация  
staige2973

Помогите с петом, не баффает в мирной зоне

Рекомендуемые сообщения

Пет баффер, не баффает в мирной зоне, как решить проблему?

package l2p.gameserver.model.instances;



import l2p.commons.threading.RunnableImpl;
import l2p.commons.util.Rnd;
import l2p.gameserver.Config;
import l2p.gameserver.ThreadPoolManager;
import l2p.gameserver.model.Creature;
import l2p.gameserver.model.Effect;
import l2p.gameserver.model.EffectList;
import l2p.gameserver.model.Player;
import l2p.gameserver.model.Skill;
import l2p.gameserver.model.items.ItemInstance;
import l2p.gameserver.tables.PetDataTable;
import l2p.gameserver.tables.SkillTable;
import l2p.gameserver.templates.npc.NpcTemplate;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.concurrent.Future;

public final class PetBabyInstance extends PetInstance {

private static final Logger _log = LoggerFactory.getLogger(PetBabyInstance.class);
private Future_actionTask;
private boolean _buffEnabled = true;

public PetBabyInstance(int objectId, NpcTemplate template, Player owner, ItemInstance control, int _currentLevel,
long exp) {
super(objectId, template, owner, control, _currentLevel, exp);
}

public PetBabyInstance(int objectId, NpcTemplate template, Player owner, ItemInstance control) {
super(objectId, template, owner, control);
}

// heal
private static final int HealTrick = 4717;
private static final int GreaterHealTrick = 4718;
private static final int GreaterHeal = 5195;
private static final int BattleHeal = 5590;
private static final int Recharge = 5200;

class ActionTask extends RunnableImpl {

@@override
public void runImpl() throws Exception {
Skill skill = onActionTask();
_actionTask = ThreadPoolManager.getInstance().schedule(new ActionTask(),
skill == null ? 1000 : skill.getHitTime() * 333 / Math.max(getMAtkSpd(), 1) - 100);
}
}

public Skill[] getBuffs() {
switch (getNpcId()) {
case PetDataTable.IMPROVED_BABY_COUGAR_ID:
return COUGAR_BUFFS[getBuffLevel()];
case PetDataTable.IMPROVED_BABY_BUFFALO_ID:
return BUFFALO_BUFFS[getBuffLevel()];
case PetDataTable.IMPROVED_BABY_KOOKABURRA_ID:
return KOOKABURRA_BUFFS[getBuffLevel()];
case PetDataTable.FAIRY_PRINCESS_ID:
return FAIRY_PRINCESS_BUFFS[getBuffLevel()];
case PetDataTable.WHITE_WEASEL_ID:
return WHITE_WEASEL_BUFFS[getBuffLevel()];
case PetDataTable.SPIRIT_SHAMAN_ID:
return SPIRIT_SHAMAN_BUFFS[getBuffLevel()];
case PetDataTable.TOY_KNIGHT_ID:
return TOY_KNIGHT_BUFFS[getBuffLevel()];
case PetDataTable.TURTLE_ASCETIC_ID:
return TURTLE_ASCETIC_BUFFS[getBuffLevel()];
case PetDataTable.ROSE_DESELOPH_ID:
return ROSE_DESELOPH_BUFFS[getBuffLevel()];
case PetDataTable.ROSE_HYUM_ID:
return ROSE_HYUM_BUFFS[getBuffLevel()];
case PetDataTable.ROSE_REKANG_ID:
return ROSE_REKANG_BUFFS[getBuffLevel()];
case PetDataTable.ROSE_LILIAS_ID:
return ROSE_LILIAS_BUFFS[getBuffLevel()];
case PetDataTable.ROSE_LAPHAM_ID:
return ROSE_LAPHAM_BUFFS[getBuffLevel()];
case PetDataTable.ROSE_MAPHUM_ID:
return ROSE_MAPHUM_BUFFS[getBuffLevel()];
case PetDataTable.IMPROVED_ROSE_DESELOPH_ID:
return IMPROVED_ROSE_DESELOPH_BUFFS[getBuffLevel()];
case PetDataTable.IMPROVED_ROSE_HYUM_ID:
return IMPROVED_ROSE_HYUM_BUFFS[getBuffLevel()];
case PetDataTable.IMPROVED_ROSE_REKANG_ID:
return IMPROVED_ROSE_REKANG_BUFFS[getBuffLevel()];
case PetDataTable.IMPROVED_ROSE_LILIAS_ID:
return IMPROVED_ROSE_LILIAS_BUFFS[getBuffLevel()];
case PetDataTable.IMPROVED_ROSE_LAPHAM_ID:
return IMPROVED_ROSE_LAPHAM_BUFFS[getBuffLevel()];
case PetDataTable.IMPROVED_ROSE_MAPHUM_ID:
return IMPROVED_ROSE_MAPHUM_BUFFS[getBuffLevel()];
default:
return Skill.EMPTY_ARRAY;
}
}

public Skill onActionTask() {
try {
Player owner = getPlayer();
if (!owner.isDead() && !owner.isInvul() && !isCastingNow()) {
if (getEffectList().getEffectsCountForSkill(5753) > 0) {
return null;
}
if (getEffectList().getEffectsCountForSkill(5771) > 0) {
return null;
}
boolean improved = PetDataTable.isImprovedBabyPet(getNpcId());
Skill skill = null;
if (!Config.ALT_PET_HEAL_BATTLE_ONLY || owner.isInCombat()) {
// проверка лечения
double curHp = owner.getCurrentHpPercents();
if ((curHp < 90) && Rnd.chance((100 - curHp) / 3)) {
if (curHp < 33) // экстренная ситуация, сильный хил
{
skill = SkillTable.getInstance().getInfo(improved ? BattleHeal : GreaterHealTrick,
getHealLevel());
} else if (getNpcId() != PetDataTable.IMPROVED_BABY_KOOKABURRA_ID
|| getNpcId() == PetDataTable.FAIRY_PRINCESS_ID
|| getNpcId() == PetDataTable.SPIRIT_SHAMAN_ID) {
skill = SkillTable.getInstance().getInfo(improved ? GreaterHeal : HealTrick,
getHealLevel());
}
}
// проверка речарджа
// Речардж только у Kookaburra или Fairy Princess или Spirit
// Shaman и в комбат моде
if (skill == null && (getNpcId() == PetDataTable.IMPROVED_BABY_KOOKABURRA_ID
|| getNpcId() == PetDataTable.FAIRY_PRINCESS_ID
|| getNpcId() == PetDataTable.SPIRIT_SHAMAN_ID)) {
double curMp = owner.getCurrentMpPercents();
if ((curMp < 66) && Rnd.chance((100 - curMp) / 2)) {
skill = SkillTable.getInstance().getInfo(Recharge, getRechargeLevel());
}
}
if ((skill != null)
&& skill.checkCondition(PetBabyInstance.this, owner, false, !isFollowMode(), true)) {
setTarget(owner);
getAI().Cast(skill, owner, false, !isFollowMode());
return skill;
}
}
if (!improved || owner.isInZonePeace() || owner.isInOfflineMode()
|| (owner.getEffectList().getEffectsCountForSkill(5771) > 0)) // Buff
// Control
{
return null;
}
outer:
for (Skill buff : getBuffs()) {
if (getCurrentMp() < buff.getMpConsume2()) {
continue;
}
for (Effect ef : owner.getEffectList().getAllEffects()) {
if (checkEffect(ef, buff)) {
continue outer;
}
}
if (buff.checkCondition(PetBabyInstance.this, owner, false, !isFollowMode(), true)) {
setTarget(owner);
getAI().Cast(buff, owner, false, !isFollowMode());
return buff;
}
return null;
}
}
} catch (Throwable e) {
_log.warn("Pet [#" + getNpcId() + "] a buff task error has occurred: " + e);
_log.error("", e);
}
return null;
}

/**
* Возвращает true если эффект для скилла уже есть и заново накладывать не
* надо
*/
private boolean checkEffect(Effect ef, Skill skill) {
if (ef == null || !ef.isInUse() || !EffectList.checkStackType(ef.getTemplate(), skill.getEffectTemplates()[0])) // такого
// скилла
// нет
{
return false;
}
if (ef.getStackOrder() < skill.getEffectTemplates()[0]._stackOrder) // старый
// слабее
{
//return false;
}
if (ef.getTimeLeft() > 10) // старый не слабее и еще не кончается - ждем
{
return true;
}
if (ef.getNext() != null) // старый не слабее но уже кончается -
// проверить рекурсией что там зашедулено
{
return checkEffect(ef.getNext(), skill);
}
return false;
}

public synchronized void stopBuffTask() {
if (_actionTask != null) {
_actionTask.cancel(false);
_actionTask = null;
}
}

public synchronized void startBuffTask() {
if (_actionTask != null) {
stopBuffTask();
}

if (_actionTask == null && !isDead()) {
_actionTask = ThreadPoolManager.getInstance().schedule(new ActionTask(), 5000);
}
}

public boolean isBuffEnabled() {
return _buffEnabled;
}

public void triggerBuff() {
_buffEnabled = !_buffEnabled;
}

@@override
protected void onDeath(Creature killer) {
stopBuffTask();
super.onDeath(killer);
}

@@override
public void doRevive() {
super.doRevive();
startBuffTask();
}

@@override
public void unSummon() {
stopBuffTask();
super.unSummon();
}

public int getHealLevel() {
return Math.min(
Math.max((int) ((float) (getLevel() - getMinLevel()) / ((80.F - (float) getMinLevel()) / 12.F)), 1),
12);
}

public int getRechargeLevel() {
return Math.min(
Math.max((int) ((float) (getLevel() - getMinLevel()) / ((80.F - (float) getMinLevel()) / 8.F)), 1), 8);
}

public int getBuffLevel() {
if (getNpcId() == PetDataTable.WHITE_WEASEL_ID || getNpcId() == PetDataTable.FAIRY_PRINCESS_ID
|| getNpcId() >= 1562 && getNpcId() <= 1573) {
return Math.min(Math.max((getLevel() - getMinLevel()) / ((80 - getMinLevel()) / 3), 0), 3);
}
return Math.min(Math.max((getLevel() - 55) / 5, 0), 3);
}

@@override
public int getSoulshotConsumeCount() {
return 1;
}

@@override
public int getSpiritshotConsumeCount() {
return 1;
}

private static final int Pet_Haste = 5186; // 1-2
private static final int Pet_Vampiric_Rage = 5187; // 1-4
@SuppressWarnings("unused")
private static final int Pet_Regeneration = 5188; // 1-3
private static final int Pet_Blessed_Body = 5189; // 1-6
private static final int Pet_Blessed_Soul = 5190; // 1-6
private static final int Pet_Guidance = 5191; // 1-3
private static final int Pet_Wind_Walk = 5192; // 1-2
private static final int Pet_Acumen = 5193; // 1-3
private static final int Pet_Empower = 5194; // 1-3
private static final int Pet_Concentration = 5201; // 1-3
private static final int Pet_Might = 5586; // 1-3
private static final int Pet_Shield = 5587; // 1-3
private static final int Pet_Focus = 5588; // 1-3
private static final int Pet_Death_Wisper = 5589; // 1-3

//resist +30 and other buff
private static final int Buff1 = 1232; // Blazing Skin 93 lvl
private static final int Buff2 = 1357; // Prophecy of Wind
private static final int Buff3 = 1259; // Resist Shock 94 lvl
private static final int Buff4 = 1364; // Paiagrio
private static final int Buff5 = 1182; // 93 lvl
private static final int Buff6 = 1189; // 93 lvl
private static final int Buff7 = 1191; // 93 lvl
private static final int Buff8 = 1393; // 33 lvl
private static final int Buff9 = 1392; // 33 lvl
private static final int Buff10 = 1363; // 46 lvl

private static final int Chant_of_Blood_Awakening = 1519;
private static final int Improved_Critical_Attack = 1502;
private static final int Improved_Combat = 1499;
private static final int Improved_Movement = 1504;
private static final int Improved_Condition = 1501;
private static final int Pet_Death_Whisper = 5589;
private static final int Improved_Magic = 1500;
private static final int Armor_Maintenance = 5988;
private static final int Weapon_Maintenance = 5987;
// debuff (unused)
@SuppressWarnings("unused")
private static final int WindShackle = 5196, Hex = 5197, Slow = 5198, CurseGloom = 5199;
private static final Skill[][] COUGAR_BUFFS = {
{SkillTable.getInstance().getInfo(Pet_Empower, 3), SkillTable.getInstance().getInfo(Pet_Might, 3)},
{SkillTable.getInstance().getInfo(Pet_Empower, 3), SkillTable.getInstance().getInfo(Pet_Might, 3),
SkillTable.getInstance().getInfo(Pet_Shield, 3),
SkillTable.getInstance().getInfo(Pet_Blessed_Body, 6)},
{SkillTable.getInstance().getInfo(Pet_Empower, 3), SkillTable.getInstance().getInfo(Pet_Might, 3),
SkillTable.getInstance().getInfo(Pet_Shield, 3),
SkillTable.getInstance().getInfo(Pet_Blessed_Body, 6),
SkillTable.getInstance().getInfo(Pet_Acumen, 3), SkillTable.getInstance().getInfo(Pet_Haste, 2)},
{SkillTable.getInstance().getInfo(Pet_Empower, 3), SkillTable.getInstance().getInfo(Pet_Might, 3),
SkillTable.getInstance().getInfo(Pet_Shield, 3),
SkillTable.getInstance().getInfo(Pet_Blessed_Body, 6),
SkillTable.getInstance().getInfo(Pet_Acumen, 3), SkillTable.getInstance().getInfo(Pet_Haste, 2),
SkillTable.getInstance().getInfo(Pet_Vampiric_Rage, 4),
SkillTable.getInstance().getInfo(Pet_Focus, 3)}};

private static final Skill[][] BUFFALO_BUFFS = {
{SkillTable.getInstance().getInfo(Pet_Might, 3), SkillTable.getInstance().getInfo(Pet_Blessed_Body, 6)},
{SkillTable.getInstance().getInfo(Pet_Might, 3), SkillTable.getInstance().getInfo(Pet_Blessed_Body, 6),
SkillTable.getInstance().getInfo(Pet_Shield, 3),
SkillTable.getInstance().getInfo(Pet_Guidance, 3),},
{SkillTable.getInstance().getInfo(Pet_Might, 3), SkillTable.getInstance().getInfo(Pet_Blessed_Body, 6),
SkillTable.getInstance().getInfo(Pet_Shield, 3), SkillTable.getInstance().getInfo(Pet_Guidance, 3),
SkillTable.getInstance().getInfo(Pet_Vampiric_Rage, 4),
SkillTable.getInstance().getInfo(Pet_Haste, 2)},
{SkillTable.getInstance().getInfo(Pet_Might, 3), SkillTable.getInstance().getInfo(Pet_Blessed_Body, 6),
SkillTable.getInstance().getInfo(Pet_Shield, 3), SkillTable.getInstance().getInfo(Pet_Guidance, 3),
SkillTable.getInstance().getInfo(Pet_Vampiric_Rage, 4),
SkillTable.getInstance().getInfo(Pet_Haste, 2), SkillTable.getInstance().getInfo(Pet_Focus, 3),
SkillTable.getInstance().getInfo(Pet_Death_Wisper, 3)}};

private static final Skill[][] KOOKABURRA_BUFFS = {
{SkillTable.getInstance().getInfo(Pet_Empower, 3), SkillTable.getInstance().getInfo(Pet_Blessed_Soul, 6)},
{SkillTable.getInstance().getInfo(Pet_Empower, 3), SkillTable.getInstance().getInfo(Pet_Blessed_Soul, 6),
SkillTable.getInstance().getInfo(Pet_Blessed_Body, 6),
SkillTable.getInstance().getInfo(Pet_Shield, 3)},
{SkillTable.getInstance().getInfo(Pet_Empower, 3), SkillTable.getInstance().getInfo(Pet_Blessed_Soul, 6),
SkillTable.getInstance().getInfo(Pet_Blessed_Body, 6),
SkillTable.getInstance().getInfo(Pet_Shield, 3), SkillTable.getInstance().getInfo(Pet_Acumen, 3),
SkillTable.getInstance().getInfo(Pet_Concentration, 6)},
{SkillTable.getInstance().getInfo(Pet_Empower, 3), SkillTable.getInstance().getInfo(Pet_Blessed_Soul, 6),
SkillTable.getInstance().getInfo(Pet_Blessed_Body, 6),
SkillTable.getInstance().getInfo(Pet_Shield, 3), SkillTable.getInstance().getInfo(Pet_Acumen, 3),
SkillTable.getInstance().getInfo(Pet_Concentration, 6)}};

private static final Skill[][] WHITE_WEASEL_BUFFS =
{
{ SkillTable.getInstance().getInfo(Buff1, 93),
SkillTable.getInstance().getInfo(Buff10, 46),
SkillTable.getInstance().getInfo(Buff3, 94),
SkillTable.getInstance().getInfo(Buff4, 16),
SkillTable.getInstance().getInfo(Buff5, 93),
SkillTable.getInstance().getInfo(Buff6, 93),
SkillTable.getInstance().getInfo(Buff7, 93),
SkillTable.getInstance().getInfo(Buff8, 33),
SkillTable.getInstance().getInfo(Buff9, 33)
},
{ SkillTable.getInstance().getInfo(Buff1, 93),
SkillTable.getInstance().getInfo(Buff10, 46),
SkillTable.getInstance().getInfo(Buff3, 94),
SkillTable.getInstance().getInfo(Buff4, 16),
SkillTable.getInstance().getInfo(Buff5, 93),
SkillTable.getInstance().getInfo(Buff6, 93),
SkillTable.getInstance().getInfo(Buff7, 93),
SkillTable.getInstance().getInfo(Buff8, 33),
SkillTable.getInstance().getInfo(Buff9, 33)
},
{ SkillTable.getInstance().getInfo(Buff1, 93),
SkillTable.getInstance().getInfo(Buff10, 46),
SkillTable.getInstance().getInfo(Buff3, 94),
SkillTable.getInstance().getInfo(Buff4, 16),
SkillTable.getInstance().getInfo(Buff5, 93),
SkillTable.getInstance().getInfo(Buff6, 93),
SkillTable.getInstance().getInfo(Buff7, 93),
SkillTable.getInstance().getInfo(Buff8, 33),
SkillTable.getInstance().getInfo(Buff9, 33)
},
{ SkillTable.getInstance().getInfo(Buff1, 93),
SkillTable.getInstance().getInfo(Buff10, 46),
SkillTable.getInstance().getInfo(Buff3, 94),
SkillTable.getInstance().getInfo(Buff4, 16),
SkillTable.getInstance().getInfo(Buff5, 93),
SkillTable.getInstance().getInfo(Buff6, 93),
SkillTable.getInstance().getInfo(Buff7, 93),
SkillTable.getInstance().getInfo(Buff8, 33),
SkillTable.getInstance().getInfo(Buff9, 33)
}
};

private static final Skill[][] FAIRY_PRINCESS_BUFFS =
{
{ SkillTable.getInstance().getInfo(Buff1, 93),
SkillTable.getInstance().getInfo(Buff2, 46),
SkillTable.getInstance().getInfo(Buff3, 94),
SkillTable.getInstance().getInfo(Buff4, 16),
SkillTable.getInstance().getInfo(Buff5, 93),
SkillTable.getInstance().getInfo(Buff6, 93),
SkillTable.getInstance().getInfo(Buff7, 93),
SkillTable.getInstance().getInfo(Buff8, 33),
SkillTable.getInstance().getInfo(Buff9, 33)
},
{ SkillTable.getInstance().getInfo(Buff1, 93),
SkillTable.getInstance().getInfo(Buff2, 46),
SkillTable.getInstance().getInfo(Buff3, 94),
SkillTable.getInstance().getInfo(Buff4, 16),
SkillTable.getInstance().getInfo(Buff5, 93),
SkillTable.getInstance().getInfo(Buff6, 93),
SkillTable.getInstance().getInfo(Buff7, 93),
SkillTable.getInstance().getInfo(Buff8, 33),
SkillTable.getInstance().getInfo(Buff9, 33)
},
{ SkillTable.getInstance().getInfo(Buff1, 93),
SkillTable.getInstance().getInfo(Buff2, 46),
SkillTable.getInstance().getInfo(Buff3, 94),
SkillTable.getInstance().getInfo(Buff4, 16),
SkillTable.getInstance().getInfo(Buff5, 93),
SkillTable.getInstance().getInfo(Buff6, 93),
SkillTable.getInstance().getInfo(Buff7, 93),
SkillTable.getInstance().getInfo(Buff8, 33),
SkillTable.getInstance().getInfo(Buff9, 33)
},
{ SkillTable.getInstance().getInfo(Buff1, 93),
SkillTable.getInstance().getInfo(Buff2, 46),
SkillTable.getInstance().getInfo(Buff3, 94),
SkillTable.getInstance().getInfo(Buff4, 16),
SkillTable.getInstance().getInfo(Buff5, 93),
SkillTable.getInstance().getInfo(Buff6, 93),
SkillTable.getInstance().getInfo(Buff7, 93),
SkillTable.getInstance().getInfo(Buff8, 33),
SkillTable.getInstance().getInfo(Buff9, 33)
}
};

private static final Skill[][] SPIRIT_SHAMAN_BUFFS = {
{SkillTable.getInstance().getInfo(Pet_Empower, 3), SkillTable.getInstance().getInfo(Pet_Blessed_Soul, 6),
SkillTable.getInstance().getInfo(Pet_Wind_Walk, 2), SkillTable.getInstance().getInfo(Pet_Shield, 3),
SkillTable.getInstance().getInfo(Pet_Acumen, 3)},
{SkillTable.getInstance().getInfo(Pet_Empower, 3), SkillTable.getInstance().getInfo(Pet_Blessed_Soul, 6),
SkillTable.getInstance().getInfo(Pet_Wind_Walk, 2), SkillTable.getInstance().getInfo(Pet_Shield, 3),
SkillTable.getInstance().getInfo(Pet_Acumen, 3)},
{SkillTable.getInstance().getInfo(Pet_Empower, 3), SkillTable.getInstance().getInfo(Pet_Blessed_Soul, 6),
SkillTable.getInstance().getInfo(Pet_Wind_Walk, 2), SkillTable.getInstance().getInfo(Pet_Shield, 3),
SkillTable.getInstance().getInfo(Pet_Acumen, 3)},
{SkillTable.getInstance().getInfo(Pet_Empower, 3), SkillTable.getInstance().getInfo(Pet_Blessed_Soul, 6),
SkillTable.getInstance().getInfo(Pet_Wind_Walk, 2), SkillTable.getInstance().getInfo(Pet_Shield, 3),
SkillTable.getInstance().getInfo(Pet_Acumen, 3)}};

private static final Skill[][] TOY_KNIGHT_BUFFS = {{SkillTable.getInstance().getInfo(Pet_Might, 3),
SkillTable.getInstance().getInfo(Pet_Haste, 2), SkillTable.getInstance().getInfo(Pet_Focus, 3),
SkillTable.getInstance().getInfo(Pet_Wind_Walk, 2), SkillTable.getInstance().getInfo(Pet_Blessed_Body, 6),
SkillTable.getInstance().getInfo(Pet_Shield, 3), SkillTable.getInstance().getInfo(Pet_Death_Wisper, 3),
SkillTable.getInstance().getInfo(Pet_Vampiric_Rage, 4)},
{SkillTable.getInstance().getInfo(Pet_Might, 3), SkillTable.getInstance().getInfo(Pet_Haste, 2),
SkillTable.getInstance().getInfo(Pet_Focus, 3), SkillTable.getInstance().getInfo(Pet_Wind_Walk, 2),
SkillTable.getInstance().getInfo(Pet_Blessed_Body, 6),
SkillTable.getInstance().getInfo(Pet_Shield, 3),
SkillTable.getInstance().getInfo(Pet_Death_Wisper, 3),
SkillTable.getInstance().getInfo(Pet_Vampiric_Rage, 4)},
{SkillTable.getInstance().getInfo(Pet_Might, 3), SkillTable.getInstance().getInfo(Pet_Haste, 2),
SkillTable.getInstance().getInfo(Pet_Focus, 3), SkillTable.getInstance().getInfo(Pet_Wind_Walk, 2),
SkillTable.getInstance().getInfo(Pet_Blessed_Body, 6),
SkillTable.getInstance().getInfo(Pet_Shield, 3),
SkillTable.getInstance().getInfo(Pet_Death_Wisper, 3),
SkillTable.getInstance().getInfo(Pet_Vampiric_Rage, 4)},
{SkillTable.getInstance().getInfo(Pet_Might, 3), SkillTable.getInstance().getInfo(Pet_Haste, 2),
SkillTable.getInstance().getInfo(Pet_Focus, 3), SkillTable.getInstance().getInfo(Pet_Wind_Walk, 2),
SkillTable.getInstance().getInfo(Pet_Blessed_Body, 6),
SkillTable.getInstance().getInfo(Pet_Shield, 3),
SkillTable.getInstance().getInfo(Pet_Death_Wisper, 3),
SkillTable.getInstance().getInfo(Pet_Vampiric_Rage, 4)}};

private static final Skill[][] TURTLE_ASCETIC_BUFFS = {{SkillTable.getInstance().getInfo(Pet_Blessed_Soul, 6),
SkillTable.getInstance().getInfo(Pet_Wind_Walk, 2), SkillTable.getInstance().getInfo(Pet_Blessed_Body, 6),
SkillTable.getInstance().getInfo(Pet_Shield, 3), SkillTable.getInstance().getInfo(Armor_Maintenance, 1),
SkillTable.getInstance().getInfo(Weapon_Maintenance, 1)},
{SkillTable.getInstance().getInfo(Pet_Blessed_Soul, 6), SkillTable.getInstance().getInfo(Pet_Wind_Walk, 2),
SkillTable.getInstance().getInfo(Pet_Blessed_Body, 6),
SkillTable.getInstance().getInfo(Pet_Shield, 3),
SkillTable.getInstance().getInfo(Armor_Maintenance, 1),
SkillTable.getInstance().getInfo(Weapon_Maintenance, 1)},
{SkillTable.getInstance().getInfo(Pet_Blessed_Soul, 6), SkillTable.getInstance().getInfo(Pet_Wind_Walk, 2),
SkillTable.getInstance().getInfo(Pet_Blessed_Body, 6),
SkillTable.getInstance().getInfo(Pet_Shield, 3),
SkillTable.getInstance().getInfo(Armor_Maintenance, 1),
SkillTable.getInstance().getInfo(Weapon_Maintenance, 1)},
{SkillTable.getInstance().getInfo(Pet_Blessed_Soul, 6), SkillTable.getInstance().getInfo(Pet_Wind_Walk, 2),
SkillTable.getInstance().getInfo(Pet_Blessed_Body, 6),
SkillTable.getInstance().getInfo(Pet_Shield, 3),
SkillTable.getInstance().getInfo(Armor_Maintenance, 1),
SkillTable.getInstance().getInfo(Weapon_Maintenance, 1)}};

private static final Skill[][] ROSE_DESELOPH_BUFFS = {
{SkillTable.getInstance().getInfo(Pet_Might, 3), SkillTable.getInstance().getInfo(Pet_Haste, 2),
SkillTable.getInstance().getInfo(Pet_Focus, 3)},
{SkillTable.getInstance().getInfo(Pet_Might, 3), SkillTable.getInstance().getInfo(Pet_Haste, 2),
SkillTable.getInstance().getInfo(Pet_Focus, 3), SkillTable.getInstance().getInfo(Pet_Wind_Walk, 2),
SkillTable.getInstance().getInfo(Pet_Blessed_Body, 6),
SkillTable.getInstance().getInfo(Pet_Shield, 3)},
{SkillTable.getInstance().getInfo(Pet_Might, 3), SkillTable.getInstance().getInfo(Pet_Haste, 2),
SkillTable.getInstance().getInfo(Pet_Focus, 3), SkillTable.getInstance().getInfo(Pet_Wind_Walk, 2),
SkillTable.getInstance().getInfo(Pet_Blessed_Body, 6),
SkillTable.getInstance().getInfo(Pet_Shield, 3),
SkillTable.getInstance().getInfo(Pet_Death_Whisper, 3),
SkillTable.getInstance().getInfo(Pet_Vampiric_Rage, 4)},
{SkillTable.getInstance().getInfo(Pet_Might, 3), SkillTable.getInstance().getInfo(Pet_Haste, 2),
SkillTable.getInstance().getInfo(Pet_Focus, 3), SkillTable.getInstance().getInfo(Pet_Wind_Walk, 2),
SkillTable.getInstance().getInfo(Pet_Blessed_Body, 6),
SkillTable.getInstance().getInfo(Pet_Shield, 3),
SkillTable.getInstance().getInfo(Pet_Death_Whisper, 3),
SkillTable.getInstance().getInfo(Pet_Vampiric_Rage, 4)}};

private static final Skill[][] ROSE_HYUM_BUFFS = {
{SkillTable.getInstance().getInfo(Pet_Empower, 3), SkillTable.getInstance().getInfo(Pet_Blessed_Soul, 6)},
{SkillTable.getInstance().getInfo(Pet_Empower, 3), SkillTable.getInstance().getInfo(Pet_Blessed_Soul, 6),
SkillTable.getInstance().getInfo(Pet_Wind_Walk, 2),
SkillTable.getInstance().getInfo(Pet_Shield, 3)},
{SkillTable.getInstance().getInfo(Pet_Empower, 3), SkillTable.getInstance().getInfo(Pet_Blessed_Soul, 6),
SkillTable.getInstance().getInfo(Pet_Wind_Walk, 2), SkillTable.getInstance().getInfo(Pet_Shield, 3),
SkillTable.getInstance().getInfo(Pet_Acumen, 3)},
{SkillTable.getInstance().getInfo(Pet_Empower, 3), SkillTable.getInstance().getInfo(Pet_Blessed_Soul, 6),
SkillTable.getInstance().getInfo(Pet_Wind_Walk, 2), SkillTable.getInstance().getInfo(Pet_Shield, 3),
SkillTable.getInstance().getInfo(Pet_Acumen, 3)}};

private static final Skill[][] ROSE_REKANG_BUFFS = {
{SkillTable.getInstance().getInfo(Pet_Blessed_Body, 6),
SkillTable.getInstance().getInfo(Pet_Wind_Walk, 2)},
{SkillTable.getInstance().getInfo(Pet_Blessed_Body, 6), SkillTable.getInstance().getInfo(Pet_Wind_Walk, 2),
SkillTable.getInstance().getInfo(Pet_Blessed_Soul, 6),
SkillTable.getInstance().getInfo(Pet_Shield, 3)},
{SkillTable.getInstance().getInfo(Pet_Blessed_Body, 6), SkillTable.getInstance().getInfo(Pet_Wind_Walk, 2),
SkillTable.getInstance().getInfo(Pet_Blessed_Soul, 6),
SkillTable.getInstance().getInfo(Pet_Shield, 3),
SkillTable.getInstance().getInfo(Armor_Maintenance, 1),
SkillTable.getInstance().getInfo(Weapon_Maintenance, 1)},
{SkillTable.getInstance().getInfo(Pet_Blessed_Body, 6), SkillTable.getInstance().getInfo(Pet_Wind_Walk, 2),
SkillTable.getInstance().getInfo(Pet_Blessed_Soul, 6),
SkillTable.getInstance().getInfo(Pet_Shield, 3),
SkillTable.getInstance().getInfo(Armor_Maintenance, 1),
SkillTable.getInstance().getInfo(Weapon_Maintenance, 1)}};

private static final Skill[][] ROSE_LILIAS_BUFFS = {
{SkillTable.getInstance().getInfo(Pet_Might, 3), SkillTable.getInstance().getInfo(Pet_Haste, 2),
SkillTable.getInstance().getInfo(Pet_Focus, 3)},
{SkillTable.getInstance().getInfo(Pet_Might, 3), SkillTable.getInstance().getInfo(Pet_Haste, 2),
SkillTable.getInstance().getInfo(Pet_Focus, 3)},
{SkillTable.getInstance().getInfo(Pet_Might, 3), SkillTable.getInstance().getInfo(Pet_Haste, 2),
SkillTable.getInstance().getInfo(Pet_Focus, 3), SkillTable.getInstance().getInfo(Pet_Wind_Walk, 2),
SkillTable.getInstance().getInfo(Pet_Blessed_Body, 6),
SkillTable.getInstance().getInfo(Pet_Shield, 3)},
{SkillTable.getInstance().getInfo(Pet_Might, 3), SkillTable.getInstance().getInfo(Pet_Haste, 2),
SkillTable.getInstance().getInfo(Pet_Focus, 3), SkillTable.getInstance().getInfo(Pet_Wind_Walk, 2),
SkillTable.getInstance().getInfo(Pet_Blessed_Body, 6),
SkillTable.getInstance().getInfo(Pet_Shield, 3),
SkillTable.getInstance().getInfo(Pet_Death_Whisper, 3),
SkillTable.getInstance().getInfo(Pet_Vampiric_Rage, 4)}};

private static final Skill[][] ROSE_LAPHAM_BUFFS = {
{SkillTable.getInstance().getInfo(Pet_Empower, 3), SkillTable.getInstance().getInfo(Pet_Blessed_Soul, 6)},
{SkillTable.getInstance().getInfo(Pet_Empower, 3), SkillTable.getInstance().getInfo(Pet_Blessed_Soul, 6),
SkillTable.getInstance().getInfo(Pet_Wind_Walk, 2),
SkillTable.getInstance().getInfo(Pet_Shield, 3)},
{SkillTable.getInstance().getInfo(Pet_Empower, 3), SkillTable.getInstance().getInfo(Pet_Blessed_Soul, 6),
SkillTable.getInstance().getInfo(Pet_Wind_Walk, 2), SkillTable.getInstance().getInfo(Pet_Shield, 3),
SkillTable.getInstance().getInfo(Pet_Acumen, 3)},
{SkillTable.getInstance().getInfo(Pet_Empower, 3), SkillTable.getInstance().getInfo(Pet_Blessed_Soul, 6),
SkillTable.getInstance().getInfo(Pet_Wind_Walk, 2), SkillTable.getInstance().getInfo(Pet_Shield, 3),
SkillTable.getInstance().getInfo(Pet_Acumen, 3)}};

private static final Skill[][] ROSE_MAPHUM_BUFFS = {
{SkillTable.getInstance().getInfo(Pet_Blessed_Body, 6),
SkillTable.getInstance().getInfo(Pet_Wind_Walk, 2)},
{SkillTable.getInstance().getInfo(Pet_Blessed_Body, 6), SkillTable.getInstance().getInfo(Pet_Wind_Walk, 2),
SkillTable.getInstance().getInfo(Pet_Blessed_Soul, 6),
SkillTable.getInstance().getInfo(Pet_Shield, 3)},
{SkillTable.getInstance().getInfo(Pet_Blessed_Body, 6), SkillTable.getInstance().getInfo(Pet_Wind_Walk, 2),
SkillTable.getInstance().getInfo(Pet_Blessed_Soul, 6),
SkillTable.getInstance().getInfo(Pet_Shield, 3),
SkillTable.getInstance().getInfo(Armor_Maintenance, 1),
SkillTable.getInstance().getInfo(Weapon_Maintenance, 1)},
{SkillTable.getInstance().getInfo(Pet_Blessed_Body, 6), SkillTable.getInstance().getInfo(Pet_Wind_Walk, 2),
SkillTable.getInstance().getInfo(Pet_Blessed_Soul, 6),
SkillTable.getInstance().getInfo(Pet_Shield, 3),
SkillTable.getInstance().getInfo(Armor_Maintenance, 1),
SkillTable.getInstance().getInfo(Weapon_Maintenance, 1)}};

private static final Skill[][] IMPROVED_ROSE_DESELOPH_BUFFS = {
{SkillTable.getInstance().getInfo(Improved_Condition, 1),
SkillTable.getInstance().getInfo(Improved_Movement, 1)},
{SkillTable.getInstance().getInfo(Improved_Condition, 1),
SkillTable.getInstance().getInfo(Improved_Movement, 1),
SkillTable.getInstance().getInfo(Improved_Combat, 1),
SkillTable.getInstance().getInfo(Chant_of_Blood_Awakening, 1)},
{SkillTable.getInstance().getInfo(Improved_Condition, 1),
SkillTable.getInstance().getInfo(Improved_Movement, 1),
SkillTable.getInstance().getInfo(Improved_Combat, 1),
SkillTable.getInstance().getInfo(Chant_of_Blood_Awakening, 1),
SkillTable.getInstance().getInfo(Improved_Critical_Attack, 1)},
{SkillTable.getInstance().getInfo(Improved_Condition, 1),
SkillTable.getInstance().getInfo(Improved_Movement, 1),
SkillTable.getInstance().getInfo(Improved_Combat, 1),
SkillTable.getInstance().getInfo(Chant_of_Blood_Awakening, 1),
SkillTable.getInstance().getInfo(Improved_Critical_Attack, 1)}};

private static final Skill[][] IMPROVED_ROSE_HYUM_BUFFS = {
{SkillTable.getInstance().getInfo(Pet_Acumen, 3),
SkillTable.getInstance().getInfo(Improved_Condition, 1)},
{SkillTable.getInstance().getInfo(Pet_Acumen, 3), SkillTable.getInstance().getInfo(Improved_Condition, 1),
SkillTable.getInstance().getInfo(Improved_Combat, 1)},
{SkillTable.getInstance().getInfo(Pet_Acumen, 3), SkillTable.getInstance().getInfo(Improved_Condition, 1),
SkillTable.getInstance().getInfo(Improved_Combat, 1),
SkillTable.getInstance().getInfo(Improved_Movement, 1),},
{SkillTable.getInstance().getInfo(Pet_Acumen, 3), SkillTable.getInstance().getInfo(Improved_Condition, 1),
SkillTable.getInstance().getInfo(Improved_Combat, 1),
SkillTable.getInstance().getInfo(Improved_Movement, 1),
SkillTable.getInstance().getInfo(Improved_Magic, 1),}};

private static final Skill[][] IMPROVED_ROSE_REKANG_BUFFS = {
{SkillTable.getInstance().getInfo(Improved_Combat, 1),
SkillTable.getInstance().getInfo(Improved_Condition, 1)},
{SkillTable.getInstance().getInfo(Improved_Combat, 1),
SkillTable.getInstance().getInfo(Improved_Condition, 1),
SkillTable.getInstance().getInfo(Improved_Movement, 1)},
{SkillTable.getInstance().getInfo(Improved_Combat, 1),
SkillTable.getInstance().getInfo(Improved_Condition, 1),
SkillTable.getInstance().getInfo(Improved_Movement, 1),
SkillTable.getInstance().getInfo(Armor_Maintenance, 1)},
{SkillTable.getInstance().getInfo(Improved_Combat, 1),
SkillTable.getInstance().getInfo(Improved_Condition, 1),
SkillTable.getInstance().getInfo(Improved_Movement, 1),
SkillTable.getInstance().getInfo(Armor_Maintenance, 1),
SkillTable.getInstance().getInfo(Weapon_Maintenance, 1)}};

private static final Skill[][] IMPROVED_ROSE_LILIAS_BUFFS = {
{SkillTable.getInstance().getInfo(Improved_Combat, 1),
SkillTable.getInstance().getInfo(Improved_Condition, 1)},
{SkillTable.getInstance().getInfo(Improved_Combat, 1),
SkillTable.getInstance().getInfo(Improved_Condition, 1),
SkillTable.getInstance().getInfo(Chant_of_Blood_Awakening, 1)},
{SkillTable.getInstance().getInfo(Improved_Combat, 1),
SkillTable.getInstance().getInfo(Improved_Condition, 1),
SkillTable.getInstance().getInfo(Chant_of_Blood_Awakening, 1),
SkillTable.getInstance().getInfo(Improved_Movement, 1)},
{SkillTable.getInstance().getInfo(Improved_Combat, 1),
SkillTable.getInstance().getInfo(Improved_Condition, 1),
SkillTable.getInstance().getInfo(Chant_of_Blood_Awakening, 1),
SkillTable.getInstance().getInfo(Improved_Movement, 1),
SkillTable.getInstance().getInfo(Improved_Critical_Attack, 1)}};

private static final Skill[][] IMPROVED_ROSE_LAPHAM_BUFFS = {
{SkillTable.getInstance().getInfo(Pet_Acumen, 3),
SkillTable.getInstance().getInfo(Improved_Condition, 1)},
{SkillTable.getInstance().getInfo(Pet_Acumen, 3), SkillTable.getInstance().getInfo(Improved_Condition, 1),
SkillTable.getInstance().getInfo(Improved_Combat, 1)},
{SkillTable.getInstance().getInfo(Pet_Acumen, 3), SkillTable.getInstance().getInfo(Improved_Condition, 1),
SkillTable.getInstance().getInfo(Improved_Combat, 1),
SkillTable.getInstance().getInfo(Improved_Movement, 1)},
{SkillTable.getInstance().getInfo(Pet_Acumen, 3), SkillTable.getInstance().getInfo(Improved_Condition, 1),
SkillTable.getInstance().getInfo(Improved_Combat, 1),
SkillTable.getInstance().getInfo(Improved_Movement, 1),
SkillTable.getInstance().getInfo(Improved_Magic, 1)}};

private static final Skill[][] IMPROVED_ROSE_MAPHUM_BUFFS = {
{SkillTable.getInstance().getInfo(Improved_Combat, 1),
SkillTable.getInstance().getInfo(Improved_Condition, 1)},
{SkillTable.getInstance().getInfo(Improved_Combat, 1),
SkillTable.getInstance().getInfo(Improved_Condition, 1),
SkillTable.getInstance().getInfo(Improved_Movement, 1)},
{SkillTable.getInstance().getInfo(Improved_Combat, 1),
SkillTable.getInstance().getInfo(Improved_Condition, 1),
SkillTable.getInstance().getInfo(Improved_Movement, 1),
SkillTable.getInstance().getInfo(Armor_Maintenance, 1),
SkillTable.getInstance().getInfo(Weapon_Maintenance, 1)},
{SkillTable.getInstance().getInfo(Improved_Combat, 1),
SkillTable.getInstance().getInfo(Improved_Condition, 1),
SkillTable.getInstance().getInfo(Improved_Movement, 1),
SkillTable.getInstance().getInfo(Armor_Maintenance, 1),
SkillTable.getInstance().getInfo(Weapon_Maintenance, 1)}};
}

 

 

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Добрый человек zGosu помог сделать, спасибо ему большое)

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Для публикации сообщений создайте учётную запись или авторизуйтесь

Вы должны быть пользователем, чтобы оставить комментарий

Создать учетную запись

Зарегистрируйте новую учётную запись в нашем сообществе. Это очень просто!

Регистрация нового пользователя

Войти

Уже есть аккаунт? Войти в систему.

Войти
Авторизация  

  • Последние посетители   0 пользователей онлайн

    Ни одного зарегистрированного пользователя не просматривает данную страницу

×
×
  • Создать...