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
Voltar   Secret Experience > Área L2J > [L2J] Downloads > [Lineage] Java Mods
Registrar Loteria VIPStaff SERegras do fórum Comunidade Arcade Postados Hoje Pesquisar Experience
   

Secret Experience.NET   Secret Experience Corporation - Welcome To The Real World
     Anúncios SE

Resposta
 
Ferramentas do Tópico Modos de Exibição
Antigo 08-07-2009, 08:00 PM   #11
VslDream
Membro - Capitão
 
Avatar de VslDream
 
Registrado em: Mar 2009
Localização: Belo Horizonte - MG
Posts: 119
Agradeceu: 58
Agradecido 33 Vezes em 25 Posts
Achei Ruim:
Acharam ruim Vezes em Posts

Inventório de VslDream

Padrão

Citação:
A e mais uma coisa, "Nada é impossivel".
Exatamente!
O paytaly nao disse que é impossivel, so disse que nao vai aprender JAVA em TUTORIAL. E realmente nao vai...

Procure ALGUEM mesmo que possa lhe dar aulas, uma faculdade, ou LIVROS, e APOSTILAS.

Vlws!

VslDream está offline   Responder com Citação
O seguinte membro ao lado disse Obrigado(a) a : VslDream por gostar deste Post :
paytaly (08-07-2009)
Links Patrocinados
Antigo 08-07-2009, 08:13 PM   #12
WiLLNakamura
Membro - Soldado
 
Avatar de WiLLNakamura
 
Registrado em: Jul 2009
Posts: 10
Agradeceu: 0
Agradecido 0 Vezes em 0 Posts
Achei Ruim:
Acharam ruim Vezes em Posts

Inventório de WiLLNakamura

Padrão

Teoricamente para se aprender java como paytaly e vsl disseram é nescessario muito estudo (faculdade e tutoriais).

Mas existe outro modo, que é aprender mechendo, as vezes funciona dependendo da pessoa, tipo de pessoa que gosta de testar tudo e que nao tem preguica.

Boa sorte.

WiLLNakamura está offline   Responder com Citação
Antigo 05-07-2010, 10:16 PM   #13
Mazokista
Membro - Veterano
 
Avatar de Mazokista
 
Registrado em: Dec 2009
Posts: 1,335
Agradeceu: 490
Agradecido 803 Vezes em 427 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Meu Sistema
Rate Designer: Iniciante
Meu Estado:
Enviar mensagem via Windows Live Messenger para Mazokista
Nome Real: Roberto

Inventório de Mazokista

Padrão

Esse Mod e Compativel Para Pegar No Projeto ********* ???

Mazokista está offline   Responder com Citação
Antigo 13-07-2010, 11:12 AM   #14
magno15
Membro - Sargento
 
Avatar de magno15
 
Registrado em: Nov 2009
Posts: 36
Agradeceu: 13
Agradecido 4 Vezes em 3 Posts
Achei Ruim:
Acharam ruim Vezes em Posts

Inventório de magno15

Padrão

2 Perguntas..
1 o Mazokista ja perguntou.. quero saber a responta! :P

Outra.. como eu mudo o comando para..
.tvton = JOIN
.tvtoff = LEAVE

???


Obg...

magno15 está offline   Responder com Citação
Antigo 13-07-2010, 11:49 AM   #15
Guma
Membro - Veterano
 
Avatar de Guma
 
Registrado em: Sep 2009
Localização: Florianopolis (sc)
Posts: 591
Agradeceu: 72
Agradecido 724 Vezes em 241 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Meu Estado:
Enviar mensagem via Windows Live Messenger para Guma
Nome Real: i'm Guma

Inventório de Guma

Padrão

serve pra qualquer pack basta adaptar.

voce muda os comando q estao em vermelho

Citação:
public class TvTCmd implements IVoicedCommandHandler
{
private static final String[] VOICED_COMMANDS = { "tvtjoin", "tvtleave", "tvtinfo" };

public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
{
if (command.startsWith("tvtjoin"))
{
JoinTvT(activeChar);
}
else if(command.startsWith("tvtleave"))
{
LeaveTvT(activeChar);
}

else if(command.startsWith("tvtinfo"))
{
TvTinfo(activeChar);
}

return true;
}

Guma está offline   Responder com Citação
O seguinte membro ao lado disse Obrigado(a) a : Guma por gostar deste Post :
Mazokista (13-07-2010)
Antigo 06-12-2010, 02:30 AM   #16
mend3
Membro - Coronel
 
Avatar de mend3
 
Registrado em: Dec 2008
Localização: Campo Grande
Posts: 185
Agradeceu: 97
Agradecido 1,929 Vezes em 100 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Meu Estado:
Enviar mensagem via ICQ para mend3 Enviar mensagem via Windows Live Messenger para mend3 Enviar mensagem via Yahoo para mend3 Enviar mensagem via Skype para mend3
Pontos: 7,143, Nível: 55
Pontos: 7,143, Nível: 55 Pontos: 7,143, Nível: 55 Pontos: 7,143, Nível: 55
Atividade: 0%
Atividade: 0% Atividade: 0% Atividade: 0%

Nome Real: Victor Mendonça

Inventório de mend3

Padrão Código para L2JServer

Código dos handlers pra L2JServer

Código PHP: [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.gameserver.handler.IVoicedCommandHandler;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
import net.sf.l2j.gameserver.model.entity.TvT;
import net.sf.l2j.gameserver.serverpackets.NpcHtmlMessage;

public class 
TvTCmd implements IVoicedCommandHandler {

    private static final 
String[] VOICED_COMMANDS = {"tvtjoin""tvtleave""tvtinfo"};

    public 
boolean useVoicedCommand(String commandL2PcInstance activeCharString target) {
        if (
command.startsWith("tvtjoin")) {
            
JoinTvT(activeChar);
        } else if (
command.startsWith("tvtleave")) {
            
LeaveTvT(activeChar);
        } else if (
command.startsWith("tvtinfo")) {
            
TvTinfo(activeChar);
        }

        return 
true;
    }

    public 
String[] getVoicedCommandList() {
        return 
VOICED_COMMANDS;
    }

    public 
boolean JoinTvT(L2PcInstance activeChar) {
        if (
activeChar == null) {
            return 
false;
        }
        
NpcHtmlMessage npcHtmlMessage = new NpcHtmlMessage(0);


        if (!
TvT._joining) {
            
npcHtmlMessage.setHtml("<html><body>There is no TvT Event in progress.</body></html>");
            
activeChar.sendPacket(npcHtmlMessage);
            return 
false;
        } else if (
TvT._joining && activeChar._inEventTvT) {
            
npcHtmlMessage.setHtml("<html><body>You are already registered.</body></html>");
            
activeChar.sendPacket(npcHtmlMessage);
            return 
false;
        } else if (
activeChar.isCursedWeaponEquiped()) {
            
npcHtmlMessage.setHtml("<html><body>You are not allowed to participate to the Event<br>Because you are holding a Cursed Weapon.</body></html>");
            
activeChar.sendPacket(npcHtmlMessage);
            return 
false;
        } else if (
activeChar.isInOlympiadMode()) {
            
npcHtmlMessage.setHtml("<html><body>You are not allowed to participate to the Event<br>Because you are in Olympiad.</body></html>");
            
activeChar.sendPacket(npcHtmlMessage);
            return 
false;
        } else if (
activeChar.isInJail()) { //check if player is in jail
            
npcHtmlMessage.setHtml("<html><body>You are not allowed to participate to the Event<br>Because you are in Jail.</body></html>");
            
activeChar.sendPacket(npcHtmlMessage);
            return 
false;
        } else if (
activeChar.getLevel() < TvT._minlvl) {
            
npcHtmlMessage.setHtml("<html><body>You are not allowed to participate to the Event<br>Because you level is too low.</body></html>");
            
activeChar.sendPacket(npcHtmlMessage);
            return 
false;
        } else if (
activeChar.getLevel() < TvT._maxlvl) {
            
npcHtmlMessage.setHtml("<html><body>You are not allowed to participate to the Event<br>Because you level is too high.</body></html>");
            
activeChar.sendPacket(npcHtmlMessage);
            return 
false;
        } else if (
activeChar.getKarma() > 0) {
            
npcHtmlMessage.setHtml("<html><body>You are not allowed to participate to the Event<br>Because you have Karma.</body></html>");
            
activeChar.sendPacket(npcHtmlMessage);
            return 
false;
        } else if (
TvT._teleport || TvT._started) {
            
npcHtmlMessage.setHtml("<html><body>TvT Event registration period is over.<br>You can't register now.</body></html>");
            
activeChar.sendPacket(npcHtmlMessage);
            return 
false;
        } else if (
activeChar.isHero()) {
            
npcHtmlMessage.setHtml("<html><body>Hero players can't participate to the event.</body></html>");
            
activeChar.sendPacket(npcHtmlMessage);
            return 
false;
        } else if (
activeChar.isInFunEvent()) {
            
npcHtmlMessage.setHtml("<html><body>You're already in a envent</body></html>");
            
activeChar.sendPacket(npcHtmlMessage);
            return 
false;
        } else if (!
activeChar.isInsidePeaceZone(activeChar)) {
            
npcHtmlMessage.setHtml("<html><body>You must be in peace zone to register at the event</body></html>");
            
activeChar.sendPacket(npcHtmlMessage);
            return 
false;
        } else if (
activeChar.isInStoreMode()) {
            
npcHtmlMessage.setHtml("<html><body>You can't register while in a private store</body></html>");
            
activeChar.sendPacket(npcHtmlMessage);
            return 
false;
        } else {
            
npcHtmlMessage.setHtml("<html><body>Your participation in the TvT event has been approved.<br>Prepare to kill your enemies.</body></html>");
            
activeChar.sendPacket(npcHtmlMessage);
            
TvT.addPlayer(activeChar"");
            return 
false;
        }
    }

    public 
boolean LeaveTvT(L2PcInstance activeChar) {
        if (
activeChar == null) {
            return 
false;
        }

        
NpcHtmlMessage npcHtmlMessage = new NpcHtmlMessage(0);

        if (!
TvT._joining) {
            
npcHtmlMessage.setHtml("<html><body>There is no TvT Event in progress.</body></html>");
            
activeChar.sendPacket(npcHtmlMessage);
            return 
false;
        } else if ((
TvT._teleport || TvT._started) && activeChar._inEventTvT) {
            
npcHtmlMessage.setHtml("<html><body>You can not leave now because TvT event has started.</body></html>");
            
activeChar.sendPacket(npcHtmlMessage);
            return 
false;
        } else if (
TvT._joining && !activeChar._inEventTvT) {
            
npcHtmlMessage.setHtml("<html><body>You aren't registered in the TvT Event.</body></html>");
            
activeChar.sendPacket(npcHtmlMessage);
            return 
false;
        } else {
            
npcHtmlMessage.setHtml("<html><body>Your participation in the TvT event has been removed.</body></html>");
            
activeChar.sendPacket(npcHtmlMessage);
            
TvT.removePlayer(activeChar);
            return 
true;
        }
    }

    public 
boolean TvTinfo(L2PcInstance activeChar) {
        if (
activeChar == null) {
            return 
false;
        }

        
NpcHtmlMessage npcHtmlMessage = new NpcHtmlMessage(0);

        if (!
TvT._joining) {
            
npcHtmlMessage.setHtml("<html><body>There is no TvT Event in progress.</body></html>");
            
activeChar.sendPacket(npcHtmlMessage);
            return 
false;
        } else if (
TvT._teleport || TvT._started) {
            
npcHtmlMessage.setHtml("<html><body>I can't provide you this info.<br>Command available only in joining period.</body></html>");
            
activeChar.sendPacket(npcHtmlMessage);
            return 
false;
        } else {
            if (
TvT._playersShuffle.size() == 1) {
                
npcHtmlMessage.setHtml("<html><body>There is " TvT._playersShuffle.size() + " player participating in this event.</body></html>");
                
activeChar.sendPacket(npcHtmlMessage);
            } else {
                
npcHtmlMessage.setHtml("<html><body>There are " TvT._playersShuffle.size() + " players participating in this event.</body></html>");
                
activeChar.sendPacket(npcHtmlMessage);
            }
            return 
true;
        }
    }

Para quem tem os packages diferentes, basta alterar os imports.

Enjoy...

mend3 está offline   Responder com Citação
O seguinte membro ao lado disse Obrigado(a) a : mend3 por gostar deste Post :
Lanterna-Verde (06-12-2010)
Antigo 06-01-2012, 03:52 PM   #17
Donator
Membro - Soldado
 
Avatar de Donator
 
Registrado em: Jan 2012
Posts: 18
Agradeceu: 0
Agradecido 0 Vezes em 0 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Meu Estado:

Inventório de Donator

Padrão

Código: [Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
ahi faltan varias cosas 

en el dp
vas  a \gameserver\data\scripts\handlers\masterhandlers y 

  import handlers.voicedcommandhandlers.ChatAdmin;
+import handlers.voicedcommandhandlers.CTFCmd;
+import handlers.voicedcommandhandlers.TvTCmd;
  import handlers.voicedcommandhandlers.Debug;

ahora en el core
java/com/l2jserver/config.java

	  public static boolean TVT_ALLOW_VOICED_COMMAND;
	+public static boolean TVT_ALLOW_REGISTER_VOICED_COMMAND;
	  public static String CTF_EVEN_TEAMS;

	  public static long CTF_REVIVE_DELAY;
	  public static boolean CTF_BASE_TELEPORT_FIRST;
	+public static boolean CTF_ALLOW_REGISTER_VOICED_COMMAND;




+TVT_ALLOW_REGISTER_VOICED_COMMAND = Boolean.parseBoolean(L2JModSettings.getProperty("TVTAllowRegisterVoicedCommand", "false"));

 TVT_DOORS_IDS_TO_OPEN = new ArrayList<Integer>();
 TVT_DOORS_IDS_TO_CLOSE = new ArrayList<Integer>();

 


CTF_REVIVE_DELAY = 1000; //can't be set less then 1 second	
+CTF_ALLOW_REGISTER_VOICED_COMMAND = Boolean.parseBoolean(L2JModSettings.getProperty("CTFAllowRegisterVoicedCommand", "false"));
					
 BANKING_SYSTEM_ENABLED = Boolean.parseBoolean(L2JModSettings.getProperty("BankingEnabled", "false"));




ahora se van a l2jmods.properties

# PvP Count [Arena and TvT]
TvTArenaKillEnable = True

+#Allow Voiced .jointvt / .leavetvt commands / .infotvt
+TVTAllowRegisterVoicedCommand = True

# ---------------------------------------
# Section: PvP Nick Color Change System by Level


# If True, You must set-up in CTF admin panel
CTFTeleportToBaseFirst = True
+#Allow Voiced .ctfjoin / .ctfleave / .ctfinfo commands
+CTFAllowRegisterVoicedCommand = True

# ---------------------------------------------------------------------------
Bueno este deben aplicarlo manualmente
ademas si te salta error en la consola cuando cargan los script es por que el TvTcmd o el CTFcmd no son compatibles con tu revision o cronica pues hay veces en que los nombres de los archivos o las rutas de una revision o cronica a otra cambian, por lo tanto las importaciones estan mal debes revisar eso y para simplificar el problema borra la importacion que te esta dando error en masterhandlers , por cierto esto es para l2jserver pero tmb se puede adaptar para l2mu solo cambien las importaciones nada mas.

Donator está offline   Responder com Citação
Resposta


Regras para Posts
Você não pode postar novos tópicos
Você não pode postar respostas
Você não pode postar anexos
Você não pode editar seus posts

Código [IMG] Sim
Código HTML Não

Ir para...


Horários baseados na GMT -3. Agora são 10:52 PM.