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.
I created a system of FAKES to improve my GeoEngine, but I'm having problems with blocks. I've tried everything to fix it, but a block going from the inside out bugs the player's movement and freezes them. However, the reverse doesn't cause this bug. If I'm outside and click inside, the path is traced normally, but if it's reversed, it bugs at the fence. I've created several debugs and read all kinds of GeoEngine versions, but I haven't had any success. Can someone give me some insight into graphical data?
When fakes spawn, they are given possible routes, but they don't follow them. If there's a target, instead of following the correctly drawn path, it simply uses a straight line.
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