- 0
-
Quem Está Navegando
- Nenhum usuário registrado visualizando esta página.
-
Posts
-
Recebo este erro Fatal error: Uncaught PDOException: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens in C:\xampp\htdocs\icp\src\engine\ICP_install.php:36 Stack trace: #0 C:\xampp\htdocs\icp\src\engine\ICP_install.php(36): PDOStatement->execute(Array) #1 C:\xampp\htdocs\icp\src\index.php(14): require_once('C:\\xampp\\htdocs...') #2 {main} thrown in C:\xampp\htdocs\icp\src\engine\ICP_install.php on line 36
-
Por Nattan Felipe · Postado
Fala Hoop, eu testei aqui e realmente e realmente está com esse problema. Obrigado pelo comentário! -
@Ivan Pires e ai Borther tudo bem? como anda a V5?
-
Por diulioguerra · Postado
O link do pack 98 está inválido. -
Ta caindo no limbo quando salta aquele barranco da cidade de dion, ao lado do teleporte.
-
@Legionarios esse arquivo e criado quando você digita as informações após upa os arquivos para sua hospedagem abra o link do seu site a primeira vez e ele vai pedir as informações do config após coloca os dados ele vai criar o arquivo config ele fala isso nos vídeos.
-
Por Legionarios · Postado
faltan los archivos de la carpeta Config descargue el paquete ICPNetworks V4 y tambien V3 y ninguno trae adentro los archivos config, la carpeta esta vacia Arquivos estão faltando na pasta Config baixe o pacote ICPNetworks V4 e também V3 e nenhum deles contém os arquivos de configuração, a pasta está vazia -
Alguém ja conseguiu por na REV l2jsunrise diz que e compatível mais tentei ligar a banco de dados dele e da vários erros de colunas que não existe como se nao fosse compativel os bancos de dados l2jsunrise.
-
Hola rosh yo también soy argentino y quisiera contribuir en este proyecto, veo que vos ya estas mas interiorizado, estaría genial si nos pondríamos en contacto para ver que podemos hacer en base a este proyecto y por que no otras cuestiones futuras para algun server... si te interesa te estaré enviando el contacto. Estoy en la misma situación y nivel de conocimiento que vos, nada mas que yo solo utilice Jteon, Jfrozen, JArchid y tambien Jacis. Todo en interlude.
-
Pergunta
dariopanciere
Estou tentando usar esse mod que encontrei no Forum, o .xp_on e .xp_off, mesmo seguindo os tutoriais de como adicionar os mods, estou tendo problemas, uma série de erros, sempre pedindo para criar algo...
O Mod segue abaixo.
Index: trunk/gameserver/config/functions/l2jknight.ini
===================================================================
--- trunk/gameserver/config/functions/l2jknight.ini (revision 133)
+++ trunk/gameserver/config/functions/l2jknight.ini (working copy)
@@ -275,4 +275,10 @@
ProtectorSkillLevel = 13
ProtectorSkillTime = 600
# Npc Protector Message
-ProtectorMessage = Hey You!, Never Kill On This Area, Go Read The Rules!
\ No newline at end of file
+ProtectorMessage = Hey You!, Never Kill On This Area, Go Read The Rules!
+
+# ---------------------------------------------------------------------------------
+# Enable / Disable Xp
+# ---------------------------------------------------------------------------------
+#Enable / Disable command receiving experience. (. Expon. Expoff. Xpon. Xpoff)
+AllowExpGainCommand = False
\ No newline at end of file
Index: trunk/gameserver/head-src/com/l2jknight/Config.java
===================================================================
--- trunk/gameserver/head-src/com/l2jknight/Config.java (revision 133)
+++ trunk/gameserver/head-src/com/l2jknight/Config.java (working copy)
@@ -2241,6 +2241,7 @@
public static String FARM2_CUSTOM_MESSAGE;
public static String PVP1_CUSTOM_MESSAGE;
public static String PVP2_CUSTOM_MESSAGE;
+ public static boolean ALLOW_EXP_GAIN_COMMAND;
//============================================================
public static void loadL2JKNIGHTConfig()
@@ -2359,6 +2360,7 @@
FARM2_CUSTOM_MESSAGE = L2KnightSettings.getProperty("Farm2CustomMeesage", "You have been teleported to Farm Zone 2!");
PVP1_CUSTOM_MESSAGE = L2KnightSettings.getProperty("PvP1CustomMeesage", "You have been teleported to PvP Zone 1!");
PVP2_CUSTOM_MESSAGE = L2jfrozenSettings.getProperty("PvP2CustomMeesage", "You have been teleported to PvP Zone 2!");
+ ALLOW_EXP_GAIN_COMMAND = Boolean.parseBoolean(L2KnightSettings.getProperty("AllowExpGainCommand", "false"));
}
catch(Exception e)
{
Index: trunk/gameserver/head-src/com/l2jknight/gameserver/handler/VoicedCommandHandler.java
===================================================================
--- trunk/gameserver/head-src/com/l2jknight/gameserver/handler/VoicedCommandHandler.java (revision 133)
+++ trunk/gameserver/head-src/com/l2jknight/gameserver/handler/VoicedCommandHandler.java (working copy)
@@ -36,6 +36,7 @@
import com.l2jknight.gameserver.handler.voicedcommandhandlers.VersionCmd;
import com.l2jknight.gameserver.handler.voicedcommandhandlers.Voting;
import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.Wedding;
+import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.ExpGain;
/**
* This class ...
@@ -90,7 +91,8 @@
{
registerVoicedCommandHandler(new Wedding());
}
-
+
+ registerVoicedCommandHandler(new ExpGain());
registerVoicedCommandHandler(new StatsCmd());
if(Config.ALLOW_VERSION_COMMAND)
Index: trunk/gameserver/head-src/com/l2jknight/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- trunk/gameserver/head-src/com/l2jknight/gameserver/model/actor/instance/L2PcInstance.java (revision 133)
+++ trunk/gameserver/head-src/com/l2jknight/gameserver/model/actor/instance/L2PcInstance.java (working copy)
@@ -13049,8 +13049,13 @@
@Override
public void addExpAndSp(long addToExp, int addToSp)
{
- getStat().addExpAndSp(addToExp, addToSp);
- }
+ // getStat().addExpAndSp(addToExp, addToSp, false);
+ //}
+ if (_expGainOn)
+ getStat().addExpAndSp(addToExp, addToSp);
+ else
+ getStat().addExpAndSp(0, addToSp);
+ }
public void removeExpAndSp(long removeExp, int removeSp)
{
@@ -15984,4 +15989,16 @@
{
return getClient().getFloodProtectors();
}
+
+ // ----------------------EXP on/off----------------------
+ private boolean _expGainOn = true;
+ public void setExpOn(boolean expOn)
+ {
+ _expGainOn = expOn;
+ }
+ public boolean getExpOn()
+ {
+ return _expGainOn;
+ }
+ // ----------------------EXP on/off----end------------------
}
Index: trunk/gameserver/head-src/com/l2jknight/gameserver/handler/voicedcommandhandlers/ExpGain.java ===================================================================
--- trunk/gameserver/head-src/com/l2jknight/gameserver/handler/voicedcommandhandlers/ExpGain.java (revision 0)
+++ trunk/gameserver/head-src/com/l2jknight/gameserver/handler/voicedcommandhandlers/ExpGain.java (revision 0)
@@ -0,0 +1,48 @@
+/*
+ * 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 <
+ */
+package com.l2jknight.gameserver.handler.voicedcommandhandlers;
+
+import com.l2jknight.gameserver.handler.IVoicedCommandHandler;
+import com.l2jknight.gameserver.model.actor.instance.L2PcInstance;
+
+public class ExpGain implements IVoicedCommandHandler
+{
+ private String[] _voicedCommands = {
+ "expon",
+ "xpon",
+ "expoff",
+ "xpoff"
+ };
+
+ public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
+ {
+ if (command.equalsIgnoreCase("expon") || command.equalsIgnoreCase("xpon"))
+ {
+ activeChar.setExpOn(true);
+ activeChar.sendMessage("You gain XP.");
+ }
+ else if (command.equalsIgnoreCase("expoff") || command.equalsIgnoreCase("xpoff"))
+ {
+ activeChar.setExpOn(false);
+ activeChar.sendMessage("You not gain XP.");
+ }
+ return true;
+ }
+
+ public String[] getVoicedCommandList()
+ {
+ return _voicedCommands;
+ }
+}
Link para o comentário
Compartilhar em outros sites
10 respostass a esta questão
Posts recomendados