Hi guys, I want to make coffer of the dead, chest of hallate, chest of kernon and chest of golkonda to give me the items needed for subclass without the quest itself.
When I talk to boxes it says: You are either not on a quest that involves this npc or you dont meet this NPC requirements
here is the code:
package custom.Subclass;
import java.util.HashMap;
import java.util.Map;
import net.sf.l2j.gameserver.model.actor.L2Npc;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
import net.sf.l2j.gameserver.model.quest.Quest;
public class Subclass extends Quest
{
// Items
private static final int REIRIA_SOUL_ORB = 4666;
private static final int KERMON_INFERNIUM_SCEPTER = 4667;
private static final int GOLKONDA_INFERNIUM_SCEPTER = 4668;
private static final int HALLATE_INFERNIUM_SCEPTER = 4669;
// Chest Spawn
private static final Map<Integer, Integer> CHEST_SPAWN = new HashMap<>();
{
CHEST_SPAWN.put(25035, 31027);
CHEST_SPAWN.put(25054, 31028);
CHEST_SPAWN.put(25126, 31029);
CHEST_SPAWN.put(25220, 31030);
}
public Subclass()
{
super(-1, "Subclass", "custom");
addTalkId(31027, 31028, 31029, 31030);
// The 4 bosses which spawn chests
addKillId(25035, 25054, 25126, 25220);
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
String htmltext = "";
switch (npc.getNpcId())
{
case 31027:
if (player.getLevel() >= 75)
{
htmltext = "31027-01.htm";
player.addItem("AutoLoot", REIRIA_SOUL_ORB, 1, player, true);
}
else
htmltext = "31027-02.htm";
break;
case 31028:
if (player.getLevel() >= 75)
{
htmltext = "31028-01.htm";
player.addItem("AutoLoot", KERMON_INFERNIUM_SCEPTER, 1, player, true);
}
else
htmltext = "31028-02.htm";
break;
case 31029:
if (player.getLevel() >= 75)
{
htmltext = "31029-01.htm";
player.addItem("AutoLoot", GOLKONDA_INFERNIUM_SCEPTER, 1, player, true);
}
else
htmltext = "31029-02.htm";
break;
case 31030:
if (player.getLevel() >= 75)
{
htmltext = "31030-01.htm";
player.addItem("AutoLoot", HALLATE_INFERNIUM_SCEPTER, 1, player, true);
}
else
htmltext = "31030-02.htm";
break;
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance player, boolean isPet)
{
addSpawn(CHEST_SPAWN.get(npc.getNpcId()), npc, true, 120000, false);
return null;
}
public static void main(String args[])
{
new Subclass();
}
}
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Xmas Wolf Chariot Mount | Lineage 2 Mod
Celebrate the holiday spirit in Lineage 2 with this festive Xmas Wolf Chariot Mount! Created for protocol 166, this unique modification features majestic wolf mounts with holiday-themed harnesses pulling a decorative chariot.
If you have questions or want to add this updated skill to your game, feel free to contact me via Skype or Discord.
Download or in Discord Client Dev channel https://discord.gg/XdCb9dmTtf
06/12/2024 21:00 GMT +2
High Five - PvP server x45 - Aria Victoria Style 2004
NPC Buffer & Enchanted NPC Buffer.
Global Gatekeeper.
Clan Hall Teleports & Clan GM Shop (-20%).
Offline Shop.
GM shop up to B Grade.
Auto Farm system.
TvT - CTF - DM - Party Farm - Event Boss
Craftable Hero Weapon.
Instances Solo and Party, weekly and daily.
No kamael.
More informations can be found on our website including a "how to connect" greek guide
Valkyria is based on aCis
https://l2valkyria.com
Question
ton3
Hi guys, I want to make coffer of the dead, chest of hallate, chest of kernon and chest of golkonda to give me the items needed for subclass without the quest itself.
When I talk to boxes it says: You are either not on a quest that involves this npc or you dont meet this NPC requirements
here is the code:
can anyone point me what is wrong? thank you
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.