Jump to content

Server Development Services + General Development Services!


Recommended Posts

sto admin panel exi ena html


<tr>
<td><button value="List Clans" action="bypass -h admin_list_siege_clans %castleName%" width=80 height=15 back="sek.cbui94" fore="sek.cbui92"></td>

opou ama allaksis

%castleName%

sto onoma tou castle s dixni to siege tis polis p egrapses

alla ama pas me aplo pexti k oxi me admin lei pos dn exis to access :S

ego skeftika kapos na doso mono afto to access stous char gia na mporoun na blepoun ta siege :)

Link to comment
Share on other sites

kokkinidisjim's request, ready.

 

/*
* 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 com.l2jfrozen.gameserver.handler.voicedcommandhandlers;

import java.util.StringTokenizer;

import javolution.text.TextBuilder;

import com.l2jfrozen.gameserver.handler.IVoicedCommandHandler;
import com.l2jfrozen.gameserver.managers.CastleManager;
import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
import com.l2jfrozen.gameserver.model.entity.ClanHall;
import com.l2jfrozen.gameserver.model.entity.siege.Castle;
import com.l2jfrozen.gameserver.network.serverpackets.NpcHtmlMessage;

/**
*
* @author Crystalia
*/

public class Siege implements IVoicedCommandHandler
{
private static String[] _voicedCommands =
{
	"siege"
};

@SuppressWarnings("null")
@Override
public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
{

	StringTokenizer st = new StringTokenizer(command, " ");
	command = st.nextToken(); // Get actual command

	// Get castle
	Castle castle = null;
	ClanHall clanhall = null;

	// Get castle
	@SuppressWarnings("unused")
	String val = "";

	if(st.hasMoreTokens())
	{
		val = st.nextToken();
	}

	if((castle == null || castle.getCastleId() < 0) && clanhall == null)
	{
		// No castle specified
		showCastleSelectPage(activeChar);
	}
	else
	{
		@SuppressWarnings("unused")
		L2PcInstance player = null;		

		 if(command.equalsIgnoreCase("admin_list_siege_clans"))
		{
			castle.getSiege().listRegisterClan(activeChar);

			return true;
		}

		player = null;
		target = null;
	}

	val = null;
	clanhall = null;
	castle = null;
	st = null;

	return true;
}

private void showCastleSelectPage(L2PcInstance activeChar)
{
	int i = 0;

	NpcHtmlMessage adminReply = new NpcHtmlMessage(5);
	adminReply.setFile("data/html/admin/castles.htm");
	TextBuilder cList = new TextBuilder();

	for(Castle castle : CastleManager.getInstance().getCastles())
	{
		if(castle != null)
		{
			String name = castle.getName();
			cList.append("<td fixwidth=90><a action=\"bypass -h admin_siege " + name + "\">" + name + "</a></td>");
			i++;
			name = null;
		}

		if(i > 2)
		{
			cList.append("</tr><tr>");
			i = 0;
		}
	}

	adminReply.replace("%castles%", cList.toString());
	cList.clear();
	i = 0;
}

@Override
public String[] getVoicedCommandList()
{
	return _voicedCommands;
}
}

 

Δεν δουλεύει σίγουρα, αλλά δοκίμασε.

Link to comment
Share on other sites

telika ginete na m dosis tn code gia hopzone and topzone reward system ala apo npc i apo ena .html???

 

εδώ αυτό που ζητάς το πουλάει ο Elfocrash με 35 ευρώ και λες να στο δώσω εγώ δωρεάν?
Link to comment
Share on other sites

εδώ αυτό που ζητάς το πουλάει ο Elfocrash με 35 ευρώ και λες να στο δώσω εγώ δωρεάν?

Αγορασε το απο τον Elfocrash

πολυ trusted και respected ατομο!

 

Link to comment
Share on other sites

kala....eklises ta alla 2 topics me upostiri3i gia l2jfrozen kai ani3es afto?:D


tecpa....an mporouses 8a i8ela na mou peis to na ftia3w ena character template px:(human me dark knight armor,hero,me custom name,hair accessorie,dynasty weapon) einai apo java code?....

Link to comment
Share on other sites

kala....eklises ta alla 2 topics me upostiri3i gia l2jfrozen kai ani3es afto?:D


tecpa....an mporouses 8a i8ela na mou peis to na ftia3w ena character template px:(human me dark knight armor,hero,me custom name,hair accessorie,dynasty weapon) einai apo java code?....

 

java code einai!

 

Link to comment
Share on other sites

java code einai!

 

einai sketo java code?i xriazete kapoio html,sql,client side?


Uparxei kanena etimo i mporei kapoios na mou ftia3ei


opoios mporei kai an einai grigoro as mou ftia3ei kanena..kai an tou aresei as ftia3ei kai kana parapanw (dwarf/human/orc) :D


Thnx In advance

Link to comment
Share on other sites

εδώ αυτό που ζητάς το πουλάει ο Elfocrash με 35 ευρώ και λες να στο δώσω εγώ δωρεάν?

 

SORRY dn to iksera!!!

 

an xriasto tpt alo mporw na apef8in8w edo i 8a to klisis to shara??? :D

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.



  • Posts

    • I come to invite everyone to register their server on our top server. The first 3 servers until 12/24/2023 received a free premium. I'm glad to be back and hope you help and good luck on your servers!   Website: https://top.4teambr.com  
    • Hello MXC Community.   I got the following problem. When i try to buy from //admin enchant scrolls, they appear like x? , i buy as many as i want , and the idea  is that they wont full your inventory.   So after im purchasing them, and press ok, i have the following message. " You have exceeded the quantity that can be inputted ". And in my inventory i can see the enchant's one near each other.     At admin shop i can choose them x?(number), and at the end for example i have to receive X100 Scrolls to my Inventory. But it's doesn't working, and i can buy them only 1 by 1. I will show you pictures so you get what i mean.  My points is where can i fix this? Which file i have to search and change the val, or it has to do with Database on MySQL ?     So as you see in the photos below, i try to buy 100 scrolls from //admin shop. and its shows (100) , but not full inventory of scrolls. When i press ok, i get the following message you see with purple.   But also as you can see in main inventory enchants are near each other.    
    • H5 L2OFF的CommunityBoard Has anyone shared this before?
    • Hello MXC Community, glad to be here.    To be honest i registered so fast, because i had some issues, and i was seeking to receive fast answer, that i forgot to make a topic, and introduce my self.   I hope you have a wonderful day, like i do 😊   So i’m New to Game Development, and i decided to join MXC community, as far as ,here i can find a tone of information, and support  my future journey with Game Development and other stuff.   I am seeking  becoming   a future L2 Developer, either on L2J or L2Off. Haven’t decided yet. Anyway i hope, i will learn both sides of Development.      So now, i will be often in the MXC forum, as i already started learning on a Local Server that i opened recently on my PC.      I hope i will get the necessary help from the Pros in this Forum.       Best regards, Softcore.
    • I did most damage to your brain maybe. Why is this flame post still open?
  • Topics

×
×
  • Create New...