Quest Request of the Seeker (10363).

Contributed by spider.
This commit is contained in:
MobiusDev
2015-08-12 12:48:47 +00:00
parent cd6d0d7188
commit d5a85ec14c
18 changed files with 391 additions and 68 deletions

View File

@ -761,15 +761,16 @@ public class Quest extends AbstractScript implements IIdentifiable
}
/**
* @param npc
* @param caster
* @param actionId
*/
public final void notifySocialActionSee(L2PcInstance caster, int actionId)
public final void notifySocialActionSee(L2Npc npc, L2PcInstance caster, int actionId)
{
String res = null;
try
{
res = onSocialActionSee(caster, actionId);
res = onSocialActionSee(npc, caster, actionId);
}
catch (Exception e)
{
@ -1226,11 +1227,12 @@ public class Quest extends AbstractScript implements IIdentifiable
}
/**
* @param caster the player who used the social action
* @param actionId the actual action id that was used
* @param npc the NPC that saw the social action.
* @param caster the player who used the social action.
* @param actionId the actual action id that was used.
* @return
*/
public String onSocialActionSee(L2PcInstance caster, int actionId)
public String onSocialActionSee(L2Npc npc, L2PcInstance caster, int actionId)
{
return null;
}
@ -2057,7 +2059,7 @@ public class Quest extends AbstractScript implements IIdentifiable
*/
public void addSocialActionSeeId(int... npcIds)
{
setNpcSocialActionSeeId(event -> notifySocialActionSee(event.getCaster(), event.getActionId()), npcIds);
setNpcSocialActionSeeId(event -> notifySocialActionSee(event.getNpc(), event.getCaster(), event.getActionId()), npcIds);
}
/**