Jump to content

Question

Posted

/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*
* http://www.gnu.org/copyleft/gpl.html
*/
package net.-.gameserver.model.actor.instance;

import java.util.StringTokenizer;

import javolution.util.FastSet;

import net.-.Config;
import net.-.gameserver.ai.CtrlIntention;
import net.-.gameserver.model.L2Object;
import net.-.gameserver.model.L2World;
import net.-.gameserver.model.entity.FactionMaps;
import net.-.gameserver.network.serverpackets.ActionFailed;
import net.-.gameserver.network.serverpackets.MyTargetSelected;
import net.-.gameserver.network.serverpackets.NpcHtmlMessage;
import net.-.gameserver.network.serverpackets.SocialAction;
import net.-.gameserver.network.serverpackets.ValidateLocation;
import net.-.gameserver.templates.chars.L2NpcTemplate;
import net.-.util.StringUtil;
import net.-.util.Rnd;

/**
* 
* @author Evillus
*
*/

public class L2FactTeleporterInstance extends L2NpcInstance
{
    public L2FactTeleporterInstance(int objectId, L2NpcTemplate template)
    {
        super(objectId, template);
    }

public static FastSet<L2TpFlagInstance> _tpTeam1Flags = new FastSet<L2TpFlagInstance>();
public static FastSet<L2TpFlagInstance> _tpTeam2Flags = new FastSet<L2TpFlagInstance>();
public static FastSet<L2TpFlagInstance> _not_captured = new FastSet<L2TpFlagInstance>();
public static FastSet<L2ProtectorInstance> _guards = new FastSet<L2ProtectorInstance>();
public static FastSet<L2NpcInstance> _blazers = new FastSet<L2NpcInstance>();
public static FastSet<L2GrandBossInstance> _bosses = new FastSet<L2GrandBossInstance>();

    @Override
    public void onBypassFeedback(L2PcInstance player, String command)
    {
	StringTokenizer st = new StringTokenizer(command, " ");
	String actualCommand = st.nextToken();
	int val = 0;
	if (st.countTokens() >= 1)
		val = Integer.valueOf(st.nextToken());

	if (actualCommand.equalsIgnoreCase("teletoflag"))
		teleToFlag(val,player);
	else
		super.onBypassFeedback(player, command);
    }

public void teleToFlag(int objId, L2PcInstance player)
{
	L2Object object = L2World.getInstance().findObject(objId);
	if (object != null && object instanceof L2TpFlagInstance) {
		L2TpFlagInstance flagbase = (L2TpFlagInstance) object;
		if (player.getFactionId() == flagbase.getFlagFactionId())
			player.teleToLocation(flagbase.getX() + 50,flagbase.getY(),flagbase.getZ());
	}
	else {
		player.sendMessage("Base location is not accessable due to occupation.");
		return;
	}
}

@Override
    public void onAction(L2PcInstance player)
    {
	if (this != player.getTarget()) {
		player.setTarget(this);
		player.sendPacket(new MyTargetSelected(getObjectId(), player.getLevel() - getLevel()));
		player.sendPacket(new ValidateLocation(this));
	} 
	else if (isInsideRadius(player, INTERACTION_DISTANCE, false, false)) {
		SocialAction sa = new SocialAction(this, Rnd.get(8));
		broadcastPacket(sa);
		player.setCurrentFolkNPC(this);
		showMessageWindow(player);
		player.sendPacket(ActionFailed.STATIC_PACKET);
	}
	else {
		player.getAI().setIntention(CtrlIntention.AI_INTENTION_INTERACT, this);
		player.sendPacket(ActionFailed.STATIC_PACKET);
	}
    }

    private void showMessageWindow(L2PcInstance player)
    {
	NpcHtmlMessage html = new NpcHtmlMessage(1);
	final StringBuilder strBuffer = StringUtil.startAppend(3500, "<html><title>Faction Teleporter</title><body><center>");
	if (player.getFactionId() == 0) {
		strBuffer.append("SHIT HAPPENS");
		strBuffer.append("<img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32 align=left>");
	    strBuffer.append("Please chose your faction and then come back!<br>");
		strBuffer.append("I am sure, that Faction manager will help you.<br>");
	}
	else if (FactionMaps.isVoting()) {
		strBuffer.append("Map voting is in progress.<br>");
		strBuffer.append("Try again in <font color=\"LEVEL\">1 minute.</font><br>");
	}
	else if (player.isInOlympiadMode()) {
		strBuffer.append("SHIT HAPPENS");
		strBuffer.append("<img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32 align=left>");
	    strBuffer.append("I can't teleport you, because you're participating in olympiad!<br>");
	}
	else {
		strBuffer.append("<img src=\"l2font-e.replay_logo-e\" width=258 height=60 align=left>");
		strBuffer.append("Current map is: <font color=\"LEVEL\">" + FactionMaps.getMapName() + "</font><br>");
		strBuffer.append("Voting for the next map will begin in: " + FactionMaps.getDelayUntilVoting() + "<br>");
		strBuffer.append("Unoccupyable flags belonging to <font color=\"LEVEL\">%faction%</font> faction:<br>");
		strBuffer.append("<img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32 align=left>");
		switch (player.getFactionId()) {
			case 1:
				for (L2TpFlagInstance unFlag : _tpTeam1Flags)
				{
					if (unFlag.isUnoccupayable() == 1)
						strBuffer.append("<button value=\"" + unFlag.getFlagName() + "\" action=\"bypass -h npc_%objectId%_teletoflag " + unFlag.getObjectId() + "\" width=135 height=21 back=\"L2UI_CH3.bigbutton3_over\" fore=\"L2UI_CH3.bigbutton3\">");
				}
				break;
			case 2:
				for (L2TpFlagInstance unFlag : _tpTeam2Flags)
				{
					if (unFlag.isUnoccupayable() == 1)
						strBuffer.append("<button value=\"" + unFlag.getFlagName() + "\" action=\"bypass -h npc_%objectId%_teletoflag " + unFlag.getObjectId() + "\" width=135 height=21 back=\"L2UI_CH3.bigbutton3_over\" fore=\"L2UI_CH3.bigbutton3\">");
				}
				break;
			default:
				strBuffer.append("No Flags found.");
				break;
		}
		strBuffer.append("<img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32 align=left>");
		strBuffer.append("Flags occupied by <font color=\"LEVEL\">%faction%</font> faction:<br>");
		switch (player.getFactionId()) {
			case 1:
				for (L2TpFlagInstance unFlag : _tpTeam1Flags)
				{
					if (unFlag.isUnoccupayable() == 0)
						strBuffer.append("<button value=\"" + unFlag.getFlagName() + "\" action=\"bypass -h npc_%objectId%_teletoflag " + unFlag.getObjectId() + "\" width=135 height=21 back=\"L2UI_CH3.bigbutton3_over\" fore=\"L2UI_CH3.bigbutton3\">");
				}
				break;
			case 2:
				for (L2TpFlagInstance unFlag1 : _tpTeam2Flags)
				{
					if (unFlag1.isUnoccupayable() == 0)
						strBuffer.append("<button value=\"" + unFlag1.getFlagName() + "\" action=\"bypass -h npc_%objectId%_teletoflag " + unFlag1.getObjectId() + "\" width=135 height=21 back=\"L2UI_CH3.bigbutton3_over\" fore=\"L2UI_CH3.bigbutton3\">");
				}
				break;
			default:
				strBuffer.append("No Flags found.");
				break;
		}
	}
	strBuffer.append("<img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32 align=left>");
	strBuffer.append("</center></body></html>");
	html.setHtml(strBuffer.toString());
	html.replace("%objectId%", String.valueOf(getObjectId()));
	if (player.getFactionId() == 1)
		html.replace("%faction%", Config.FACTION_TEAM1_NAME);
	else if (player.getFactionId() == 2)
		html.replace("%faction%", Config.FACTION_TEAM2_NAME);
	else
		html.replace("%faction%", "No Faction");
	html.replace("%npcname%", getName());
	player.sendPacket(html);
    }
}

 

 

i just need both teams to got a new button on this Gatekeeper named [Nobless Boss] and when player press it to teleport them on x=89547 y=-85559 z= -2766

 

 

(IT WORKS LIKE A NORMAL GK :p JUST ADD ME THE BUTTON WITH THE CORDS CAUSE I DONT KNOW HOW!)

5 answers to this question

Recommended Posts

  • 0
Posted

i would create a patch for you but since i dont have source then just take the whole file.

/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*
* http://www.gnu.org/copyleft/gpl.html
*/
package net.-.gameserver.model.actor.instance;

import java.util.StringTokenizer;

import javolution.util.FastSet;

import net.-.Config;
import net.-.gameserver.ai.CtrlIntention;
import net.-.gameserver.model.L2Object;
import net.-.gameserver.model.L2World;
import net.-.gameserver.model.entity.FactionMaps;
import net.-.gameserver.network.serverpackets.ActionFailed;
import net.-.gameserver.network.serverpackets.MyTargetSelected;
import net.-.gameserver.network.serverpackets.NpcHtmlMessage;
import net.-.gameserver.network.serverpackets.SocialAction;
import net.-.gameserver.network.serverpackets.ValidateLocation;
import net.-.gameserver.templates.chars.L2NpcTemplate;
import net.-.util.StringUtil;
import net.-.util.Rnd;

/**
* 
* @author Evillus
*
*/

public class L2FactTeleporterInstance extends L2NpcInstance
{
    public L2FactTeleporterInstance(int objectId, L2NpcTemplate template)
    {
        super(objectId, template);
    }

public static FastSet<L2TpFlagInstance> _tpTeam1Flags = new FastSet<L2TpFlagInstance>();
public static FastSet<L2TpFlagInstance> _tpTeam2Flags = new FastSet<L2TpFlagInstance>();
public static FastSet<L2TpFlagInstance> _not_captured = new FastSet<L2TpFlagInstance>();
public static FastSet<L2ProtectorInstance> _guards = new FastSet<L2ProtectorInstance>();
public static FastSet<L2NpcInstance> _blazers = new FastSet<L2NpcInstance>();
public static FastSet<L2GrandBossInstance> _bosses = new FastSet<L2GrandBossInstance>();

    @Override
    public void onBypassFeedback(L2PcInstance player, String command)
    {
	StringTokenizer st = new StringTokenizer(command, " ");
	String actualCommand = st.nextToken();
	int val = 0;
	if (st.countTokens() >= 1)
		val = Integer.valueOf(st.nextToken());

	if (actualCommand.equalsIgnoreCase("teletoflag"))
		teleToFlag(val,player);
	else if (actualCommand.equalsIgnoreCase("teletoloc"))
		player.teleToLocation(89547,85559,-2766);
	else
		super.onBypassFeedback(player, command);
    }

public void teleToFlag(int objId, L2PcInstance player)
{
	L2Object object = L2World.getInstance().findObject(objId);
	if (object != null && object instanceof L2TpFlagInstance) {
		L2TpFlagInstance flagbase = (L2TpFlagInstance) object;
		if (player.getFactionId() == flagbase.getFlagFactionId())
			player.teleToLocation(flagbase.getX() + 50,flagbase.getY(),flagbase.getZ());
	}
	else {
		player.sendMessage("Base location is not accessable due to occupation.");
		return;
	}
}

@Override
    public void onAction(L2PcInstance player)
    {
	if (this != player.getTarget()) {
		player.setTarget(this);
		player.sendPacket(new MyTargetSelected(getObjectId(), player.getLevel() - getLevel()));
		player.sendPacket(new ValidateLocation(this));
	} 
	else if (isInsideRadius(player, INTERACTION_DISTANCE, false, false)) {
		SocialAction sa = new SocialAction(this, Rnd.get(8));
		broadcastPacket(sa);
		player.setCurrentFolkNPC(this);
		showMessageWindow(player);
		player.sendPacket(ActionFailed.STATIC_PACKET);
	}
	else {
		player.getAI().setIntention(CtrlIntention.AI_INTENTION_INTERACT, this);
		player.sendPacket(ActionFailed.STATIC_PACKET);
	}
    }

    private void showMessageWindow(L2PcInstance player)
    {
	NpcHtmlMessage html = new NpcHtmlMessage(1);
	final StringBuilder strBuffer = StringUtil.startAppend(3500, "<html><title>Faction Teleporter</title><body><center>");
	if (player.getFactionId() == 0) {
		strBuffer.append("SHIT HAPPENS");
		strBuffer.append("<img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32 align=left>");
	    strBuffer.append("Please chose your faction and then come back!<br>");
		strBuffer.append("I am sure, that Faction manager will help you.<br>");
	}
	else if (FactionMaps.isVoting()) {
		strBuffer.append("Map voting is in progress.<br>");
		strBuffer.append("Try again in <font color=\"LEVEL\">1 minute.</font><br>");
	}
	else if (player.isInOlympiadMode()) {
		strBuffer.append("SHIT HAPPENS");
		strBuffer.append("<img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32 align=left>");
	    strBuffer.append("I can't teleport you, because you're participating in olympiad!<br>");
	}
	else {
		strBuffer.append("<img src=\"l2font-e.replay_logo-e\" width=258 height=60 align=left>");
		strBuffer.append("Current map is: <font color=\"LEVEL\">" + FactionMaps.getMapName() + "</font><br>");
		strBuffer.append("Voting for the next map will begin in: " + FactionMaps.getDelayUntilVoting() + "<br>");
		strBuffer.append("Unoccupyable flags belonging to <font color=\"LEVEL\">%faction%</font> faction:<br>");
		strBuffer.append("<img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32 align=left>");
		switch (player.getFactionId()) {
			case 1:
				for (L2TpFlagInstance unFlag : _tpTeam1Flags)
				{
					if (unFlag.isUnoccupayable() == 1)
						strBuffer.append("<button value=\"" + unFlag.getFlagName() + "\" action=\"bypass -h npc_%objectId%_teletoflag " + unFlag.getObjectId() + "\" width=135 height=21 back=\"L2UI_CH3.bigbutton3_over\" fore=\"L2UI_CH3.bigbutton3\">");
				}
				break;
			case 2:
				for (L2TpFlagInstance unFlag : _tpTeam2Flags)
				{
					if (unFlag.isUnoccupayable() == 1)
						strBuffer.append("<button value=\"" + unFlag.getFlagName() + "\" action=\"bypass -h npc_%objectId%_teletoflag " + unFlag.getObjectId() + "\" width=135 height=21 back=\"L2UI_CH3.bigbutton3_over\" fore=\"L2UI_CH3.bigbutton3\">");
				}
				break;
			default:
				strBuffer.append("No Flags found.");
				break;
		}
		strBuffer.append("<img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32 align=left>");
		strBuffer.append("Flags occupied by <font color=\"LEVEL\">%faction%</font> faction:<br>");
		switch (player.getFactionId()) {
			case 1:
				for (L2TpFlagInstance unFlag : _tpTeam1Flags)
				{
					if (unFlag.isUnoccupayable() == 0)
						strBuffer.append("<button value=\"" + unFlag.getFlagName() + "\" action=\"bypass -h npc_%objectId%_teletoflag " + unFlag.getObjectId() + "\" width=135 height=21 back=\"L2UI_CH3.bigbutton3_over\" fore=\"L2UI_CH3.bigbutton3\">");
				}
				break;
			case 2:
				for (L2TpFlagInstance unFlag1 : _tpTeam2Flags)
				{
					if (unFlag1.isUnoccupayable() == 0)
						strBuffer.append("<button value=\"" + unFlag1.getFlagName() + "\" action=\"bypass -h npc_%objectId%_teletoflag " + unFlag1.getObjectId() + "\" width=135 height=21 back=\"L2UI_CH3.bigbutton3_over\" fore=\"L2UI_CH3.bigbutton3\">");
				}
				break;
			default:
				strBuffer.append("No Flags found.");
				break;
		}
	}
	strBuffer.append("<button value=\"Nobless: Flame of Spendor Barakiel\" action=\"bypass -h npc_%objectId%_teletoloc\" width=135 height=21 back=\"L2UI_CH3.bigbutton3_over\" fore=\"L2UI_CH3.bigbutton3\">");
	strBuffer.append("<img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32 align=left>");
	strBuffer.append("</center></body></html>");
	html.setHtml(strBuffer.toString());
	html.replace("%objectId%", String.valueOf(getObjectId()));
	if (player.getFactionId() == 1)
		html.replace("%faction%", Config.FACTION_TEAM1_NAME);
	else if (player.getFactionId() == 2)
		html.replace("%faction%", Config.FACTION_TEAM2_NAME);
	else
		html.replace("%faction%", "No Faction");
	html.replace("%npcname%", getName());
	player.sendPacket(html);
    }
}

  • 0
Posted

i would create a patch for you but since i dont have source then just take the whole file.

/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*
* http://www.gnu.org/copyleft/gpl.html
*/
package net.-.gameserver.model.actor.instance;

import java.util.StringTokenizer;

import javolution.util.FastSet;

import net.-.Config;
import net.-.gameserver.ai.CtrlIntention;
import net.-.gameserver.model.L2Object;
import net.-.gameserver.model.L2World;
import net.-.gameserver.model.entity.FactionMaps;
import net.-.gameserver.network.serverpackets.ActionFailed;
import net.-.gameserver.network.serverpackets.MyTargetSelected;
import net.-.gameserver.network.serverpackets.NpcHtmlMessage;
import net.-.gameserver.network.serverpackets.SocialAction;
import net.-.gameserver.network.serverpackets.ValidateLocation;
import net.-.gameserver.templates.chars.L2NpcTemplate;
import net.-.util.StringUtil;
import net.-.util.Rnd;

/**
* 
* @author Evillus
*
*/

public class L2FactTeleporterInstance extends L2NpcInstance
{
    public L2FactTeleporterInstance(int objectId, L2NpcTemplate template)
    {
        super(objectId, template);
    }

public static FastSet<L2TpFlagInstance> _tpTeam1Flags = new FastSet<L2TpFlagInstance>();
public static FastSet<L2TpFlagInstance> _tpTeam2Flags = new FastSet<L2TpFlagInstance>();
public static FastSet<L2TpFlagInstance> _not_captured = new FastSet<L2TpFlagInstance>();
public static FastSet<L2ProtectorInstance> _guards = new FastSet<L2ProtectorInstance>();
public static FastSet<L2NpcInstance> _blazers = new FastSet<L2NpcInstance>();
public static FastSet<L2GrandBossInstance> _bosses = new FastSet<L2GrandBossInstance>();

    @Override
    public void onBypassFeedback(L2PcInstance player, String command)
    {
	StringTokenizer st = new StringTokenizer(command, " ");
	String actualCommand = st.nextToken();
	int val = 0;
	if (st.countTokens() >= 1)
		val = Integer.valueOf(st.nextToken());

	if (actualCommand.equalsIgnoreCase("teletoflag"))
		teleToFlag(val,player);
	else if (actualCommand.equalsIgnoreCase("teletoloc"))
		teleToLoc(player);
	else
		super.onBypassFeedback(player, command);
    }

public void teleToFlag(int objId, L2PcInstance player)
{
	L2Object object = L2World.getInstance().findObject(objId);
	if (object != null && object instanceof L2TpFlagInstance) {
		L2TpFlagInstance flagbase = (L2TpFlagInstance) object;
		if (player.getFactionId() == flagbase.getFlagFactionId())
			player.teleToLocation(flagbase.getX() + 50,flagbase.getY(),flagbase.getZ());
	}
	else {
		player.sendMessage("Base location is not accessable due to occupation.");
		return;
	}
}

public void teleToLoc(L2PcInstance player)
{
	player.teleToLocation(89547,85559,-2766);
}

@Override
    public void onAction(L2PcInstance player)
    {
	if (this != player.getTarget()) {
		player.setTarget(this);
		player.sendPacket(new MyTargetSelected(getObjectId(), player.getLevel() - getLevel()));
		player.sendPacket(new ValidateLocation(this));
	} 
	else if (isInsideRadius(player, INTERACTION_DISTANCE, false, false)) {
		SocialAction sa = new SocialAction(this, Rnd.get(8));
		broadcastPacket(sa);
		player.setCurrentFolkNPC(this);
		showMessageWindow(player);
		player.sendPacket(ActionFailed.STATIC_PACKET);
	}
	else {
		player.getAI().setIntention(CtrlIntention.AI_INTENTION_INTERACT, this);
		player.sendPacket(ActionFailed.STATIC_PACKET);
	}
    }

    private void showMessageWindow(L2PcInstance player)
    {
	NpcHtmlMessage html = new NpcHtmlMessage(1);
	final StringBuilder strBuffer = StringUtil.startAppend(3500, "<html><title>Faction Teleporter</title><body><center>");
	if (player.getFactionId() == 0) {
		strBuffer.append("SHIT HAPPENS");
		strBuffer.append("<img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32 align=left>");
	    strBuffer.append("Please chose your faction and then come back!<br>");
		strBuffer.append("I am sure, that Faction manager will help you.<br>");
	}
	else if (FactionMaps.isVoting()) {
		strBuffer.append("Map voting is in progress.<br>");
		strBuffer.append("Try again in <font color=\"LEVEL\">1 minute.</font><br>");
	}
	else if (player.isInOlympiadMode()) {
		strBuffer.append("SHIT HAPPENS");
		strBuffer.append("<img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32 align=left>");
	    strBuffer.append("I can't teleport you, because you're participating in olympiad!<br>");
	}
	else {
		strBuffer.append("<img src=\"l2font-e.replay_logo-e\" width=258 height=60 align=left>");
		strBuffer.append("Current map is: <font color=\"LEVEL\">" + FactionMaps.getMapName() + "</font><br>");
		strBuffer.append("Voting for the next map will begin in: " + FactionMaps.getDelayUntilVoting() + "<br>");
		strBuffer.append("Unoccupyable flags belonging to <font color=\"LEVEL\">%faction%</font> faction:<br>");
		strBuffer.append("<img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32 align=left>");
		switch (player.getFactionId()) {
			case 1:
				for (L2TpFlagInstance unFlag : _tpTeam1Flags)
				{
					if (unFlag.isUnoccupayable() == 1)
						strBuffer.append("<button value=\"" + unFlag.getFlagName() + "\" action=\"bypass -h npc_%objectId%_teletoflag " + unFlag.getObjectId() + "\" width=135 height=21 back=\"L2UI_CH3.bigbutton3_over\" fore=\"L2UI_CH3.bigbutton3\">");
				}
				break;
			case 2:
				for (L2TpFlagInstance unFlag : _tpTeam2Flags)
				{
					if (unFlag.isUnoccupayable() == 1)
						strBuffer.append("<button value=\"" + unFlag.getFlagName() + "\" action=\"bypass -h npc_%objectId%_teletoflag " + unFlag.getObjectId() + "\" width=135 height=21 back=\"L2UI_CH3.bigbutton3_over\" fore=\"L2UI_CH3.bigbutton3\">");
				}
				break;
			default:
				strBuffer.append("No Flags found.");
				break;
		}
		strBuffer.append("<img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32 align=left>");
		strBuffer.append("Flags occupied by <font color=\"LEVEL\">%faction%</font> faction:<br>");
		switch (player.getFactionId()) {
			case 1:
				for (L2TpFlagInstance unFlag : _tpTeam1Flags)
				{
					if (unFlag.isUnoccupayable() == 0)
						strBuffer.append("<button value=\"" + unFlag.getFlagName() + "\" action=\"bypass -h npc_%objectId%_teletoflag " + unFlag.getObjectId() + "\" width=135 height=21 back=\"L2UI_CH3.bigbutton3_over\" fore=\"L2UI_CH3.bigbutton3\">");
				}
				break;
			case 2:
				for (L2TpFlagInstance unFlag1 : _tpTeam2Flags)
				{
					if (unFlag1.isUnoccupayable() == 0)
						strBuffer.append("<button value=\"" + unFlag1.getFlagName() + "\" action=\"bypass -h npc_%objectId%_teletoflag " + unFlag1.getObjectId() + "\" width=135 height=21 back=\"L2UI_CH3.bigbutton3_over\" fore=\"L2UI_CH3.bigbutton3\">");
				}
				break;
			default:
				strBuffer.append("No Flags found.");
				break;
		}
	}
	strBuffer.append("<button value=\"Nobless: Flame of Spendor Barakiel\" action=\"bypass -h npc_%objectId%_teletoloc\" width=135 height=21 back=\"L2UI_CH3.bigbutton3_over\" fore=\"L2UI_CH3.bigbutton3\">");
	strBuffer.append("<img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32 align=left>");
	strBuffer.append("</center></body></html>");
	html.setHtml(strBuffer.toString());
	html.replace("%objectId%", String.valueOf(getObjectId()));
	if (player.getFactionId() == 1)
		html.replace("%faction%", Config.FACTION_TEAM1_NAME);
	else if (player.getFactionId() == 2)
		html.replace("%faction%", Config.FACTION_TEAM2_NAME);
	else
		html.replace("%faction%", "No Faction");
	html.replace("%npcname%", getName());
	player.sendPacket(html);
    }
}

 

i focking love you troll

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 account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • TG Support: https://t.me/buyingproxysup | Channel: https://t.me/buyingproxycom Discord support: #buyingproxy | Server: Join the BuyingProxy Discord Server!  Create your free account here
    • 🚀 IronLock Shield - Closed Beta Update Hello everyone, Since our first announcement, IronLock Shield has received several major protection upgrades. IronLock Shield is a security platform developed specifically for Lineage II Interlude servers, focused on launcher integrity, runtime protection, session security, and anti-bot hardening. Current protection features: ✓ Secure Launcher Architecture ✓ HWID-Based Licensing ✓ Signed Launcher Session System ✓ Gateway Session Verification ✓ Automatic Session Revoke on Critical Detection ✓ Replay Protection with Nonce Validation ✓ Runtime Integrity Verification ✓ Secure Update System Client-side protections: ✓ Anti-Debug Protection ✓ Anti-Dump Protection ✓ DLL Injection Detection ✓ Manual Map Detection ✓ Remote Thread Detection ✓ Runtime Patch Detection ✓ Suspicious Handle Detection ✓ Memory Read / Write Guard ✓ Strict DLL Hash / Allowlist Control ✓ Launcher Self-Protection ✓ Watchdog Protection Bot and automation hardening: ✓ Adrenaline / Memory Reader Hardening ✓ Runtime Decoy Memory Regions ✓ Fake Pointer-Chain / Offset Noise ✓ Per-Build Mutation System ✓ Pointer Scan Disruption ✓ Virtual Keyboard Input Detection ✓ Hookless Virtual Mouse Click Detection ✓ Raw Input Based Mouse Verification Server and gateway security: ✓ Signed Launcher-to-Server Requests ✓ Build ID Binding ✓ HWID Binding ✓ IP / Session Binding ✓ Expired Session Blocking ✓ Revoked Session Blocking ✓ Gateway Runtime Session Checks ✓ Critical Detection Reporting Panel Recent improvements: ✓ Improved protection against memory-reading bots ✓ Added decoy pointer-chain memory traps ✓ Added per-build mutation data ✓ Added stricter process handle policy ✓ Added hookless virtual mouse click detection ✓ Improved watchdog stability to reduce false positives ✓ Improved session revoke logic for critical detections ✓ Updated website and protection feature list IronLock Shield is currently in closed beta. Selected Lineage II Interlude server owners can receive 1 month of free access in exchange for testing and feedback. Website: https://ilshield.com If you are interested, feel free to send me a private message or contact me through Discord. Thank you.
    • Contacts for communication. Telegram https://t.me/a_dvertising_man Telegram short link @a_dvertising_man   Delta Chat https://i.delta.chat/#11D46642C67CF6BDD4BD6430EB8AE99106CC54D7&v=3&i=u1npSLMZpUfcnWi5FGHNBn-1&s=GjBgI7oXKcuCXGl1acvt0tcp&a=p2norrc0e%40nine.testrun.org&n=advertisingman Hello. I participate in "forum deal" in role middleman. Paid services in graphic design,garant service(https link to profile) is provided only from buyer. Please write me in messenger for contact who are you by nationality and in which country you live.   I will not conduct deals with buyers and sellers from Ukraine. I do not cooperate with country Ukraine. If you Ukrainian by nationality or live in Ukraine,ignore this topic. If you other nationality: paid service from garant service buyer pays using own money.   Garant service(https link to profile) provided only from buyer. Buyer provides address guarantor service(https link to profile) or multiple addresses guarantors services. If seller don't like this garant service address(seller may doubt whether he will receive money from this garant service),then buyer offers another address garant service or multiple addresses guarantors services. If neither address seller doesn't like,then buyer is leaving from me.   Buyer deposits full amount to payment details guarantor service, plus my commission(my percent above amount for service in graphic design). In "forum questionnaire" buyer writes: payment details from seller,payment details seller i will send to buyer in advance via messenger.   Paid creation avatar and banner(price depends from complexity work). Paid creation visuals for music releases,for promo art(price depends from complexity work). Original posters using stock images(price depends from complexity work). Design for social media:covers,previews(price depends from complexity work). Other paid services in graphic design(price depends from complexity work).  
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..