|
Você não é registrado, por favor registre-se para ter acesso ao conteúdo completo. Caso seja registrado, efetue login. Esqueceu sua senha? Clique aqui Recomendamos o uso do Mozilla Firefox para uma melhor visualização. |
|
| Início | Postados Hoje | Marcar Fóruns Como Lidos | Álbums | Banidos | SE Team | Medalhas |
|
|||||||
| Registrar | Loteria VIP | Staff SE | Regras do fórum | Comunidade | Arcade | Postados Hoje | Pesquisar | Experience |
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
![]() |
|
|
Ferramentas do Tópico | Modos de Exibição |
|
|
#1 | |
|
Amigo SE
![]() Registrado em: Oct 2009
Posts: 906
Agradeceu: 256
Agradecido 810 Vezes em 341 Posts
|
Sempre que vou compilar da esse erro:
Citação:
![]() Aqui ta o arquivo voicedcommandhandlers: 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 : schursin@gmail.com
*/
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;
}
}
|
|
|
|
|
| Links Patrocinados |
|
|
#2 | ||||||||||||||
|
Membro - Veterano
![]() 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
Nome Real: Daniel Santos
|
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 : schursin@gmail.com
*/
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;
}
}
Código:
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
activeChar.sendMessage("Âû è òàê èìååòå ïîëíûé äîñòóï ê êëàí-ñêëàäó.");
return true;
|
||||||||||||||
|
|
|
||||||||||||||
| O seguinte membro ao lado disse Obrigado(a) a : Daniel2 por gostar deste Post : |
out (18-05-2010)
|
|
|
#4 |
|
playstation
![]() Registrado em: Dec 2008
Localização: Belo Horizonte
Posts: 1,284
Agradeceu: 118
Agradecido 1,503 Vezes em 772 Posts
Nome Real: Marcelo
|
Esses ou algum(ns) desses caracteres russos não estão mapeados na encodificação UTF-8.
Solução? Traduzir o Mod.
__________________
Há! Só posso rir de quem quer vender o que mal sabe fazer... Quer ser respondido direito!? Não faça perguntas idiotas. (Y) |
|
|
|
| O seguinte membro ao lado disse Obrigado(a) a : paytaly por gostar deste Post : |
out (18-05-2010)
|
|
|
#5 |
|
Amigo SE
![]() Registrado em: Oct 2009
Posts: 906
Agradeceu: 256
Agradecido 810 Vezes em 341 Posts
|
Mas não consigo traduzir esses caracters "Âû è òàê èìååòå ïîëíûé äîñòóï ê êëàí-ñêëàäó.");.
Esse erro já vem da SVN, não add nada, na hora que vo compilar aparece. |
|
|
|
|
|
#6 | ||||||||||||||
|
Membro - Veterano
![]() 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
Nome Real: Daniel Santos
|
muito facil amigo vc vai num projeto ja traduzido aii vc traduz as msg mais vc tem que commitar Okss para o svn da REV ;D
|
||||||||||||||
|
|
|
||||||||||||||
| O seguinte membro ao lado disse Obrigado(a) a : Daniel2 por gostar deste Post : |
out (19-05-2010)
|
|
|
#7 |
|
Membro - Veterano
![]() Registrado em: Sep 2009
Localização: Florianopolis (sc)
Posts: 591
Agradeceu: 72
Agradecido 724 Vezes em 241 Posts
Nome Real: i'm Guma
|
@daniel
quem te disse q pra fase isso tem q commitar ? @Gma93 bom esse mod tem aki na area de java mod tente adiciona em cima desse ... |
|
|
|
| O seguinte membro ao lado disse Obrigado(a) a : Guma por gostar deste Post : |
out (19-05-2010)
|
|
|
#8 |
|
playstation
![]() Registrado em: Dec 2008
Localização: Belo Horizonte
Posts: 1,284
Agradeceu: 118
Agradecido 1,503 Vezes em 772 Posts
Nome Real: Marcelo
|
Convenhamos, é totalmente possível que o código, mesmo sendo direto do SVN esteja errado, já que não há nenhum tipo de restrição, como há na compilação. Também não é necessário saber essa língua para traduzir isso.
A primeira é a mensagem que será mandada caso a Config ALLOW_WITHDRAW_CWH_CMD seja false. A segunda, se o Char não for líder de Clan. A terceira, se o Target for null, ou seja, nada. Quarta, se o Target não for instância do L2PcInstance. Quinta, se o ObjectId do Char for igual ao Target (Target em você mesmo). Sexta, se o Clan do Char for diferente do Target. Sétima, se o comando for cwh_withdraw_on. Oitava, se o comando for cwh_withdraw_off. Nos 2 últimos são mandadas 2 mensagens. A primeira para o Char e a segunda para o Target.
__________________
Há! Só posso rir de quem quer vender o que mal sabe fazer... Quer ser respondido direito!? Não faça perguntas idiotas. (Y) |
|
|
|
| O seguinte membro ao lado disse Obrigado(a) a : paytaly por gostar deste Post : |
out (19-05-2010)
|
|
|
#9 |
|
Amigo SE
![]() Registrado em: Oct 2009
Posts: 906
Agradeceu: 256
Agradecido 810 Vezes em 341 Posts
|
Bom galera ainda continua esse erro inconveniente
![]() Teria como deletar o arquivo do Build para não carregar? |
|
|
|
|
|
#10 |
|
Membro - Veterano
![]() Registrado em: Sep 2009
Localização: Florianopolis (sc)
Posts: 591
Agradeceu: 72
Agradecido 724 Vezes em 241 Posts
Nome Real: i'm Guma
|
pode passa o source pra possa ver o erro ?
eu peguei esse arquivo e coloquei no meu aqui e nao deu erro... |
|
|
|