Minor improvements for Brothers Bound in Chains.
This commit is contained in:
@@ -58,12 +58,12 @@ public final class SummonAgathion extends AbstractEffect
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerSummonAgathion(effector.getActingPlayer(), _npcId));
|
|
||||||
|
|
||||||
final L2PcInstance player = effected.getActingPlayer();
|
final L2PcInstance player = effected.getActingPlayer();
|
||||||
|
|
||||||
player.setAgathionId(_npcId);
|
player.setAgathionId(_npcId);
|
||||||
player.sendPacket(new ExUserInfoCubic(player));
|
player.sendPacket(new ExUserInfoCubic(player));
|
||||||
player.broadcastCharInfo();
|
player.broadcastCharInfo();
|
||||||
|
|
||||||
|
EventDispatcher.getInstance().notifyEventAsync(new OnPlayerSummonAgathion(effector.getActingPlayer(), _npcId));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -45,7 +45,7 @@ public class Q00500_BrothersBoundInChains extends Quest
|
|||||||
private static final int DARK_JUDGE = 30981;
|
private static final int DARK_JUDGE = 30981;
|
||||||
// Items
|
// Items
|
||||||
private static final int GEMSTONE_B = 2132;
|
private static final int GEMSTONE_B = 2132;
|
||||||
private static final int PENITENT_MANACLES = 36060; // TODO: check: why multiple items with this name
|
private static final int PENITENT_MANACLES = 36060;
|
||||||
private static final int CRUMBS_OF_PENITENCE = 36077;
|
private static final int CRUMBS_OF_PENITENCE = 36077;
|
||||||
// Skills
|
// Skills
|
||||||
private static final int HOUR_OF_PENITENCE[] =
|
private static final int HOUR_OF_PENITENCE[] =
|
||||||
@@ -56,8 +56,8 @@ public class Q00500_BrothersBoundInChains extends Quest
|
|||||||
15328,
|
15328,
|
||||||
15329
|
15329
|
||||||
};
|
};
|
||||||
// Agathion
|
// Agathions
|
||||||
private static final int SIN_EATER[] =
|
private static final int SIN_EATERS[] =
|
||||||
{
|
{
|
||||||
16098,
|
16098,
|
||||||
16099,
|
16099,
|
||||||
@@ -92,13 +92,13 @@ public class Q00500_BrothersBoundInChains extends Quest
|
|||||||
{
|
{
|
||||||
case "buff":
|
case "buff":
|
||||||
{
|
{
|
||||||
if ((player != null) && IntStream.of(SIN_EATER).anyMatch(x -> x == player.getAgathionId()))
|
if (player != null)
|
||||||
{
|
{
|
||||||
final Skill skill = SkillData.getInstance().getSkill(15325, 1); // Hour of Penitence
|
final Skill skill = SkillData.getInstance().getSkill(15325, 1); // Hour of Penitence
|
||||||
skill.activateSkill(player, player);
|
skill.activateSkill(player, player);
|
||||||
startQuestTimer("buff", 270000, null, player); // Rebuff every 4min30 (retail like)
|
startQuestTimer("buff", 270000, null, player); // Rebuff every 4min30 (retail like)
|
||||||
}
|
}
|
||||||
break;
|
return null;
|
||||||
}
|
}
|
||||||
case "30981-02.htm":
|
case "30981-02.htm":
|
||||||
case "30981-03.htm":
|
case "30981-03.htm":
|
||||||
@@ -200,7 +200,10 @@ public class Q00500_BrothersBoundInChains extends Quest
|
|||||||
@Override
|
@Override
|
||||||
public void onSummonAgathion(L2PcInstance player, int agathionId)
|
public void onSummonAgathion(L2PcInstance player, int agathionId)
|
||||||
{
|
{
|
||||||
startQuestTimer("buff", 2500, null, player);
|
if (IntStream.of(SIN_EATERS).anyMatch(x -> x == agathionId)) // TODO: Register IDs
|
||||||
|
{
|
||||||
|
startQuestTimer("buff", 2500, null, player);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@RegisterEvent(EventType.ON_ATTACKABLE_KILL)
|
@RegisterEvent(EventType.ON_ATTACKABLE_KILL)
|
||||||
|
Reference in New Issue
Block a user