Brothers Bound in Chains quest improvements.
Contributed by Mathael.
This commit is contained in:
@ -990,6 +990,19 @@ public class Quest extends AbstractScript implements IIdentifiable
|
||||
return false;
|
||||
}
|
||||
|
||||
public final void notifySummonAgathion(L2PcInstance player, int npcId)
|
||||
{
|
||||
try
|
||||
{
|
||||
onSummonAgathion(player, npcId);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
_log.log(Level.WARNING, "Exception on onSummonAgathion() in notifySummonAgathion(): " + e.getMessage(), e);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// These are methods that java calls to invoke scripts.
|
||||
|
||||
/**
|
||||
@ -1468,6 +1481,10 @@ public class Quest extends AbstractScript implements IIdentifiable
|
||||
{
|
||||
}
|
||||
|
||||
public void onSummonAgathion(L2PcInstance player, int agathionId)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @param npc
|
||||
* @param player
|
||||
@ -2473,6 +2490,11 @@ public class Quest extends AbstractScript implements IIdentifiable
|
||||
setInstanceLeaveId(event -> onInstanceLeave(event.getPlayer(), event.getInstanceWorld()), templateIds);
|
||||
}
|
||||
|
||||
public void addSummonAgathion()
|
||||
{
|
||||
setPlayerSummonAgathion(event -> notifySummonAgathion(event.getPlayer(), event.getAgathionId()));
|
||||
}
|
||||
|
||||
/**
|
||||
* Use this method to get a random party member from a player's party.<br>
|
||||
* Useful when distributing rewards after killing an NPC.
|
||||
|
Reference in New Issue
Block a user