Quests HELP pls!

Initiate Mage
Joined
Jan 24, 2024
Messages
2
Reaction score
1
Friends. Has anyone faced the problem of getting assignments? Tasks are not taken, it gives an error in the dialog

All dialog tabs are working fine, and an error is displayed on the final dialog.

After that, the following error appears in the console:

11:03:22.415 ERROR[PacketProcessor:0]: - QE: exception in onDialog

java.lang.NullPointerException: null

at com.aionemu.gameserver.model.gameobjects.player.QuestStateList.getNormalQuests(Unknown Source) ~[AL-Game.jar:na]
at com.aionemu.gameserver.model.gameobjects.player.QuestStateList.getNormalQuestListSize(Unknown Source) ~[AL-Game.jar:na]
at com.aionemu.gameserver.services.QuestService.checkQuestListSize(Unknown Source) ~[AL-Game.jar:na]
at com.aionemu.gameserver.services.QuestService.startQuest(Unknown Source) ~[AL-Game.jar:na]
at com.aionemu.gameserver.services.QuestService.startQuest(Unknown Source) ~[AL-Game.jar:na]
at com.aionemu.gameserver.questEngine.handlers.QuestHandler.sendQuestStartDialog(Unknown Source) ~[AL-Game.jar:na]
at com.aionemu.gameserver.questEngine.handlers.QuestHandler.sendQuestStartDialog(Unknown Source) ~[AL-Game.jar:na]
at com.aionemu.gameserver.questEngine.handlers.template.ItemCollecting.onDialogEvent(Unknown Source) ~[AL-Game.jar:na]
at com.aionemu.gameserver.questEngine.QuestEngine.onDialog(Unknown Source) [AL-Game.jar:na]
at com.aionemu.gameserver.services.DialogService.A(Unknown Source) [AL-Game.jar:na]
at com.aionemu.gameserver.controllers.NpcController.onDialogSelect(Unknown Source) [AL-Game.jar:na]
at com.aionemu.gameserver.network.aion.A.i.runImpl(Unknown Source) [AL-Game.jar:na]
at com.aionemu.gameserver.network.aion.AionClientPacket.run(Unknown Source) [AL-Game.jar:na]
at com.aionemu.commons.utils.concurrent.ExecuteWrapper.execute(ExecuteWrapper.java:46) [ac-commons-1.3.jar:na]
at com.aionemu.commons.utils.concurrent.ExecuteWrapper.execute(ExecuteWrapper.java:39) [ac-commons-1.3.jar:na]
at com.aionemu.commons.network.PacketProcessor$PacketProcessorTask.run(PacketProcessor.java:264) [ac-commons-1.3.jar:na]
at java.lang.Thread.run(Thread.java:745) [na:1.7.0_80]

public boolean onDialog(QuestEnv env) {
try {
QuestHandler questHandler = null;
if (env.getQuestId() != 0) {
questHandler = getQuestHandlerByQuestId(env.getQuestId());
if (questHandler != null) {
if (questHandler.onDialogEvent(env)) {
return true;
}

QuestTemplate qt = DataManager.QUEST_DATA.getQuestById(env.getQuestId());
if (qt != null && qt.getCategory() == QuestCategory.CHALLENGE_TASK) {
PacketSendUtility.sendPacket(env.getPlayer(), new SM_SYSTEM_MESSAGE(1400855, 9));
}
}
} else {

Npc npc = (Npc) env.getVisibleObject();

for (int questId : getQuestNpc(npc == null ? 0 : npc.getNpcId()).getOnTalkEvent()) {
questHandler = getQuestHandlerByQuestId(questId);
if (questHandler != null) {
env.setQuestId(questId);
if (questHandler.onDialogEvent(env)) {
return true;
}
}
}
env.setQuestId(0);
}
return false;

} catch (Exception ex) {
log.error("QE: exception in onDialog", ex);
return false;
}
//return false;
}
 
Last edited:
Friends. Has anyone faced the problem of getting assignments? Tasks are not taken, it gives an error in the dialog

All dialog tabs are working fine, and an error is displayed on the final dialog.

After that, the following error appears in the console:

11:03:22.415 ERROR[PacketProcessor:0]: - QE: exception in onDialog

java.lang.NullPointerException: null

at com.aionemu.gameserver.model.gameobjects.player.QuestStateList.getNormalQuests(Unknown Source) ~[AL-Game.jar:na]
at com.aionemu.gameserver.model.gameobjects.player.QuestStateList.getNormalQuestListSize(Unknown Source) ~[AL-Game.jar:na]
at com.aionemu.gameserver.services.QuestService.checkQuestListSize(Unknown Source) ~[AL-Game.jar:na]
at com.aionemu.gameserver.services.QuestService.startQuest(Unknown Source) ~[AL-Game.jar:na]
at com.aionemu.gameserver.services.QuestService.startQuest(Unknown Source) ~[AL-Game.jar:na]
at com.aionemu.gameserver.questEngine.handlers.QuestHandler.sendQuestStartDialog(Unknown Source) ~[AL-Game.jar:na]
at com.aionemu.gameserver.questEngine.handlers.QuestHandler.sendQuestStartDialog(Unknown Source) ~[AL-Game.jar:na]
at com.aionemu.gameserver.questEngine.handlers.template.ItemCollecting.onDialogEvent(Unknown Source) ~[AL-Game.jar:na]
at com.aionemu.gameserver.questEngine.QuestEngine.onDialog(Unknown Source) [AL-Game.jar:na]
at com.aionemu.gameserver.services.DialogService.A(Unknown Source) [AL-Game.jar:na]
at com.aionemu.gameserver.controllers.NpcController.onDialogSelect(Unknown Source) [AL-Game.jar:na]
at com.aionemu.gameserver.network.aion.A.i.runImpl(Unknown Source) [AL-Game.jar:na]
at com.aionemu.gameserver.network.aion.AionClientPacket.run(Unknown Source) [AL-Game.jar:na]
at com.aionemu.commons.utils.concurrent.ExecuteWrapper.execute(ExecuteWrapper.java:46) [ac-commons-1.3.jar:na]
at com.aionemu.commons.utils.concurrent.ExecuteWrapper.execute(ExecuteWrapper.java:39) [ac-commons-1.3.jar:na]
at com.aionemu.commons.network.PacketProcessor$PacketProcessorTask.run(PacketProcessor.java:264) [ac-commons-1.3.jar:na]
at java.lang.Thread.run(Thread.java:745) [na:1.7.0_80]

public boolean onDialog(QuestEnv env) {
try {
QuestHandler questHandler = null;
if (env.getQuestId() != 0) {
questHandler = getQuestHandlerByQuestId(env.getQuestId());
if (questHandler != null) {
if (questHandler.onDialogEvent(env)) {
return true;
}

QuestTemplate qt = DataManager.QUEST_DATA.getQuestById(env.getQuestId());
if (qt != null && qt.getCategory() == QuestCategory.CHALLENGE_TASK) {
PacketSendUtility.sendPacket(env.getPlayer(), new SM_SYSTEM_MESSAGE(1400855, 9));
}
}
} else {

Npc npc = (Npc) env.getVisibleObject();

for (int questId : getQuestNpc(npc == null ? 0 : npc.getNpcId()).getOnTalkEvent()) {
questHandler = getQuestHandlerByQuestId(questId);
if (questHandler != null) {
env.setQuestId(questId);
if (questHandler.onDialogEvent(env)) {
return true;
}
}
}
env.setQuestId(0);
}
return false;

} catch (Exception ex) {
log.error("QE: exception in onDialog", ex);
return false;
}
//return false;
}

What is the build?
 
Upvote 0
Back