Removed simulated onTalk method.

This commit is contained in:
MobiusDev
2017-08-09 00:11:10 +00:00
parent af0ea3c255
commit a35d8a82c3
103 changed files with 677 additions and 1053 deletions

View File

@ -613,9 +613,8 @@ public class Quest extends AbstractScript implements IIdentifiable
/**
* @param npc
* @param player
* @param isSimulated
*/
public final void notifyTalk(L2Npc npc, L2PcInstance player, boolean isSimulated)
public final void notifyTalk(L2Npc npc, L2PcInstance player)
{
String res = null;
try
@ -636,7 +635,7 @@ public class Quest extends AbstractScript implements IIdentifiable
}
else
{
res = onTalk(npc, player, isSimulated);
res = onTalk(npc, player);
}
}
catch (Exception e)
@ -1125,19 +1124,6 @@ public class Quest extends AbstractScript implements IIdentifiable
return null;
}
/**
* This function is called whenever a player clicks to the "Quest" link of an NPC that is registered for the quest.<br>
* <font color="red"><b>This method overrides {@link #onTalk(L2Npc, L2PcInstance)}</b></font>
* @param npc this parameter contains a reference to the exact instance of the NPC that the player is talking with.
* @param talker this parameter contains a reference to the exact instance of the player who is talking to the NPC.
* @param isSimulated this parameter contains indication if the call to this onTalk is just to verify if the player has some buisness with this npc or not, no actions should be taken if its true!
* @return the text returned by the event (may be {@code null}, a filename or just text)
*/
public String onTalk(L2Npc npc, L2PcInstance talker, boolean isSimulated)
{
return onTalk(npc, talker);
}
/**
* This function is called whenever a player talks to an NPC that is registered for the quest.<br>
* That is, it is triggered from the very first click on the NPC, not via another dialog.<br>