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.
Original was based off L2OFF, so how would he even be able to compete or deliver the same quality? It will be just another L2F from shein.
Whatsoever, some times you should just let the horse die.
Bump
NEW USER IN TELEGRAM AND DISCORD IS "mileanum"
NEW USER IN TELEGRAM AND DISCORD IS "mileanum"
NEW USER IN TELEGRAM AND DISCORD IS "mileanum"
NEW USER IN TELEGRAM AND DISCORD IS "mileanum"
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.