Jump to content
  • 0

The quest does not show up in the quests menu


Question

Posted

Hello everyone ! I created a homemade quest it works very well but it does not appear in the quests menu I have however added cessis in questname-e.dat

 

1	40000	1	a,Test\0	a,Livret l'objet\0	a,TESTA vous demande d'apporter l'objet TEST à TESTB.\\n\0	0															0															-84108.00000000	244604.00000000	-3729.00000000	0	0	3	a,Test Quête B\0	1	1	1	30048	-84436.00000000	242793.00000000	-3729.00000000	a,No Requirements\0	a,Livret l'objet a TESTB.\0	0																																																																						0						0	0	0	30	0	4	15623	15624	57	906								4	5672	446	2466	1								1	0			
1	40000	4294967295	a,Jewel of Valakas\0	a,	a,	0															0															183664.00000000	-114944.00000000	-3335.00000000	84	0	1	a,	1	1	1	31540	183664.00000000	-114944.00000000	-3335.00000000	a,No record of having completed this quest today\0	a,There is a mysterious jewel that teleports you very close to the Hall of Flames.\0	0																																																																						1	7267					0	0	0	187	0	1	21896											1	1											1	2			

 

If you could give me a line of research because I have no idea of the problem thank you in advance good evening / day to you

5 answers to this question

Recommended Posts

  • 0
Posted
23 hours ago, shadowmasteur said:

Hello,

 

I use Lineage 2 High Five. 

Try to use a lower id, like 10k or something

  • 0
Posted

i modified 

/*
 * Copyright © 2004-2021 L2J DataPack
 * 
 * This file is part of L2J DataPack.
 * 
 * L2J DataPack is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * L2J DataPack is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
package com.l2jserver.datapack.handlers.bypasshandlers;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.logging.Level;

import com.l2jserver.gameserver.data.xml.impl.NpcData;
import com.l2jserver.gameserver.handler.IBypassHandler;
import com.l2jserver.gameserver.instancemanager.QuestManager;
import com.l2jserver.gameserver.model.L2World;
import com.l2jserver.gameserver.model.actor.L2Character;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.actor.templates.L2NpcTemplate;
import com.l2jserver.gameserver.model.events.EventType;
import com.l2jserver.gameserver.model.events.listeners.AbstractEventListener;
import com.l2jserver.gameserver.model.quest.Quest;
import com.l2jserver.gameserver.model.quest.QuestState;
import com.l2jserver.gameserver.network.SystemMessageId;
import com.l2jserver.gameserver.network.serverpackets.ActionFailed;
import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage;
import com.l2jserver.gameserver.util.StringUtil;

public class QuestLink implements IBypassHandler {
	private static final int MAX_QUEST_COUNT = 40;
	private static final int TO_LEAD_AND_BE_LED = 118;
	private static final int THE_LEADER_AND_THE_FOLLOWER = 123;
	private static final String[] COMMANDS = {
		"Quest"
	};
	
	@Override
	public boolean useBypass(String command, L2PcInstance activeChar, L2Character target) {
		String quest = "";
		try {
			quest = command.substring(5).trim();
		} catch (IndexOutOfBoundsException ioobe) {
		}
		if (quest.length() == 0) {
			showQuestWindow(activeChar, (L2Npc) target);
		} else {
			int questNameEnd = quest.indexOf(" ");
			if (questNameEnd == -1) {
				showQuestWindow(activeChar, (L2Npc) target, quest);
			} else {
				activeChar.processQuestEvent(quest.substring(0, questNameEnd), quest.substring(questNameEnd).trim());
			}
		}
		return true;
	}
	
	/**
	 * Open a choose quest window on client with all quests available of the L2NpcInstance.<br>
	 * <b><u>Actions</u>:</b><br>
	 * <li>Send a Server->Client NpcHtmlMessage containing the text of the L2NpcInstance to the L2PcInstance</li>
	 * @param player The L2PcInstance that talk with the L2NpcInstance
	 * @param npc The table containing quests of the L2NpcInstance
	 * @param quests the quest available
	 */
	private static void showQuestChooseWindow(L2PcInstance player, L2Npc npc, Quest[] quests) {
		final StringBuilder sb = StringUtil.startAppend(150, "<html><body>");
		String state = "";
		String color = "";
		int questId = -1;
		for (Quest quest : quests) {
			if (quest == null) {
				continue;
			}
			
			final QuestState qs = player.getQuestState(quest.getName());
			if ((qs == null) || qs.isCreated()) {
				state = quest.isCustomQuest() ? "" : "01";
				if (quest.canStartQuest(player)) {
					color = "bbaa88";
				} else {
					color = "a62f31";
				}
			} else if (qs.isStarted()) {
				state = quest.isCustomQuest() ? " (In Progress)" : "02";
				color = "ffdd66";
			} else if (qs.isCompleted()) {
				state = quest.isCustomQuest() ? " (Done)" : "03";
				color = "787878";
			}
			StringUtil.append(sb, "<a action=\"bypass -h npc_", String.valueOf(npc.getObjectId()), "_Quest ", quest.getName(), "\">");
			StringUtil.append(sb, "<font color=\"" + color + "\">[");
			
			if (quest.isCustomQuest()) {
				StringUtil.append(sb, quest.getDescr(), state);
			} else {
				questId = quest.getId();
				if (questId > 80000) {
					questId -= 5000;
				} else if (questId == 146) {
					questId = 640;
				}
				StringUtil.append(sb, "<fstring>", String.valueOf(questId), state, "</fstring>");
			}
			sb.append("]</font></a><br>");
			
			if ((player.getApprentice() > 0) && (L2World.getInstance().getPlayer(player.getApprentice()) != null)) {
				if (questId == TO_LEAD_AND_BE_LED) {
					sb.append("<a action=\"bypass -h Quest Q00118_ToLeadAndBeLed sponsor\"><font color=\"").append(color) //
						.append("\">[<fstring>").append(questId).append(state).append("</fstring> (Sponsor)]</font></a><br>");
				}
				
				if (questId == THE_LEADER_AND_THE_FOLLOWER) {
					sb.append("<a action=\"bypass -h Quest Q00123_TheLeaderAndTheFollower sponsor\"><font color=\"").append(color) //
						.append("\">[<fstring>").append(questId).append(state).append("</fstring> (Sponsor)]</font></a><br>");
				}
			}
		}
		sb.append("</body></html>");
		
		// Send a Server->Client packet NpcHtmlMessage to the L2PcInstance in order to display the message of the L2NpcInstance
		npc.insertObjectIdAndShowChatWindow(player, sb.toString());
	}
	
	/**
	 * Open a quest window on client with the text of the L2NpcInstance.<br>
	 * <b><u>Actions</u>:</b><br>
	 * <ul>
	 * <li>Get the text of the quest state in the folder com/l2jserver/datapack/quests/questId/stateId.htm</li>
	 * <li>Send a Server->Client NpcHtmlMessage containing the text of the L2NpcInstance to the L2PcInstance</li>
	 * <li>Send a Server->Client ActionFailed to the L2PcInstance in order to avoid that the client wait another packet</li>
	 * </ul>
	 * @param player the L2PcInstance that talk with the {@code npc}
	 * @param npc the L2NpcInstance that chats with the {@code player}
	 * @param questId the Id of the quest to display the message
	 */
	private static void showQuestWindow(L2PcInstance player, L2Npc npc, String questId) {
		String content = null;
		
		final Quest q = QuestManager.getInstance().getQuest(questId);
		
		// Get the state of the selected quest
		final QuestState qs = player.getQuestState(questId);
		
		if (q != null) {
			if (((q.getId() >= 1) && (q.getId() < 80000)) && ((player.getWeightPenalty() >= 3) || !player.isInventoryUnder90(true))) {
				player.sendPacket(SystemMessageId.INVENTORY_LESS_THAN_80_PERCENT);
				return;
			}
			
			if (qs == null) {
				if ((q.getId() >= 1) && (q.getId() < 80000)) {
					// Too many ongoing quests.
					if (player.getAllActiveQuests().size() >= MAX_QUEST_COUNT) {
						final NpcHtmlMessage html = new NpcHtmlMessage(npc.getObjectId());
						html.setFile(player.getHtmlPrefix(), "data/html/fullquest.html");
						player.sendPacket(html);
						return;
					}
				}
			}
			
			q.notifyTalk(npc, player);
		} else {
			content = Quest.getNoQuestMsg(player); // no quests found
		}
		
		// Send a Server->Client packet NpcHtmlMessage to the L2PcInstance in order to display the message of the L2NpcInstance
		if (content != null) {
			npc.insertObjectIdAndShowChatWindow(player, content);
		}
		
		// Send a Server->Client ActionFailed to the L2PcInstance in order to avoid that the client wait another packet
		player.sendPacket(ActionFailed.STATIC_PACKET);
	}
	
	/**
	 * @param player the player talking to the NPC
	 * @param npcId The Identifier of the NPC
	 * @return a table containing all QuestState from the table _quests in which the L2PcInstance must talk to the NPC.
	 */
	private static List<QuestState> getQuestsForTalk(L2PcInstance player, int npcId) {
		// Create a QuestState table that will contain all QuestState to modify
		final List<QuestState> states = new ArrayList<>();
		
		final L2NpcTemplate template = NpcData.getInstance().getTemplate(npcId);
		if (template == null) {
			_log.log(Level.WARNING, QuestLink.class.getSimpleName() + ": " + player.getName() + " requested quests for talk on non existing npc " + npcId);
			return states;
		}
		
		// Go through the QuestState of the L2PcInstance quests
		for (AbstractEventListener listener : template.getListeners(EventType.ON_NPC_TALK)) {
			if (listener.getOwner() instanceof Quest) {
				final Quest quest = (Quest) listener.getOwner();
				if (quest.isVisibleInQuestWindow()) {
					// Copy the current L2PcInstance QuestState in the QuestState table
					final QuestState st = player.getQuestState(quest.getName());
					if (st != null) {
						states.add(st);
					}
				}
			}
		}
		
		// Return a table containing all QuestState to modify
		return states;
	}
	
	/**
	 * Collect awaiting quests/start points and display a QuestChooseWindow (if several available) or QuestWindow.
	 * @param player the L2PcInstance that talk with the {@code npc}.
	 * @param npc the L2NpcInstance that chats with the {@code player}.
	 */
	public static void showQuestWindow(L2PcInstance player, L2Npc npc) {
		boolean conditionMeet = false;
		final Set<Quest> options = new HashSet<>();
		for (QuestState state : getQuestsForTalk(player, npc.getId())) {
			final Quest quest = state.getQuest();
			if (quest == null) {
				_log.log(Level.WARNING, player + " Requested incorrect quest state for non existing quest: " + state.getQuestName());
				continue;
			}
			if ((quest.getId() > 0) && (quest.getId() < 80000)) {
				options.add(quest);
				if (quest.canStartQuest(player)) {
					conditionMeet = true;
				}
			}
		}
		
		for (AbstractEventListener listener : npc.getListeners(EventType.ON_NPC_QUEST_START)) {
			if (listener.getOwner() instanceof Quest) {
				final Quest quest = (Quest) listener.getOwner();
				if (quest.isVisibleInQuestWindow()) {
					if ((quest.getId() > 0) && (quest.getId() < 80000)) {
						options.add(quest);
						if (quest.canStartQuest(player)) {
							conditionMeet = true;
						}
					}
				}
			}
		}
		
		if (!conditionMeet) {
			showQuestWindow(player, npc, "");
		} else if ((options.size() > 1) || ((player.getApprentice() > 0) && (L2World.getInstance().getPlayer(player.getApprentice()) != null) && options.stream().anyMatch(q -> q.getId() == TO_LEAD_AND_BE_LED))) {
			showQuestChooseWindow(player, npc, options.toArray(new Quest[options.size()]));
		} else if (options.size() == 1) {
			showQuestWindow(player, npc, options.stream().findFirst().get().getName());
		} else {
			showQuestWindow(player, npc, "");
		}
	}
	
	@Override
	public String[] getBypassList() {
		return COMMANDS;
	}
}

 

ID >20000 is not a problem now

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • This post originally appeared on MmoGah. Dear exiles, hot news about PoE 1! The new league, 3.27 Keepers of the Flame, will launch on Oct 31, 2025. I will share with you the top 6 league starters, and each build is chosen for its strength in early progression, affordability, and synergy with the new mechanics introduced in the Bloodline Ascendancy system and Breach rework.       1. Exsanguinate Reap Mines Trickster Overview This build combines the physical spell damage of Exsanguinate and Reap with the mine playstyle, leveraging Trickster’s energy shield and recovery mechanics for survivability and speed. It’s a hybrid between trapper and spellcaster, offering high burst damage and smooth mapping. Key Mechanics Ascendancy: Trickster (Shadow) Main Skills: Exsanguinate, Reap, High-Impact Mine Support Defenses: Energy Shield, Evasion, Ghost Dance, Spell Suppression Strengths Excellent clear speed with overlapping AoE Strong single-target burst from Reap Trickster’s recovery and mobility make it forgiving Weaknesses Mines require setup and can feel clunky for some Physical damage scaling needs investment for the endgame Playstyle Tips Use Exsanguinate for mapping and Reap for bosses Prioritize mine throwing speed and recovery nodes Utilize Bloodline Grafts to enhance ES sustain and mine damage Ideal For Players who enjoy tactical gameplay with high burst potential   2. Cyclone Shockwave Slayer Overview Cyclone Shockwave Slayer is a melee build that uses Cyclone to trigger Shockwave Support, creating massive AoE explosions. Slayer’s leech and overleech mechanics make it durable and fast-paced. Key Mechanics Ascendancy: Slayer (Duelist) Main Skills: Cyclone, Shockwave Support, Rage Support Defenses: Life leech, Overleech, Fortify Strengths Smooth and fast mapping with Cyclone Shockwave adds huge AoE and damage Slayer’s leech makes it tanky even with minimal gear Weaknesses Requires a decent weapon early on Single-target can lag without investment Playstyle Tips Stack attack speed and physical damage Use Rage and Berserk for burst phases Bloodline Grafts can boost leech and AoE scaling Ideal For Players who love fast, aggressive melee builds   DID YOU KNOW?  MmoGah is the most trustworthy digital game goods store. Here you can buy safe PoE currency 3.27 to hold your strong build easily with low prices and fast delivery. poe currency 3.27     3. Rolling Magma Mines Saboteur Overview Rolling Magma Mines Saboteur is a powerful hybrid build that uses mines to trigger chain explosions. Saboteur’s mine bonuses and trap scaling make this build extremely potent for both clear and bossing. Key Mechanics Ascendancy: Saboteur (Shadow) Main Skills: Rolling Magma, Mine Support, Chain Support Defenses: Evasion, Spell Suppression, Mine immunity Strengths Massive AoE clear with chain mechanics High uptime on damage due to mine detonation Saboteur’s trap/mine bonuses make leveling easy Weaknesses Mines require setup and timing Visual clutter can be overwhelming Playstyle Tips Use Rolling Magma for chain clear and boss stacking Prioritize mine throwing speed and detonation speed Bloodline Grafts can enhance mine damage and trap cooldowns Ideal For Players who enjoy strategic, explosive gameplay   4. Kinetic Rain Elementalist (NEW) Overview Kinetic Rain is a new skill introduced in 3.27, firing a barrage of projectiles that rain down in an arc. Elementalist synergizes with elemental damage and ailment proliferation, making this build a top-tier mapper. Key Mechanics Ascendancy: Elementalist (Witch) Main Skills: Kinetic Rain, Greater Multiple Projectiles, Elemental Proliferation Defenses: Elemental ailment immunity, high life, block Strengths Incredible clear speed with projectile spread Elementalist’s golems and ailment immunity boost survivability New skill offers fresh playstyle and visuals Weaknesses Single-target depends on projectile overlap Requires investment in projectile speed and damage Playstyle Tips Scale elemental damage and projectile modifiers Use golems for buffs and tanking Bloodline Grafts can enhance elemental spread and projectile count Ideal For Players who want to try new mechanics with flashy visuals   5. Poisonous Concoction of Bouncing Slayer/Pathfinder Overview: This build uses Poisonous Concoction with the new “Bouncing” mechanic, allowing projectiles to ricochet and apply poison multiple times. Slayer and Pathfinder both offer strong synergy—Slayer for leech and Pathfinder for flask sustain. Key Mechanics Ascendancy: Slayer or Pathfinder (Duelist/Ranger) Main Skills: Poisonous Concoction, Plague Bearer, Wither Defenses: Evasion, Spell Suppression, Flask sustain Strengths Great single-target with poison stacking Bouncing mechanic improves clear and coverage No weapon required—uses flasks for scaling Weaknesses Flask management is crucial Visual clarity can be messy in dense fights Playstyle Tips Use Plague Bearer for clear and Poisonous Concoction for bosses Pathfinder offers smoother sustain; Slayer offers better leech Bloodline Grafts can boost poison duration and flask effects Ideal For Players who enjoy chaos builds and flask mechanics   6. Righteous Fire Chieftain Overview Righteous Fire Chieftain is a tanky, fire-based build that burns enemies with a persistent aura. Chieftain’s fire scaling and regen make it a great starter, especially with Breach-heavy content. Key Mechanics Ascendancy: Chieftain (Marauder) Main Skills: Righteous Fire, Fire Trap, Shield Charge Defenses: High life regen, fire resistance, armor Strengths Extremely tanky and consistent Great for Breach and dense packs Easy to gear and level Weaknesses Requires fire resistance and regen early Slower movement compared to zoomy builds Playstyle Tips Use Fire Trap for single-target and RF for clear Stack life, regen, and fire damage Bloodline Grafts can enhance burning damage and regen Ideal For Players who want a durable, low-maintenance build   Final Thoughts & Tips Bloodline Ascendancy: Mix and match ascendancy traits to create hybrid powerhouses. For example, combining Saboteur’s mine bonuses with Trickster’s recovery can yield unique builds. Breach Rework: Builds with strong AoE and sustain (like RF and Cyclone) excel in Breach-heavy zones. Leveling Strategy: Use alternate skills early (e.g., Fire Trap, Explosive Trap) and transition once gear is available. SSF vs Trade League: All builds here are viable in SSF, but some (like Poisonous Concoction and RF) are especially strong due to low gear dependency. Whether you prefer tactical mines, explosive melee, or elemental barrages, PoE 3.27 offers a rich meta with exciting new tools.
    • Some new features that we added: - 2 new quests - PvP Arena (to get hero status) Olympiad is disabled - Love Event - Dressme for armor/weapons/accessories - HWID Protection - More monsters - New farm zone - New autofarm system (works almost like adrenaline) - Auto enchant - Auto augment - 3 levels of armors - 3 levels of weapons - Anti KS System - Rebirth Manager - 30 days checking rewards - Small event (daily checking with small reward for all online players)
    • Added FloodProtector utility to prevent packet flooding for actions like item use and dice rolling. Integrated flood protection checks in relevant client packet handlers and registered/removal hooks in player lifecycle. Updated movement logic in L2PcInstance for improved position synchronization and geodata handling. Minor fixes and refactoring in attack logic, private store handling, and admin NPC editing. Refactored AI classes to enhance movement, attack, and skill usage logic for characters and mobs. Improved distance checks, attack range calculations, and skill casting conditions. Removed unused intention command logic from L2CharacterAI. Updated configuration to enable CellPathFinding. Minor code cleanups and bug fixes for more reliable AI behavior. Enhanced GeoPathFinding with detailed debug and error messages for region loading, including success/failure counts and file checks. Refactored L2AttackableAI and L2CharacterAI to improve attack range tolerance, immediate attack behavior, and added safety checks for missing targets. Updated configuration to disable CellPathFinding by default and added a new ShowRedName option for aggressive mobs. Minor config and log updates included. Applied TCP socket optimizations (e.g., TCP_NODELAY, buffer sizes, keepalive) in ClientThread, Connection, and SelectorThread to reduce latency and improve throughput. Enhanced L2AttackableAI with better random walk, aggro, and attack logic, including silent move checks, quest monster handling, and improved faction/raid/minion behavior. Added silent move support to L2PlayableInstance and quest monster flag to L2NpcTemplate/L2NpcInstance. These changes aim to improve server responsiveness, AI realism, and overall stability.
    • I’ve been using this Escape from Tarkov Hack for about a week now with no issues at all. ESP works great without any lag, and the aimbot is smooth and doesn't feel obvious. Had a quick setup with the loader, and support answered my questions right away. The HWID spoofer also did its job without messing with my system. So far, the cheat's staying undetected on my side.
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock