Skilled Illusionist
- Joined
- Nov 8, 2019
- Messages
- 307
- Reaction score
- 302
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature currently requires accessing the site using the built-in Safari browser.
I cannot get the quest [14152] Spoiler Alert. I click on it and nothing happens.
No, I haven't killed Chairman Garnis yet It must be that then, it's a bit confusing when the quest icon is showing and you cannot pick it up. I will make sure this doesn't happen again and check the quest conditions firstDo you fulfill the quest conditions?
AionCodex Quest 14152
Oh and btw the QuestScript _14152_Spoiler_Alert.java is horrible....
Refuse a quest to start it WTF
case REFUSE_QUEST: {
QuestService.startQuest(env);
You should read it 100%No, I haven't killed Chairman Garnis yetIt must be that then, it's a bit confusing when the quest icon is showing and you cannot pick it up. I will make sure this doesn't happen again and check the quest conditions first
/*
* =====================================================================================*
* This file is part of Aion-Unique (Aion-Unique Home Software Development) *
* Aion-Unique Development is a closed Aion Project that use Old Aion Project Base *
* Like Aion-Lightning, Aion-Engine, Aion-Core, Aion-Extreme, Aion-NextGen, ArchSoft, *
* Aion-Ger, U3J, Encom And other Aion project, All Credit Content *
* That they make is belong to them/Copyright is belong to them. And All new Content *
* that Aion-Unique make the copyright is belong to Aion-Unique *
* You may have agreement with Aion-Unique Development, before use this Engine/Source *
* You have agree with all of Term of Services agreement with Aion-Unique Development *
* =====================================================================================*
*/
package quest.quest_specialize;
import com.aionemu.gameserver.model.gameobjects.Npc;
import com.aionemu.gameserver.model.gameobjects.player.Player;
import com.aionemu.gameserver.questEngine.handlers.QuestHandler;
import com.aionemu.gameserver.questEngine.model.QuestDialog;
import com.aionemu.gameserver.questEngine.model.QuestEnv;
import com.aionemu.gameserver.questEngine.model.QuestState;
import com.aionemu.gameserver.questEngine.model.QuestStatus;
import com.aionemu.gameserver.services.QuestService;
/****/
/** Author Ghostfur & Unknown (Aion-Unique)
/****/
public class _14152SpoilerAlert extends QuestHandler {
private final static int questId = 14152;
public _14152SpoilerAlert() {
super(questId);
}
@Override
public void register() {
qe.registerQuestNpc(204504).addOnQuestStart(questId); // Sofne
qe.registerQuestNpc(204504).addOnTalkEvent(questId);// Sofne
qe.registerQuestNpc(204574).addOnTalkEvent(questId); // Finn
qe.registerQuestNpc(203705).addOnTalkEvent(questId); // Jumentis
qe.registerQuestNpc(212151).addOnKillEvent(questId); // Chairman Garnis
}
@Override
public boolean onDialogEvent(QuestEnv env) {
final Player player = env.getPlayer();
int targetId = 0;
if (env.getVisibleObject() instanceof Npc) {
targetId = ((Npc) env.getVisibleObject()).getNpcId();
}
QuestState qs = player.getQuestStateList().getQuestState(questId);
DialogAction dialog = env.getDialog();
if (qs == null || qs.getStatus() == QuestStatus.NONE) {
if (targetId == 204504) { //Sofne.
switch (dialog) {
case START_DIALOG: {
return sendQuestDialog(env, 1011);
}
case ASK_ACCEPTION: {
return sendQuestDialog(env, 4);
}
case ACCEPT_QUEST: {
QuestService.startQuest(env);
qs.setQuestVarById(5, 1);
updateQuestStatus(env);
return sendQuestDialog(env, 1003);
}
case REFUSE_QUEST_2: {
return sendQuestDialog(env, 1004);
}
default:
break;
}
}
}
else if (qs.getStatus() == QuestStatus.START) {
if (targetId == 204574) { //Finn.
switch (dialog) {
case START_DIALOG: {
return sendQuestDialog(env, 1352);
}
case STEP_TO_1: {
qs.setQuestVarById(5, 2);
updateQuestStatus(env);
giveQuestItem(env, 182215481, 1);
return closeDialogWindow(env);
}
default:
break;
}
}
else if (targetId == 203705) { //Jumentis.
switch (dialog) {
case START_DIALOG: {
return sendQuestDialog(env, 1693);
}
case STEP_TO_2: {
removeQuestItem(env, 182215481, 1);
qs.setQuestVarById(5, 0);
qs.setQuestVarById(0, 0);
updateQuestStatus(env);
return closeDialogWindow(env);
}
default:
break;
}
}
}
else if (qs.getStatus() == QuestStatus.REWARD) {
if (targetId == 204504) { //Sofne.
int var = qs.getQuestVarById(0);
if (env.getDialog() == DialogAction.USE_OBJECT && var == 1) {
return sendQuestDialog(env, 2375);
}
else {
return sendQuestEndDialog(env);
}
}
}
return false;
}
@Override
public boolean onKillEvent(QuestEnv env) {
Player player = env.getPlayer();
QuestState qs = player.getQuestStateList().getQuestState(questId);
if (qs == null || qs.getStatus() != QuestStatus.START) {
return false;
}
int var = qs.getQuestVarById(0);
int targetId = 0;
if (env.getVisibleObject() instanceof Npc) {
targetId = ((Npc) env.getVisibleObject()).getNpcId();
}
if (targetId == 212151 && var == 0) { // Chairman Garnis
qs.setQuestVarById(0, 1);
qs.setStatus(QuestStatus.REWARD);
updateQuestStatus(env);
return true;
}
return false;
}
}
It's the same code as this one, but I haven't tested this mission yet. I'll take a look if there's any problem.You should read it 100%
!!! Not accepted quests !!!
Orders From Perento
Lepharist Poison Research
Java:/* * =====================================================================================* * This file is part of Aion-Unique (Aion-Unique Home Software Development) * * Aion-Unique Development is a closed Aion Project that use Old Aion Project Base * * Like Aion-Lightning, Aion-Engine, Aion-Core, Aion-Extreme, Aion-NextGen, ArchSoft, * * Aion-Ger, U3J, Encom And other Aion project, All Credit Content * * That they make is belong to them/Copyright is belong to them. And All new Content * * that Aion-Unique make the copyright is belong to Aion-Unique * * You may have agreement with Aion-Unique Development, before use this Engine/Source * * You have agree with all of Term of Services agreement with Aion-Unique Development * * =====================================================================================* */ package quest.quest_specialize; import com.aionemu.gameserver.model.gameobjects.Npc; import com.aionemu.gameserver.model.gameobjects.player.Player; import com.aionemu.gameserver.questEngine.handlers.QuestHandler; import com.aionemu.gameserver.questEngine.model.QuestDialog; import com.aionemu.gameserver.questEngine.model.QuestEnv; import com.aionemu.gameserver.questEngine.model.QuestState; import com.aionemu.gameserver.questEngine.model.QuestStatus; import com.aionemu.gameserver.services.QuestService; /****/ /** Author Ghostfur & Unknown (Aion-Unique) /****/ public class _14152SpoilerAlert extends QuestHandler { private final static int questId = 14152; public _14152SpoilerAlert() { super(questId); } @Override public void register() { qe.registerQuestNpc(204504).addOnQuestStart(questId); // Sofne qe.registerQuestNpc(204504).addOnTalkEvent(questId);// Sofne qe.registerQuestNpc(204574).addOnTalkEvent(questId); // Finn qe.registerQuestNpc(203705).addOnTalkEvent(questId); // Jumentis qe.registerQuestNpc(212151).addOnKillEvent(questId); // Chairman Garnis } @Override public boolean onDialogEvent(QuestEnv env) { final Player player = env.getPlayer(); int targetId = 0; if (env.getVisibleObject() instanceof Npc) { targetId = ((Npc) env.getVisibleObject()).getNpcId(); } QuestState qs = player.getQuestStateList().getQuestState(questId); DialogAction dialog = env.getDialog(); if (qs == null || qs.getStatus() == QuestStatus.NONE) { if (targetId == 204504) { //Sofne. switch (dialog) { case START_DIALOG: { return sendQuestDialog(env, 1011); } case ASK_ACCEPTION: { return sendQuestDialog(env, 4); } case ACCEPT_QUEST: { QuestService.startQuest(env); qs.setQuestVarById(5, 1); updateQuestStatus(env); return sendQuestDialog(env, 1003); } case REFUSE_QUEST_2: { return sendQuestDialog(env, 1004); } default: break; } } } else if (qs.getStatus() == QuestStatus.START) { if (targetId == 204574) { //Finn. switch (dialog) { case START_DIALOG: { return sendQuestDialog(env, 1352); } case STEP_TO_1: { qs.setQuestVarById(5, 2); updateQuestStatus(env); giveQuestItem(env, 182215481, 1); return closeDialogWindow(env); } default: break; } } else if (targetId == 203705) { //Jumentis. switch (dialog) { case START_DIALOG: { return sendQuestDialog(env, 1693); } case STEP_TO_2: { removeQuestItem(env, 182215481, 1); qs.setQuestVarById(5, 0); qs.setQuestVarById(0, 0); updateQuestStatus(env); return closeDialogWindow(env); } default: break; } } } else if (qs.getStatus() == QuestStatus.REWARD) { if (targetId == 204504) { //Sofne. int var = qs.getQuestVarById(0); if (env.getDialog() == DialogAction.USE_OBJECT && var == 1) { return sendQuestDialog(env, 2375); } else { return sendQuestEndDialog(env); } } } return false; } @Override public boolean onKillEvent(QuestEnv env) { Player player = env.getPlayer(); QuestState qs = player.getQuestStateList().getQuestState(questId); if (qs == null || qs.getStatus() != QuestStatus.START) { return false; } int var = qs.getQuestVarById(0); int targetId = 0; if (env.getVisibleObject() instanceof Npc) { targetId = ((Npc) env.getVisibleObject()).getNpcId(); } if (targetId == 212151 && var == 0) { // Chairman Garnis qs.setQuestVarById(0, 1); qs.setStatus(QuestStatus.REWARD); updateQuestStatus(env); return true; } return false; } }
Attention, this code has not been tested, the code was just quickly rewritten from AionGer to Encom
the one you use is the same as this one? I'm correcting the quests from this emulator but sometimes there are other more complicated problems so I go to the 3.5 or 4.3 emulator from Robyson to understand how it works. I wanted to do the random Decompose system in the encom that has "Aion_GER_5.8_rev279_Full" working but it doesn't have it in the encom and the same for the drop that doesn't have a random system are two big things that are taking a lot of my time and I can't find the solution.You should read it 100%
!!! Not accepted quests !!!
Orders From Perento
Lepharist Poison Research
Java:/* * =====================================================================================* * This file is part of Aion-Unique (Aion-Unique Home Software Development) * * Aion-Unique Development is a closed Aion Project that use Old Aion Project Base * * Like Aion-Lightning, Aion-Engine, Aion-Core, Aion-Extreme, Aion-NextGen, ArchSoft, * * Aion-Ger, U3J, Encom And other Aion project, All Credit Content * * That they make is belong to them/Copyright is belong to them. And All new Content * * that Aion-Unique make the copyright is belong to Aion-Unique * * You may have agreement with Aion-Unique Development, before use this Engine/Source * * You have agree with all of Term of Services agreement with Aion-Unique Development * * =====================================================================================* */ package quest.quest_specialize; import com.aionemu.gameserver.model.gameobjects.Npc; import com.aionemu.gameserver.model.gameobjects.player.Player; import com.aionemu.gameserver.questEngine.handlers.QuestHandler; import com.aionemu.gameserver.questEngine.model.QuestDialog; import com.aionemu.gameserver.questEngine.model.QuestEnv; import com.aionemu.gameserver.questEngine.model.QuestState; import com.aionemu.gameserver.questEngine.model.QuestStatus; import com.aionemu.gameserver.services.QuestService; /****/ /** Author Ghostfur & Unknown (Aion-Unique) /****/ public class _14152SpoilerAlert extends QuestHandler { private final static int questId = 14152; public _14152SpoilerAlert() { super(questId); } @Override public void register() { qe.registerQuestNpc(204504).addOnQuestStart(questId); // Sofne qe.registerQuestNpc(204504).addOnTalkEvent(questId);// Sofne qe.registerQuestNpc(204574).addOnTalkEvent(questId); // Finn qe.registerQuestNpc(203705).addOnTalkEvent(questId); // Jumentis qe.registerQuestNpc(212151).addOnKillEvent(questId); // Chairman Garnis } @Override public boolean onDialogEvent(QuestEnv env) { final Player player = env.getPlayer(); int targetId = 0; if (env.getVisibleObject() instanceof Npc) { targetId = ((Npc) env.getVisibleObject()).getNpcId(); } QuestState qs = player.getQuestStateList().getQuestState(questId); DialogAction dialog = env.getDialog(); if (qs == null || qs.getStatus() == QuestStatus.NONE) { if (targetId == 204504) { //Sofne. switch (dialog) { case START_DIALOG: { return sendQuestDialog(env, 1011); } case ASK_ACCEPTION: { return sendQuestDialog(env, 4); } case ACCEPT_QUEST: { QuestService.startQuest(env); qs.setQuestVarById(5, 1); updateQuestStatus(env); return sendQuestDialog(env, 1003); } case REFUSE_QUEST_2: { return sendQuestDialog(env, 1004); } default: break; } } } else if (qs.getStatus() == QuestStatus.START) { if (targetId == 204574) { //Finn. switch (dialog) { case START_DIALOG: { return sendQuestDialog(env, 1352); } case STEP_TO_1: { qs.setQuestVarById(5, 2); updateQuestStatus(env); giveQuestItem(env, 182215481, 1); return closeDialogWindow(env); } default: break; } } else if (targetId == 203705) { //Jumentis. switch (dialog) { case START_DIALOG: { return sendQuestDialog(env, 1693); } case STEP_TO_2: { removeQuestItem(env, 182215481, 1); qs.setQuestVarById(5, 0); qs.setQuestVarById(0, 0); updateQuestStatus(env); return closeDialogWindow(env); } default: break; } } } else if (qs.getStatus() == QuestStatus.REWARD) { if (targetId == 204504) { //Sofne. int var = qs.getQuestVarById(0); if (env.getDialog() == DialogAction.USE_OBJECT && var == 1) { return sendQuestDialog(env, 2375); } else { return sendQuestEndDialog(env); } } } return false; } @Override public boolean onKillEvent(QuestEnv env) { Player player = env.getPlayer(); QuestState qs = player.getQuestStateList().getQuestState(questId); if (qs == null || qs.getStatus() != QuestStatus.START) { return false; } int var = qs.getQuestVarById(0); int targetId = 0; if (env.getVisibleObject() instanceof Npc) { targetId = ((Npc) env.getVisibleObject()).getNpcId(); } if (targetId == 212151 && var == 0) { // Chairman Garnis qs.setQuestVarById(0, 1); qs.setStatus(QuestStatus.REWARD); updateQuestStatus(env); return true; } return false; } }
Attention, this code has not been tested, the code was just quickly rewritten from AionGer to Encom
Its not the same code as it is on GithubIt's the same code as this one, but I haven't tested this mission yet. I'll take a look if there's any problem.
yes I saw ^^`` it was just to see if you are attentive to the details hauahuahuaIts not the same code as it is on Github
the quest has already been fixed "github"I cannot get the quest [14152] Spoiler Alert. I click on it and nothing happens.
Did you test it ?the quest has already been fixed "github"
yes, I always do the test so as not to break the code in "github"Did you test it ?
You have to adapt but it always works out, I always modify it in a way that works. but speaking well the truth is very convoluted the code "encom" the quest system has some that I'm breaking my head to make appear on the npc but even so they are not displayed.You're welcome but any time i see the encom code i wanna
I know AionGer has its own Bugs ^^
I'm correcting a giant package of missions and quests at the moment it may take a while but I'll look into it.Is The Ranger Preceptor's task [03924] [Elyos] working for anyone? It's not working for me. I use the transformation skill and nothing happens.
It all comes down to taste, for me it's a pastime I use to relax, free time, nothing more than that, it's another issue that I'm learning about and helping those who like this version.Guys, You are the best, but what's the point in developing 5.8 version? As far as I know, this version is absolutely unpopular, there are 0 freeshards even though some of you have a retail version. I mean, I see a potential to make about 3.0, 4.0, 5.0 versions as one realm, but in that case, isn't it better to take client of 7.0 + and work from that point?
No offense please, I am truly interested in joining Aion development, but I need to put some things in my head in a right place.
As someone who last played retail in 2.5, to me 5.8 is a great balance of being similar to older versions but with a lot of QoL improvements. Version 7.x is just too different for me. Also, the 7.x emulators I’ve tried had way more issues. This code certainly has some minor issues that need to be addressed, but nothing game breaking that I’ve encountered or heard of.Guys, You are the best, but what's the point in developing 5.8 version? As far as I know, this version is absolutely unpopular, there are 0 freeshards even though some of you have a retail version. I mean, I see a potential to make about 3.0, 4.0, 5.0 versions as one realm, but in that case, isn't it better to take client of 7.0 + and work from that point?
No offense please, I am truly interested in joining Aion development, but I need to put some things in my head in a right place.