Ver um Único Post
Antigo 18-05-2010, 03:08 PM   #2 (permalink)
Daniel2
Membro - Veterano
 
Avatar de Daniel2
 
Registrado em: Mar 2009
Localização: Cabeça Dentro dos Livros
Posts: 1,322
Agradeceu: 15
Agradecido 474 Vezes em 306 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Pontos: 8,740, Nível: 62
Pontos: 8,740, Nível: 62 Pontos: 8,740, Nível: 62 Pontos: 8,740, Nível: 62
Atividade: 99%
Atividade: 99% Atividade: 99% Atividade: 99%

Nome Real: Daniel Santos

Inventório de Daniel2

Padrão

Código: [Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
* 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.
 */
package net.sf.l2j.gameserver.handler.voicedcommandhandlers;

import net.sf.l2j.Config;
import net.sf.l2j.gameserver.handler.IVoicedCommandHandler;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;

/**
 * VoicedCommand Handler Allows clan leaders the power allow clan members withdraw items from clan warehouse. Syntax : .cwh_withdraw_on/off Author : Sergey V Chursin WWW : www.gludin.ru Email : [email protected]
 */
public class PlayersWithdrawCWH implements IVoicedCommandHandler
{
	private static final String[] VOICED_COMMANDS = { "cwh_withdraw_on", "cwh_withdraw_off" };

	public boolean useVoicedCommand(String command, L2PcInstance activeChar, String targetTxt)
	{
		if (!command.startsWith("cwh_withdraw_on") && !command.startsWith("cwh_withdraw_off"))
		{
			return false;
		}
		if (!Config.ALLOW_WITHDRAW_CWH_CMD)
		{
			activeChar.sendMessage("Êîìàíäà îòêëþ÷åíà àäìèíèñòðàòîðîì.");
			return true;
		}
		if (!activeChar.isClanLeader())
		{
			activeChar.sendMessage("Âû íå ìîæåòå èñïîëüçîâàòü ýòó êîìàíäó! Âû íå êëàí ëèäåð.");
			return true;
		}
		if (activeChar.getTarget() == null)
		{
			activeChar.sendMessage("Ïåðåä èñïîëüçîâàíèåì êîìàíäû - âûáåðèòå èãðîêà.");
			return true;
		}
		if (!(activeChar.getTarget() instanceof L2PcInstance))
		{
			activeChar.sendMessage("Ïåðåä èñïîëüçîâàíèåì êîìàíäû - âûáåðèòå èãðîêà.");
			return true;
		}
		L2PcInstance target = (L2PcInstance) activeChar.getTarget();
		if (activeChar.getObjectId() != target.getObjectId())
		{
			activeChar.sendMessage("Âû è òàê èìååòå ïîëíûé äîñòóï ê êëàí-ñêëàäó.");
			return true;
		}
		if (activeChar.getClanId() != target.getClanId())
		{
			activeChar.sendMessage("Âûáåðèòå èãðîêà èç ñâîåãî êëàíà.");
			return true;
		}
		if (command.startsWith("cwh_withdraw_on"))
		{
			target.setCanWithdrawCWH(1);
			activeChar.sendMessage(target.getName() + " ïîëó÷èë ïîëíûé äîñòóï ê êëàí-ñêëàäó.");
			target.sendMessage("Êëàí ëèäåð ðàçðåøèë âàì ïîëíûé äîñòóï ê êëàí-ñêëàäó.");
		}
		else if (command.startsWith("cwh_withdraw_off"))
		{
			target.setCanWithdrawCWH(0);
			activeChar.sendMessage(target.getName() + " ëèøåí ïîëíîãî äîñòóïà ê êëàí-ñêëàäó.");
			target.sendMessage("Êëàí ëèäåð ëèøèë âàñ ïîëíîãî äîñòóïà ê êëàí-ñêëàäó.");
		}
		return true;
	}

	public String[] getVoicedCommandList()
	{
		return VOICED_COMMANDS;
	}
}
bom mano eu arrumei mais o erro ta nessa linha aque ;D


Código: [Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
			activeChar.sendMessage("Âû è òàê èìååòå ïîëíûé äîñòóï ê êëàí-ñêëàäó.");
			return true;
mais de uma boa olhada refomule esse codigo dinovo coloca eu coloquei acima e re-copile ;D

Daniel2 está offline   Responder com Citação
O seguinte membro ao lado disse Obrigado(a) a : Daniel2 por gostar deste Post :
out (18-05-2010)