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.
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.
Hello, Adena is for sale in the r33team.com store
L2classic.club Talking island x3 - 5€/bil
L2classic.club Dion x3 - 27.00€/100mil
l2reborn.com Origin x1 - 0,25€/1mil
L2Reborn.org - x15 Forever - 0.05€/1mil
L2Reborn.org - x1 Signature -0.11€/1k
elmorelab.com x2 - 0.46€/1mil
elmorelab.com x3 - 0.15€/1mil
elmorelab.com x1 - 2.06€/1mil
Scryde.net x2 - 9.18€/100mil
Payment method:
Paypal
Visa/Mastercard
Crypto
You can find out more information on our website: https://r33team.com/
Question
popld
exw auto to kommati code.
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
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.