Thread: ≈ VENTAJAS DEL L2 OFF
View Single Post
Old 18.09.2005, 10:29   #19
Squadron
Архивный участник
 
Join Date: Sep 2005
Posts: 1
Default

Quote:
Originally Posted by kepler001
/unstuck en el l2j y vas al pueblo sin scroll e instantaneo
mismo blesed scroll de escape

EL COMANDO PA HACERLOS GM creo ke no es dable ke lo ponga no kiero sobre mi conciencia la responsabilidad de malograr el proyecto pero ese comando existe da a cualkier user el rango de gm
Bueno el "BUG" del que hablas hace tiempo que fue solucionado, tranquilamente podria haber sido desactivado el comando, pero se dejo activado para los despistados que en casos raros se puedan quedar atrapados en algun sitio, en este caso para un GM lo hace instantaneamente, pero para un jugardo cualquiera lo hace en 5 Min., Pos no creo que hayan muchos dispuestos a perder 5 minutos de su tiempo solo para ir gratis al pueblo mas cercano... ^^

Este es el codigo que repara el supuesto BUG si es que en tu version de L2J no esta actualizada y ejecuta el comando instantaneamente a cualquier PJ con o sin privilegio de ADMIN...

[glow=red:6fd54f572a]other.properties:[/glow:6fd54f572a]

# Unstuck interval, seconds, default is 300 sec.
UnstuckInterval = <time_in_seconds>

[glow=red:6fd54f572a]Config.java:[/glow:6fd54f572a]

Index: C:/eclipse-31m7/workspace/L2_GameServer/java/net/sf/l2j/Config.java
================================================== =================
--- C:/eclipse-31m7/workspace/L2_GameServer/java/net/sf/l2j/Config.java (revision 921)
+++ C:/eclipse-31m7/workspace/L2_GameServer/java/net/sf/l2j/Config.java (working copy)
@@ -301,6 +301,7 @@

/** Deep Blue Mobs' Drop Rules Enabled */
public static final boolean DEEPBLUE_DROP_RULES;
+ public static final int UNSTUCK_INTERVAL;

// telnet enabled
public static final boolean IS_TELNET_ENABLED;
@@ -463,6 +464,7 @@
CP_REGEN_MULTIPLIER = (double)Integer.parseInt(otherSettings.getProperty ("CpRegenMultiplier", "100"));

STARTING_ADENA = Integer.parseInt(otherSettings.getProperty("Starti ngAdena", "100"));
+ UNSTUCK_INTERVAL = Integer.parseInt(otherSettings.getProperty("Unstuc kInterval", "300"));
}
catch (Exception e) {
e.printStackTrace();

[glow=red:6fd54f572a]Escape.java:[/glow:6fd54f572a]

Index: C:/eclipse-31m7/workspace/L2_GameServer/java/net/sf/l2j/gameserver/handler/usercommandhandlers/Escape.java
================================================== =================
--- C:/eclipse-31m7/workspace/L2_GameServer/java/net/sf/l2j/gameserver/handler/usercommandhandlers/Escape.java (revision 921)
+++ C:/eclipse-31m7/workspace/L2_GameServer/java/net/sf/l2j/gameserver/handler/usercommandhandlers/Escape.java (working copy)
@@ -18,6 +18,7 @@
*/
package net.sf.l2j.gameserver.handler.usercommandhandlers;

+import net.sf.l2j.Config;
import net.sf.l2j.gameserver.ClientScheduler;
import net.sf.l2j.gameserver.MapRegionTable;
import net.sf.l2j.gameserver.handler.IUserCommandHandler;
@@ -36,14 +37,14 @@
public class Escape implements IUserCommandHandler
{
private static final int[] COMMAND_IDS = { 52 };
- private static final int REQUIRED_LEVEL = net.sf.l2j.Config.GM_ESCAPE;
+ private static final int REQUIRED_LEVEL = Config.GM_ESCAPE;

/* (non-Javadoc)
* @see net.sf.l2j.gameserver.handler.IUserCommandHandler# useUserCommand(int, net.sf.l2j.gameserver.model.L2PcInstance)
*/
public boolean useUserCommand(int id, L2PcInstance activeChar)
{
- int _unstuckTimer = (activeChar.getAccessLevel() >=REQUIRED_LEVEL? 5000 : 300000 );
+ int _unstuckTimer = (activeChar.getAccessLevel() >=REQUIRED_LEVEL? 5000 : Config.UNSTUCK_INTERVAL*1000 );
SystemMessage sm = new SystemMessage(614);
sm.addString("After " + _unstuckTimer/60000 + " min. you be returned to near village.");
activeChar.sendPacket(sm);

Bueno, haber si me dices el comando para que un PJ sin privilegios de ADMIN se haga ADMIN, Me fijo si ya no fue arreglado como muchos otros, y si no, pos te aseguro que muy pronto lo sera... [schild=13 fontcolor=000000 shadowcolor=C0C0C0 shieldshadow=1]XD[/schild]

[glow=red:6fd54f572a]Squadron[/glow:6fd54f572a]
Squadron is offline