Skip to content

Instantly share code, notes, and snippets.

@Langerz82
Created October 14, 2018 20:35
Show Gist options
  • Save Langerz82/f6a84a94bdf01de31edb955deba945d8 to your computer and use it in GitHub Desktop.
Save Langerz82/f6a84a94bdf01de31edb955deba945d8 to your computer and use it in GitHub Desktop.
diff --git AL-Game/src/com/aionemu/gameserver/model/DialogPage.java AL-Game/src/com/aionemu/gameserver/model/DialogPage.java
index 4d0c59e..5d6f624 100644
--- AL-Game/src/com/aionemu/gameserver/model/DialogPage.java
+++ AL-Game/src/com/aionemu/gameserver/model/DialogPage.java
@@ -35,6 +35,7 @@ public enum DialogPage {
SELECT_QUEST_REWARD_WINDOW8(48),
SELECT_QUEST_REWARD_WINDOW9(49),
SELECT_QUEST_REWARD_WINDOW10(50),
+ SELECT_QUEST_REWARD_WINDOW11(51),
VENDOR(DialogAction.OPEN_VENDOR, 13),
RETRIEVE_CHAR_WAREHOUSE(DialogAction.RETRIEVE_CHAR_WAREHOUSE, 14),
DEPOSIT_CHAR_WAREHOUSE(DialogAction.DEPOSIT_CHAR_WAREHOUSE, 15),
diff --git AL-Game/src/com/aionemu/gameserver/questEngine/handlers/QuestHandler.java AL-Game/src/com/aionemu/gameserver/questEngine/handlers/QuestHandler.java
index 3e97be1..ee25a22 100644
--- AL-Game/src/com/aionemu/gameserver/questEngine/handlers/QuestHandler.java
+++ AL-Game/src/com/aionemu/gameserver/questEngine/handlers/QuestHandler.java
@@ -155,8 +155,9 @@ public abstract class QuestHandler extends AbstractQuestHandler implements Const
*/
public boolean sendQuestDialog(QuestEnv env, int dialogId) {
boolean isExploitDialog = false;
- if (DialogPage.getPageByAction(dialogId) != null) {
- switch (DialogPage.getPageByAction(dialogId)) {
+ DialogPage dp = DialogPage.getPageByAction(dialogId);
+ if (dp != null) {
+ switch (dp) {
case SELECT_QUEST_REWARD_WINDOW1:
case SELECT_QUEST_REWARD_WINDOW2:
case SELECT_QUEST_REWARD_WINDOW3:
@@ -167,6 +168,7 @@ public abstract class QuestHandler extends AbstractQuestHandler implements Const
case SELECT_QUEST_REWARD_WINDOW8:
case SELECT_QUEST_REWARD_WINDOW9:
case SELECT_QUEST_REWARD_WINDOW10:
+ case SELECT_QUEST_REWARD_WINDOW11:
isExploitDialog = true;
break;
default:
@@ -398,10 +400,12 @@ public abstract class QuestHandler extends AbstractQuestHandler implements Const
}
}
changeQuestStep(env, step, nextStep, reward);
- return sendQuestDialog(env, checkOkId);
+ sendQuestDialog(env, checkOkId);
+ return true;
}
else {
- return sendQuestDialog(env, checkFailId);
+ sendQuestDialog(env, checkFailId);
+ return false;
}
}
return false;
diff --git AL-Game/src/com/aionemu/gameserver/services/DialogService.java AL-Game/src/com/aionemu/gameserver/services/DialogService.java
index 7358d2d..2dbbc46 100644
--- AL-Game/src/com/aionemu/gameserver/services/DialogService.java
+++ AL-Game/src/com/aionemu/gameserver/services/DialogService.java
@@ -1359,6 +1359,9 @@ public class DialogService {
}
break;
}
+ case 39:
+ // TODO Figure out proper code.
+ return;
default: {
if (questId > 0) {
if (dialogId == 23 && player.getInventory().isFull()) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment