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

    • New implementations   Autofarm complete system with time limit fully configurable   Tournament 1vs1 ( not instanced ) With queue fully configurable ( possibility to run all day or 2 different hours for example Latin/Europe   Fortress vs Fortress event automated with top killer reward , protections and fully configurable with seperated .ini   And more
    • Anybody has these monsters ripped from the latest chronicle lineagemonsters14.volcanic_archer_m00 lineagemonsters14.volcanic_ice_m00 lineagemonsters14.volcanic_magic_m00 lineagemonsters14.volcanic_warrior_m00 lineagemonsters14.volcanic_boss_m00  
    • this is literally like such bad advice? i dont thikn you understand the question..   node_begin name=[Ability] type=5 sub_node_begin paramType=100 unk=0 nodeName=[Type] int_params={1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;2;2;2;2;2;2;2;2;2;2;2;2;2;2;2;2;2;2;2;3;3;3;3;3;3;3;3;3;3;3;3;3;3;3;3;3} sub_node_end sub_node_begin paramType=100 unk=0 nodeName=[SkillID] int_params={19233;19234;19235;19236;19237;19238;19239;19240;19241;19242;19243;19244;19245;19246;19247;19248;19249;19250;19251;19252;19253;19254;19255;19256;19257;19258;19259;19260;19261;19262;19263;19264;19265;19266;19267;19268;19269;19270;19271;19272;19273;19274;19275;19276;19277;19278;19279;19280;19281;19282;19283;19284;19285;19286;19287;19288;19289} sub_node_end sub_node_begin paramType=100 unk=0 nodeName=[SkillLev] int_params={3;3;3;3;2;2;2;2;4;1;4;1;2;2;2;2;2;1;1;2;1;2;4;4;3;2;3;1;3;2;3;1;2;2;1;2;2;2;2;1;2;3;3;3;3;1;3;2;1;2;2;2;2;2;2;2;1} sub_node_end sub_node_begin paramType=100 unk=0 nodeName=[Depth] int_params={1;1;1;1;2;2;2;2;3;3;3;3;4;4;4;4;5;5;5;5;6;1;1;1;2;2;2;2;3;3;3;3;4;4;4;4;5;5;5;6;1;1;1;2;2;2;3;3;3;4;4;4;4;5;5;5;6} sub_node_end sub_node_begin paramType=100 unk=0 nodeName=[Column] int_params={1;2;3;4;1;2;3;4;1;2;3;4;1;2;3;4;1;2;3;4;2;1;2;4;1;2;3;4;1;2;3;4;1;2;3;4;1;2;4;2;1;2;4;1;3;4;1;2;4;1;2;3;4;1;2;4;2} sub_node_end sub_node_begin paramType=100 unk=0 nodeName=[RequireLev] int_params={85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85;85} sub_node_end sub_node_begin paramType=100 unk=0 nodeName=[RequireSkillID] int_params={0;0;0;0;0;0;0;19236;19237;0;19239;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;19257;0;19259;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;19276;0;0;0;0;0;0;0;0;0;0} sub_node_end sub_node_begin paramType=100 unk=0 nodeName=[RequireSkillLev] int_params={0;0;0;0;0;0;0;3;2;0;2;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;3;0;3;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;3;0;0;0;0;0;0;0;0;0;0} sub_node_end sub_node_begin paramType=100 unk=0 nodeName=[RequireCount] int_params={0;0;0;0;5;5;5;5;10;10;10;10;15;15;15;15;20;20;20;20;25;0;0;0;5;5;5;5;10;10;10;10;15;15;15;15;20;20;20;25;0;0;0;5;5;5;10;10;10;15;15;15;15;20;20;20;25} sub_node_end sub_node_begin paramType=115 unk=0 nodeName=[Name] string_params={[Guardian's Shield];[Guardian's Magic Barrier];[Guardian's Body];[Guardian's Elemental Cover];[Guardian's Armor Defense];[Guardian's Leather Defense];[Guardian's Tunic Defense];[Guardian's Resistance];[Guardian's Life];[Guardian's Block];[Guardian's Armor];[Guardian's Guidance];[Guardian's Death Shield];[Guardian's Focus Shield];[Guardian's Mind Control];[Guardian's Blessing];[Guardian's Binding Cover];[Guardian's Spirit];[Guardian's Potential];[Guardian's Expert Potion];[Guardian's Defense Master];[Berserker's Haste];[Berserker's Might];[Berserker's Elemental Attack];[Berserker's Craft Focus];[Berserker's Backfire];[Berserker's Focus];[Berserker's Cost];[Berserker's Craft Death];[Berserker's Mortal];[Berserker's Death Whisper];[Berserker's Eagle];[Berserker's Battle];[Berserker's Fire];[Berserker's Skill Reduction];[Berserker's Blessing];[Berserker's Binding Attack];[Berserker's Divine Attack];[Berserker's Expert Potion];[Berserker's Combat Master];[Magician's Acumen];[Magician's Empower];[Magician's Elemental Shot];[Magician's Wild Magic];[Magician's Condition];[Magician's Eva];[Magician's Mystic];[Magician's Prominence];[Magician's Sight];[Magician's Protection];[Magician's Water];[Magician's Magic Reduction];[Magician's Blessing];[Magician's Binding Shot];[Magician's Divine Shot];[Magician's Expert Potion];[Magician's Spell Master]} sub_node_end sub_node_begin paramType=115 unk=0 nodeName=[Icon] string_params={[icon.skill19120];[icon.skill19121];[icon.skill1045];[icon.skill1352];[icon.skill0231];[icon.skill0233];[icon.skill0234];[icon.skill1354];[icon.skill1229];[icon.skill1304];[icon.skill19165];[icon.skill19127];[icon.skill1542];[icon.skill0986];[icon.skill19132];[icon.skill_exp_sp_up];[icon.skill0335];[icon.skill10044];[icon.skill1532];[icon.skill_potion_up];[icon.skill0528];[icon.skill1086];[icon.skill19139];[icon.skill19130];[icon.skill0193];[icon.skill0030];[icon.skill1077];[icon.skill19140];[icon.skill10655];[icon.skill0330];[icon.skill4278];[icon.skill19127];[icon.skill1388];[icon.skill1356];[icon.skill0758];[icon.skill_exp_sp_up];[icon.skill0983];[icon.skill11011];[icon.skill_potion_up];[icon.skill1499];[icon.skill1085];[icon.skill1059];[icon.skill19130];[icon.skill1303];[icon.skill1501];[icon.skill0214];[icon.skill19160];[icon.skill0330];[icon.skill19127];[icon.skill0046];[icon.skill1355];[icon.skill0945];[icon.skill_exp_sp_up];[icon.skill0983];[icon.skill11011];[icon.skill_potion_up];[icon.skill1500]} sub_node_end sub_node_begin paramType=115 unk=0 nodeName=[IconPanel] string_params={[icon.pannel_blessed];[icon.pannel_blessed];[icon.pannel_blessed];[icon.pannel_blessed];[icon.pannel_blessed];[icon.pannel_blessed];[icon.pannel_blessed];[icon.pannel_blessed];[icon.pannel_blessed];[icon.pannel_blessed];[icon.pannel_blessed];[icon.pannel_blessed];[icon.pannel_blessed];[icon.pannel_blessed];[icon.pannel_blessed];[icon.pannel_blessed];[icon.pannel_blessed];[icon.pannel_blessed];[icon.pannel_blessed];[icon.pannel_blessed];[icon.pannel_blessed];[icon.pannel_pupple];[icon.pannel_pupple];[icon.pannel_pupple];[icon.pannel_pupple];[icon.pannel_pupple];[icon.pannel_pupple];[icon.pannel_pupple];[icon.pannel_pupple];[icon.pannel_pupple];[icon.pannel_pupple];[icon.pannel_pupple];[icon.pannel_pupple];[icon.pannel_pupple];[icon.pannel_pupple];[icon.pannel_pupple];[icon.pannel_pupple];[icon.pannel_pupple];[icon.pannel_pupple];[icon.pannel_pupple];[icon.panel_2];[icon.panel_2];[icon.panel_2];[icon.panel_2];[icon.panel_2];[icon.panel_2];[icon.panel_2];[icon.panel_2];[icon.panel_2];[icon.panel_2];[icon.panel_2];[icon.panel_2];[icon.panel_2];[icon.panel_2];[icon.panel_2];[icon.panel_2];[icon.panel_2]} sub_node_end sub_node_begin paramType=109 unk=0 nodeName=[LevelDesc] array_params={{[P. Def. + 2%];[P. Def. + 4%];[P. Def. + 7%]};{[M. Def. + 2%];[M. Def. + 4%];[M. Def. + 7%]};{[Max HP + 3%];[Max HP + 6%];[Max HP + 9%]};{[All Attribute Defense + 15];[All Attribute Defense + 25];[All Attribute Defense + 40]};{[When equipping Heavy Armor <br>P./M. Def. + 3%];[When equipping Heavy Armor <br>P./M. Def. + 6%]};{[When equipping Light Armor <br>P./M. Def. + 3%];[When equipping Light Armor <br>P./M. Def. + 6%]};{[When equipping Robe <br>P./M. Def. + 3%];[When equipping Robe <br>P./M. Def. + 6%]};{[Debuff Resistance + 5%];[Debuff Resistance + 10%]};{[Max HP + 3%];[Max HP + 6%];[Max HP + 10%];[Max HP + 15%]};{[Shield Defense + 100%]};{[P. Def. + 2%];[P. Def. + 4%];[P. Def. + 8%];[P. Def. + 12%]};{[P. Accuracy, M. Accuracy,<br>servitor's P. Accuracy + 12.<br>Enchants Revelation skill]};{[Received P. Critical Damage - 10%];[Received P. Critical Damage - 20%]};{[Chance of receiving P. Critical Damage - 15%];[Chance of receiving P. Critical Damage - 30%]};{[Skill Cooldown - 3%];[Skill Cooldown - 5%]};{[EXP, SP + 5%];[EXP, SP + 10%]};{[Received damage when immobilized - 7%];[Received damage when immobilized - 15%]};{[All Attribute Defense + 50]};{[Skill Critical Rate + 10%]};{[Recovery Potion, Elixir Effect + 500];[Recovery Potion, Elixir Effect + 1000]};{[Received Damage - 10%]};{[Atk. Spd. + 1%];[Atk. Spd. + 3%]};{[P. Atk. + 1%];[P. Atk. + 2%];[P. Atk. + 3%];[P. Atk. + 4%]};{[Attack Attribute + 10];[Attack Attribute + 20];[Attack Attribute + 30];[Attack Attribute + 40]};{[P. Skill Critical Rate + 3%];[P. Skill Critical Rate + 6%];[P. Skill Critical Rate + 10%]};{[Rear Damage + 2%];[Rear Damage + 5%]};{[P. Critical Rate + 10];[P. Critical Rate + 20];[P. Critical Rate + 40]};{[Skill MP Consumption - 5%]};{[P. Skill Critical Damage + 2%];[P. Skill Critical Damage + 4%];[P. Skill Critical Damage + 7%]};{[Skill Mastery Rate + 30%];[Skill Mastery Rate + 60%]};{[P. Critical Damage + 2%];[P. Critical Damage + 4%];[P. Critical Damage + 7%]};{[P. Accuracy, M. Accuracy,<br>servitor's P. Accuracy + 12.<br>Enchants Revelation skill]};{[P. Atk. + 3%];[P. Atk. + 6%]};{[P. Skill Power + 2%];[P. Skill Power + 5%]};{[Skill Cooldown - 3%]};{[EXP, SP + 5%];[EXP, SP + 10%]};{[Damage to immobilized<br>targets + 5%];[Damage to immobilized<br>targets + 10%]};{[Attack Attribute + 25];[Attack Attribute + 50]};{[Recovery Potion, Elixir Effect + 500];[Recovery Potion, Elixir Effect + 1000]};{[Damage + 10%]};{[Casting Spd. + 2%];[Casting Spd. + 4%]};{[M. Atk. + 2%];[M. Atk. + 5%];[M. Atk. + 8%]};{[Attack Attribute + 10];[Attack Attribute + 20];[Attack Attribute + 40]};{[M. Critical Rate + 10];[M. Critical Rate + 20];[M. Critical Rate + 40]};{[Max HP, MP + 3%];[Max HP, MP + 6%];[Max HP, MP + 9%]};{[Skill MP Consumption - 5%]};{[M. Critical Damage + 3%];[M. Critical Damage + 6%];[M. Critical Damage + 10%]};{[Skill Mastery Rate + 30%];[Skill Mastery Rate + 60%]};{[P. Accuracy, M. Accuracy,<br>servitor's P. Accuracy + 12.<br>Enchants Revelation skill]};{[Mental, Stun, Aerial Yoke<br>Success Rate + 5%];[Mental, Stun, Aerial Yoke<br>Success Rate + 10%]};{[M. Skill Power + 2%];[M. Skill Power + 5%]};{[Skill Cooldown - 3%];[Skill Cooldown - 5%]};{[EXP, SP + 5%];[EXP, SP + 10%]};{[Damage to Immobile<br>Opponents + 5%];[Damage to Immobile<br>Opponents + 10%]};{[Attack Attribute + 25];[Attack Attribute + 50]};{[Recovery Potion, Elixir Effect + 500];[Recovery Potion, Elixir Effect + 1000]};{[Damage + 10%]}} sub_node_end node_end @babyjason in regards to your post ><
    • hate to be a hater but this is typical ai slop kind of post..
  • 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..