|
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 | Membros | Arcade | Pesquisar | Postados Hoje | Marcar Fóruns Como Lidos | Experience |
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
![]() |
|
|
LinkBack | Ferramentas do Tópico | Modos de Exibição |
|
|
|
|
#1 (permalink) |
|
Membro - Tenente
![]() Registrado em: Mar 2009
Localização: Alemanha/Berlin
Posts: 101
Agradeceu: 43
Agradecido 385 Vezes em 48 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Meu Estado:
![]()
|
Bom e um commando que voce usa para se teleporta para uma localidade de pvp. O commando seria .pvp xD
Voce precisa add em uma rev que seje des-compilada! e Manualmente Comessando : Crie um dokumento Java com nome PvPTeleport Adicione : 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;
public class PvPTeleport implements IVoicedCommandHandler
{
private static final String[] _voicedCommands =
{
"pvp",
};
public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
{
if (command.equalsIgnoreCase("pvp"))
{
if(activeChar.atEvent)
{
activeChar.sendMessage("You are an Event.");
return false;
}
else if(activeChar.isInDuel())
{
activeChar.sendMessage("You are on Duel.");
return false;
}
else if(activeChar.isInOlympiadMode())
{
activeChar.sendMessage("You are in Olympiad");
return false;
}
else if(activeChar.isInCombat())
{
activeChar.sendMessage("You can't teleport in Combat Mod");
return false;
}
else if(activeChar.getParty().isInDimensionalRift())
{
activeChar.sendMessage("You cant do this because you are in Dimensional Rift");
return false;
}
else if (activeChar.isFestivalParticipant())
{
activeChar.sendMessage("You are in a festival.");
return false;
}
else if (activeChar.isInJail())
{
activeChar.sendMessage("You are in Jail.");
return false;
}
else if (activeChar.inObserverMode())
{
activeChar.sendMessage("You are in Observ Mode.");
return false;
}
else if (activeChar.isDead())
{
activeChar.sendMessage("You Dead. Can't Teleport");
return false;
}
else if (activeChar.isFakeDeath())
{
activeChar.sendMessage("You are Dead? week up :D");
return false;
}
if(activeChar.getInventory().getItemByItemId(3470) == null)
{
activeChar.sendMessage("You Need One Gold Bar To Use This.");
return false;
}
activeChar.teleToLocation(Config.PVP_X, Config.PVP_Y, Config.PVP_Z);
activeChar.destroyItemByItemId("Gold Bar", 3470, 1, activeChar, true);
activeChar.sendMessage("You have teleport in PvP Area");
}
return true;
}
public String[] getVoicedCommandList()
{
return _voicedCommands;
}
}
Código:
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
registerVoicedCommandHandler(new PvPTeleport()); Código:
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
Index: C:/Documents and Settings/Albion/workspace/Gracia Core/java/net/sf/l2j/Config.java
===================================================================
--- C:/Documents and Settings/Albion/workspace/Gracia Core/java/net/sf/l2j/Config.java (revision 2787)
+++ C:/Documents and Settings/Albion/workspace/Gracia Core/java/net/sf/l2j/Config.java (working copy)
@@ -559,18 +564,45 @@
public static boolean L2JMOD_WEDDING_SAMESEX;
public static boolean L2JMOD_WEDDING_FORMALWEAR;
public static int L2JMOD_WEDDING_DIVORCE_COSTS;
public static boolean L2JMOD_ENABLE_WAREHOUSESORTING_CLAN;
public static boolean L2JMOD_ENABLE_WAREHOUSESORTING_PRIVATE;
public static boolean L2JMOD_ENABLE_WAREHOUSESORTING_FREIGHT;
+ public static int PVP_X;
+ public static int PVP_Y;
+ public static int PVP_Z;
@@ -1776,6 +1810,25 @@
L2JMOD_ENABLE_WAREHOUSESORTING_PRIVATE = Boolean.valueOf(L2JModSettings.getProperty("EnableWarehouseSortingPrivate", "False"));
L2JMOD_ENABLE_WAREHOUSESORTING_FREIGHT = Boolean.valueOf(L2JModSettings.getProperty("EnableWarehouseSortingFreight", "False"));
+ PVP_X = Integer.parseInt(L2JModSettings.getProperty("LocationX", "0"));
+ PVP_Y = Integer.parseInt(L2JModSettings.getProperty("LocationY", "0"));
+ PVP_Z = Integer.parseInt(L2JModSettings.getProperty("LocationZ", "0"));
+
CTF_EVEN_TEAMS = L2JModSettings.getProperty("CTFEvenTeams", "BALANCE");
CTF_ALLOW_INTERFERENCE = Boolean.parseBoolean(L2JModSettings.getProperty("CTFAllowInterference", "false"));
CTF_ALLOW_POTIONS = Boolean.parseBoolean(L2JModSettings.getProperty("CTFAllowPotions", "false"));
CTF_ALLOW_SUMMON = Boolean.parseBoolean(L2JModSettings.getProperty("CTFAllowSummon", "false"));
CTF_ON_START_REMOVE_ALL_EFFECTS = Boolean.parseBoolean(L2JModSettings.getProperty("CTFOnStartRemoveAllEffects", "true"));
@@ -2296,7 +2375,12 @@
else if (pName.equalsIgnoreCase("ChampionRewardHigherLvlItemChance")) L2JMOD_CHAMPION_REWARD_HIGHER_LVL_ITEM_CHANCE = Integer.parseInt(pValue);
else if (pName.equalsIgnoreCase("ChampionRewardItemID")) L2JMOD_CHAMPION_REWARD_ID = Integer.parseInt(pValue);
else if (pName.equalsIgnoreCase("ChampionRewardItemQty")) L2JMOD_CHAMPION_REWARD_QTY = Integer.parseInt(pValue);
-
+
+ //L2JMOD PvP Area (.pvp)
+ else if (pName.equalsIgnoreCase("LocationX")) PVP_X = Integer.parseInt(pValue);
+ else if (pName.equalsIgnoreCase("LocationY")) PVP_Y = Integer.parseInt(pValue);
+ else if (pName.equalsIgnoreCase("LocationZ")) PVP_Z = Integer.parseInt(pValue);
+
// L2JMOD Wedding System
else if (pName.equalsIgnoreCase("AllowWedding")) L2JMOD_ALLOW_WEDDING = Boolean.parseBoolean(pValue);
else if (pName.equalsIgnoreCase("WeddingPrice")) L2JMOD_WEDDING_PRICE = Integer.parseInt(pValue);
else return false;
return true;
}
Código:
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
#---------------------------------- # PvP Location - (.pvp) # Put your PvP Location ( x,y,z ) ( # Example (2750, 14762, -7601) #---------------------------------- LocationX = 0 LocationY = 0 LocationZ = 0 ATENCAO SO RECOMENDO PRA PESSOAS QUE SAIBAM MEXER COM JAVA! CREDITOS : HeyHops Onde Axei? MaxCheaters |
|
|
| Os Seguintes 2 Usuários disseram Obrigado(a) para darkbr por gostarem deste post : |
astradiotto (09-04-2009), mend3 (07-04-2009)
|
| Links Patrocinados |
|
|
#2 (permalink) |
|
Membro - Coronel
![]() Registrado em: Feb 2009
Posts: 180
Agradeceu: 31
Agradecido 772 Vezes em 47 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
|
Poderia explica um pouco mais?
nao sei nada de java sei nem onde fica estes arquivos para adiciona..poderia fala quais pastas tao? e certim como assim .pvp pra onde vai? |
|
|
|
|
|
#3 (permalink) |
|
Membro - Tenente
![]() Registrado em: Mar 2009
Localização: Alemanha/Berlin
Posts: 101
Agradeceu: 43
Agradecido 385 Vezes em 48 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Meu Estado:
![]()
|
Tipo
Aqui voce poem as coordenadas pra onde voce quer que os chars vao usando o commando no game .pvp! #---------------------------------- # PvP Location - (.pvp) # Put your PvP Location ( x,y,z ) ( # Example (2750, 14762, -7601) #---------------------------------- LocationX = 0 LocationY = 0 LocationZ = 0 sobre os locais tenho que testa ainda! |
|
|
|
|
|
#5 (permalink) | ||||||||||||||
|
Membro - Coronel
![]() Registrado em: Dec 2008
Localização: Campo Grande
Posts: 185
Agradeceu: 97
Agradecido 1,929 Vezes em 100 Posts
Nome Real: Victor Mendonça
|
Mto legal isso
Seria muito legal tambem, quem soubesse mecher com isso, fazer um video tutorial de como adicionar. ;) |
||||||||||||||
|
|
|
||||||||||||||
|
|
#6 (permalink) | ||||||||||||||
|
Membro - Aspirante
![]() Registrado em: Nov 2008
Posts: 69
Agradeceu: 52
Agradecido 41 Vezes em 25 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
|
AMIGO ADD ISSOA E NO JAVA E TAL TUDO OK BLZA
COMPILEI TUDO OK BUILD SUCESSO SO QUE QUANDO CLICO NO GAME .PVP! NAO VAI PARA AS COORDENADAS QUE COLOQUEI LA ALIAS NAO VAI PARA LUGAR NENHUM APENAS DAR UM ERRO NO GAMESERVER ESSE Código:
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
Client: [Character: Lorenas - Account: oneo2 - IP: 127.0.0.1] - Failed running:
[C] 38 Say2 - L2J Server Version: 27M - DP Revision: 27
java.lang.NullPointerException
at net.sf.l2j.gameserver.handler.voicedcommandhandlers.PvPTeleport.useVo
icedCommand(PvPTeleport.java:52)
at handlers.chathandlers.ChatAll.handleChat(Unknown Source)
at net.sf.l2j.gameserver.network.clientpackets.Say2.runImpl(Say2.java:16
8)
at net.sf.l2j.gameserver.network.clientpackets.L2GameClientPacket.run(L2
GameClientPacket.java:76)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
|
||||||||||||||
|
|
|
||||||||||||||
|
|
#7 (permalink) |
|
playstation
![]() Registrado em: Dec 2008
Localização: Belo Horizonte
Posts: 1,284
Agradeceu: 118
Agradecido 1,503 Vezes em 772 Posts
Nome Real: Marcelo
|
Bom, já existe um Tutorial ---> [Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
Ele se aplica somente a parte da Config.java Agora quanto as outras: PvPTeleport.java deve ser adicionado na pasta: .../gameserver/handler/voicedcommandhandlers Para registrar o handler é só você abrir o arquivo: VoicedCommandHandler.java localizado na pasta: .../gameserver/handler e adicionar a linha referente ao handler, mostrada no primeiro Post. O outro deve ser adicionado no arquivo l2jmods.properties da pasta: GameServer/config Caso queira mudar o Arquivo .properties que você quer adicionar o arquivo: Código:
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
+ PVP_X = Integer.parseInt(L2JModSettings.getProperty("LocationX", "0"));
+ PVP_Y = Integer.parseInt(L2JModSettings.getProperty("LocationY", "0"));
+ PVP_Z = Integer.parseInt(L2JModSettings.getProperty("LocationZ", "0"));
essa config seja adicionada.
__________________
Há! Só posso rir de quem quer vender o que mal sabe fazer... Quer ser respondido direito!? Não faça perguntas idiotas. (Y) |
|
|
|
|
|
#8 (permalink) | ||||||||||||||
|
Membro - Aspirante
![]() Registrado em: Nov 2008
Posts: 69
Agradeceu: 52
Agradecido 41 Vezes em 25 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
|
desculpe mais tem algo de errado nesse java ae pois esta dando esse erro e eu coloquei tudo mais certo possivel posso nao corrigir issso mais sei add qualquer coisa no server via eclipse e claro sei add mais isso ae e no script uso l2jdag
to usando o pack do over12 gracia final esse script ae e para gracia ???????????? obrigado paytali |
||||||||||||||
|
|
|
||||||||||||||
|
|
#10 (permalink) |
|
Amigo SE
![]() Registrado em: Nov 2008
Localização: Fim de Mundo chamado: Hortolândia
Posts: 778
Agradeceu: 434
Agradecido 2,796 Vezes em 416 Posts
Nome Real: Victor Felipe Alencastro
|
Uma coisa que não quis postar mais que pode acontecer.
Em personagens que estão na Jail através desse comando pode sair dela, pois não vi nada ali que faça a restrição disso.
__________________
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
|
|
|
|
![]() |
| Ferramentas do Tópico | |
| Modos de Exibição | |
|
|
Tópicos Similares
|
||||
| Tópico | Tópico Iniciado Por | Fórum | Respostas | Última Mensagem |
| [INFO] Tudo sobre Lineage II | xxxvalterxxx | [Lineage] Praça de Giran | 10 | 17-03-2013 04:44 PM |
| 196 segredos do Windows XP | ChoVinisTa | [BAR] Outros Assuntos | 0 | 02-03-2009 08:36 PM |
| [Vice City] GTA: Vice City | Damage | [GTA] Tutoriais | 0 | 01-02-2009 11:39 AM |
| [San Andreas] Detonado GTA: San Andreas | Damage | [GTA] Tutoriais | 0 | 01-02-2009 11:38 AM |
| 99 Dicas para Xp | djmixedad | [BAR] Outros Assuntos | 0 | 05-01-2009 03:30 AM |