package custom.Gatekeeper;
import com.l2jserver.gameserver.custom.FTS;
import com.l2jserver.gameserver.instancemanager.TownManager;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage;
import com.l2jserver.gameserver.model.quest.Quest;
import com.l2jserver.gameserver.model.quest.QuestState;
public class Gatekeeper extends Quest
{
private static final int id = 444;
@Override
public final String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
int i = 1;
if (event.equalsIgnoreCase("1"))
{
NpcHtmlMessage htm = new NpcHtmlMessage(npc.getObjectId());
String filler = "<html><title>Gatekeeper</title><body><br>Select a town to teleport:<br>";
while(i<21)
{
if(FTS.isAvailable(i))
public static boolean isAvailable(int town)
{
int id = 0;
--------->for(L2Character t : TownManager.getTown(town).getCharactersInside().values())
{
if (t instanceof L2PcInstance)
{
id++;
}
}
return id < 20;
}
einai apo quest script p ekana sto datapack.
kai to allo apo to class FTS.
me leei gia nullpointer exception ekei pou exw belos.
Kai eida oti epistrefei thn timh null to TownManager.getTown(town) anti gia polh.
Alla apo mesa apo to class otan xrhsimopoiw to isAvailable(integer) den exw problhma.
Added: a brand-new default dashboard template.
You can now add multiple game/login server builds.
Full support for running both PTS & L2J servers simultaneously, with switching between them.
Payment systems: added OmegaPay and Pally (new PayPal-style API).
Account history now stores everything: donations, items delivered to characters, referrals, transfers between game accounts, and coin transfers to another master account.
Personal Promo Code System: you can create a promo code and assign it to a user or promoter. When donating, a player can enter this promo code to receive bonus coins, and the promo code owner also receives a bonus — all fully configurable in the admin panel.
Look demo site: demo
🚀 **TOMORROW – GRAND OPENING!** 🚀
📅 **Grand Opening Date:** 5 December 2025
⏰ **Time:** 20:00 GMT+2
🎫 **BONUS CODE:** `WELCOME-TO-L2MID`
⚠️ Limited to the **first 100 players** only!
🖥️ **Server Info:**
- 🕒 The server will open **1 hour earlier (19:00 GMT+2)** so you can create your characters.
- 🧍 All important **NPCs will appear at 20:00 GMT+2** for the official **GRAND OPENING**.
💡 **How to redeem the bonus code:**
- After you create your character, log in to the **L2Mid Panel** and redeem your bonus here:
🔗 https://l2mid.com/account.php#dash-promocode
🎁 **BONUS CODE REWARDS:**
🧪 Mana Drug × 50
🛡️ Greater CP Potion × 50
❤️ Greater Healing Potion × 50
📜 Blessed Scroll of Escape × 5
⭐ Bonus Rune – 3 Hours × 1
⚔️ Get ready for the start of your new adventure on **L2Mid**!
Question
popld
exw auto to kommati code.
package custom.Gatekeeper; import com.l2jserver.gameserver.custom.FTS; import com.l2jserver.gameserver.instancemanager.TownManager; import com.l2jserver.gameserver.model.actor.L2Npc; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage; import com.l2jserver.gameserver.model.quest.Quest; import com.l2jserver.gameserver.model.quest.QuestState; public class Gatekeeper extends Quest { private static final int id = 444; @Override public final String onAdvEvent(String event, L2Npc npc, L2PcInstance player) { int i = 1; if (event.equalsIgnoreCase("1")) { NpcHtmlMessage htm = new NpcHtmlMessage(npc.getObjectId()); String filler = "<html><title>Gatekeeper</title><body><br>Select a town to teleport:<br>"; while(i<21) { if(FTS.isAvailable(i))public static boolean isAvailable(int town) { int id = 0; --------->for(L2Character t : TownManager.getTown(town).getCharactersInside().values()) { if (t instanceof L2PcInstance) { id++; } } return id < 20; }einai apo quest script p ekana sto datapack.
kai to allo apo to class FTS.
me leei gia nullpointer exception ekei pou exw belos.
Kai eida oti epistrefei thn timh null to TownManager.getTown(town) anti gia polh.
Alla apo mesa apo to class otan xrhsimopoiw to isAvailable(integer) den exw problhma.
Mporeite na mou peite ti la8os kanw?
3 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now