Jump to content
  • 0

Confusion errors+good implementation but 25353 errors (lf help+guide)


Question

Posted

I cant implement neither dressme, neither cancellation system ,implementing seems easy but, There are errors like these: (a guide or an explanation would help a lot ,best = guide+explanation xD) ,yep i know ,its kinda stupid and long question but not rly ,it could be helpful to many others not just me

 

Example 1:

First part of cancellation system

### Eclipse Workspace Patch 1.0
#P L2J_Server
Index: java/com/l2jserver/gameserver/skills/effects/EffectCancel.java
===================================================================
--- java/com/l2jserver/gameserver/skills/effects/EffectCancel.java	(revision 5615)
+++ java/com/l2jserver/gameserver/skills/effects/EffectCancel.java	(working copy)
@@ -14,6 +14,7 @@
  */
package com.l2jserver.gameserver.skills.effects;

+import java.util.concurrent.ScheduledFuture;
import java.util.logging.Logger;

 

+ suppose to be *new line* but the normal line doesnt exist either, this create first confusion

 

 

Example 2:

Second confusion, so i am implementing exactly how it shows there yet it shows error [Error: ScheduledFuture cannot be resolved to a type {public static ScheduledFuture<?> _CancelRegTask;}    Whats that suppose to mean? any explanation for newbies like me? xD

	protected static final Logger _log = Logger.getLogger(EffectCancel.class.getName());

public static L2Effect[] giveback;
public static L2PcInstance playah;
public static ScheduledFuture<?> _CancelRegTask;
public static long _cancelLasts = System.currentTimeMillis() + 15000;

	public EffectCancel(Env env, EffectTemplate template)
	{

 

Example 3:

The implementation is just fine but the errors keep showing ,now heres another kind of error:

The method addLastCancelledEffect(L2Effect) is undefined for the type L2Character Oh come on ,whats the problem ,even if i try and implement perfectly how it shows there ,these kind of errors will keep show anywhere ,what im doing wrong here?

 

if (negateAbnormalType.equalsIgnoreCase(eff.getAbnormalType()) && effect.getSkill().getNegateAbnormals().get(negateAbnormalType) >= eff.getAbnormalLvl())
				{
					if (calcCancelSuccess(eff, cancelLvl, (int)rate))
					{
													if(target instanceof L2PcInstance)
														target.addLastCancelledEffect(eff);
						 							eff.exit();
												}
				}
			}
		}
	}

 

Recommended Posts

  • 0
Posted

i know what - means but unfortunately is not like that

If u can wait till tomorrow I can probably make u a guide.

  • 0
Posted

Could you link me to the thread with that code?

 

As for your second error it's because you didn't add this line:

import java.util.concurrent.ScheduledFuture;

 

  • 0
Posted

If u can wait till tomorrow I can probably make u a guide.

 

i am not rushing and thanks :), dedicating time for free is something very few do, this cant be appreciated enough

 

 

Could you link me to the thread with that code?

 

As for your second error it's because you didn't add this line:

import java.util.concurrent.ScheduledFuture;

 

If they show what to implement and where,why they dont add the imports too? and where to add that kind of variables to make import works and etc? ,what am i missing ,i still dont know

  • 0
Posted

i am not rushing and thanks :)

 

 

If they show what to implement and where,why they dont add the imports too? and where to add that kind of variables to make import works and etc? ,what am i missing ,i still dont know

Do you have Teamviewer?

 

I may be able to explain some things to you from there and help you with that code.

  • 0
Posted

Do you have Teamviewer?

 

I may be able to explain some things to you from there and help you with that code.

 

not now cuz im going to sleep :3

BUT yes, that would be very great and helpfull ,tomorrow u can ?

  • 0
Posted

not now cuz im going to sleep :3

BUT yes, that would be very great and helpfull ,tomorrow u can ?

I don't know.

 

If you can wait till tomorrow Wyatt may make a guide so you won't need my help I guess.

 

Anyway, have a nice night.

  • 0
Posted

For example 3, it means what it means, you miss the method declaration. Either the pack the diff has been made had already the method, either it has be renamed on your pack, or w/e. As you can see, you implement a USE of the method. It needs to be declared SOMEWHERE. In that case in L2Character.

 

For example 2, it means, in that case, you miss the import. As it's a basic Java feature, you don't need to make anything but save the file (ctrl+S). It will fix all missing imports. If it was a missing class with a L2 name, either it has been renamed, or you simply miss it.

 

For 1, see 2. You don't need to care about imports at all, saving the file will make the imports. In few cases, it can possibly import the bad one, or you will have to choose between 2 same-looking classes.

 

About your 25351 other errors, gl. If it's in a single file, you probably failed the implementation (missing bracket, etc). If it's in the whole pack, you miss an important library.

 

In case you use basic L2J IL, which by default got 10k+ warning, stop to use it, and use a decent pack.

  • 0
Posted

I am using freya not interlude  :)

 

so ur saying that it auto implements imports? how? ,doesnt seem to auto implement for me

 

EDIT: I wasnt saying about that pack have 2324245 errors but it was a joke number ,i was telling about implementation that shows many errors

  • 0
Posted

apply patch when you need to create new java *dressme  VisualArmor.java  for example right? :)

 

and imports with variable ,ive got that part too now finnaly!

 

now 1 problem left!

Ive come across to error like syntax error but the implementation seems fine ,thats becuz it needs adaption or is bad code? *uhuh im close now*

 

ok ,now im going to try implement cancellation system ,il tell u how it works

  • 0
Posted

I did it at 8am, sleepy mode, but I hope u can get at least 2 or 3 points.

Watch it with HD btw.

 

 

Wyatt ,i am close to understanding ,now tell me something

 

I AM STUCK at half of the implementation ;p ,

 

This is full code

### Eclipse Workspace Patch 1.0
#P L2J_Server
Index: java/com/l2jserver/gameserver/skills/effects/EffectCancel.java
===================================================================
--- java/com/l2jserver/gameserver/skills/effects/EffectCancel.java	(revision 5615)
+++ java/com/l2jserver/gameserver/skills/effects/EffectCancel.java	(working copy)
@@ -14,6 +14,7 @@
  */
package com.l2jserver.gameserver.skills.effects;

+import java.util.concurrent.ScheduledFuture;
import java.util.logging.Logger;

import com.l2jserver.Config;
@@ -36,6 +37,11 @@
{
	protected static final Logger _log = Logger.getLogger(EffectCancel.class.getName());

+	public static L2Effect[] giveback;
+	public static L2PcInstance playah;
+	public static ScheduledFuture<?> _CancelRegTask;
+	public static long _cancelLasts = System.currentTimeMillis() + 15000;
+	
	public EffectCancel(Env env, EffectTemplate template)
	{
		super(env, template);
@@ -71,14 +77,15 @@
		return false;
	}

-	private static boolean cancel(L2Character caster, L2Character target, L2Effect effect)
+	private static boolean cancel(L2Character caster, final L2Character target, L2Effect effect)
	{
		if (!(target instanceof L2PcInstance)|| target.isDead())
			return false;

+		playah = (L2PcInstance) target;
		final int cancelLvl = effect.getSkill().getMagicLevel();
		int count = effect.getSkill().getMaxNegatedEffects();
-
+		
		double rate = effect.getEffectPower();
		final double vulnModifier = Formulas.calcSkillTypeVulnerability(0, target, effect.getSkillType());
		final double profModifier = Formulas.calcSkillTypeProficiency(0, caster, target, effect.getSkillType());
@@ -118,6 +125,11 @@

		final L2Effect[] effects = target.getAllEffects();

+		if(effects != null)
+		{
+			giveback = effects;
+		}
+		
		if (effect.getSkill().getNegateAbnormals() != null) // Cancel for abnormals
		{
			for (L2Effect eff : effects)
@@ -130,7 +142,11 @@
					if (negateAbnormalType.equalsIgnoreCase(eff.getAbnormalType()) && effect.getSkill().getNegateAbnormals().get(negateAbnormalType) >= eff.getAbnormalLvl())
					{
						if (calcCancelSuccess(eff, cancelLvl, (int)rate))
+						{
+							if(target instanceof L2PcInstance)
+								target.addLastCancelledEffect(eff);
							eff.exit();
+						}
					}
				}
			}
@@ -168,6 +184,8 @@
				lastCanceledSkillId = eff.getSkill().getId();

				eff.exit();
+				if(target instanceof L2PcInstance)
+					target.addLastCancelledEffect(eff);
				count--;

				if (count == 0)
@@ -198,6 +216,8 @@

					lastCanceledSkillId = eff.getSkill().getId();
					eff.exit();
+					if(target instanceof L2PcInstance)
+						target.addLastCancelledEffect(eff);
					count--;

					if (count == 0)
@@ -206,6 +226,7 @@
			}
		}

+		target.recoverLastCancelledEffects();
		return true;
	}

Index: java/com/l2jserver/gameserver/skills/effects/EffectDeflectBuff.java
===================================================================
--- java/com/l2jserver/gameserver/skills/effects/EffectDeflectBuff.java	(revision 0)
+++ java/com/l2jserver/gameserver/skills/effects/EffectDeflectBuff.java	(working copy)
@@ -0,0 +1,97 @@
+/*
+ * 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 com.l2jserver.gameserver.skills.effects;
+
+import com.l2jserver.gameserver.model.L2Effect;
+import com.l2jserver.gameserver.network.SystemMessageId;
+import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
+import com.l2jserver.gameserver.skills.Env;
+import com.l2jserver.gameserver.templates.effects.EffectTemplate;
+import com.l2jserver.gameserver.templates.skills.L2EffectType;
+import com.l2jserver.gameserver.templates.skills.L2SkillType;
+
+/**
+ * @author Lambda
+ *
+ */
+public final class EffectDeflectBuff extends L2Effect
+{
+	/**
+	 * @param env
+	 * @param template
+	 */
+	public EffectDeflectBuff(Env env, EffectTemplate template)
+	{
+		super(env, template);
+	}
+	
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see com.l2jserver.gameserver.model.L2Effect#getEffectType()
+	 */
+	@Override
+	public L2EffectType getEffectType()
+	{
+		return L2EffectType.PREVENT_BUFF;
+	}
+	
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see com.l2jserver.gameserver.model.L2Effect#onActionTime()
+	 */
+	@Override
+	public boolean onActionTime()
+	{
+		// Only cont skills shouldn't end
+		if(getSkill().getSkillType() != L2SkillType.CONT)
+			return false;
+		
+		double manaDam = calc();
+		
+		if(manaDam > getEffected().getCurrentMp())
+		{
+			SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.SKILL_REMOVED_DUE_LACK_MP);
+			getEffected().sendPacket(sm);
+			return false;
+		}
+		
+		getEffected().reduceCurrentMp(manaDam);
+		return true;
+	}
+	
+	/*
+	 * (non-Javadoc)
+	 * 
+	 * @see com.l2jserver.gameserver.model.L2Effect#onStart()
+	 */
+	@Override
+	public boolean onStart()
+	{
+		getEffected().setIsBuffProtected(true);
+		return true;
+	}
+	
+	/*
+	 * (non-Javadoc)
+	 * @see com.l2jserver.gameserver.model.L2Effect#onExit()
+	 */
+	@Override
+	public void onExit()
+	{
+		getEffected().setIsBuffProtected(false);
+	}
+}
Index: java/com/l2jserver/gameserver/model/actor/L2Character.java
===================================================================
--- java/com/l2jserver/gameserver/model/actor/L2Character.java	(revision 5615)
+++ java/com/l2jserver/gameserver/model/actor/L2Character.java	(working copy)
@@ -23,6 +23,7 @@
import java.util.Map;
import java.util.Set;
import java.util.concurrent.Future;
+import java.util.concurrent.ScheduledFuture;
import java.util.logging.Level;
import java.util.logging.Logger;

@@ -69,12 +70,14 @@
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance.SkillDat;
import com.l2jserver.gameserver.model.actor.instance.L2PetInstance;
import com.l2jserver.gameserver.model.actor.instance.L2RiftInvaderInstance;
+import com.l2jserver.gameserver.model.actor.instance.L2VillageMasterInstance;
import com.l2jserver.gameserver.model.actor.knownlist.CharKnownList;
import com.l2jserver.gameserver.model.actor.position.CharPosition;
import com.l2jserver.gameserver.model.actor.stat.CharStat;
import com.l2jserver.gameserver.model.actor.status.CharStatus;
import com.l2jserver.gameserver.model.entity.Instance;
import com.l2jserver.gameserver.model.itemcontainer.Inventory;
+import com.l2jserver.gameserver.model.olympiad.OlympiadManager;
import com.l2jserver.gameserver.model.quest.Quest;
import com.l2jserver.gameserver.network.SystemMessageId;
import com.l2jserver.gameserver.network.serverpackets.AbstractNpcInfo;
@@ -82,6 +85,7 @@
import com.l2jserver.gameserver.network.serverpackets.Attack;
import com.l2jserver.gameserver.network.serverpackets.ChangeMoveType;
import com.l2jserver.gameserver.network.serverpackets.ChangeWaitType;
+import com.l2jserver.gameserver.network.serverpackets.ExShowScreenMessage;
import com.l2jserver.gameserver.network.serverpackets.FlyToLocation;
import com.l2jserver.gameserver.network.serverpackets.FlyToLocation.FlyType;
import com.l2jserver.gameserver.network.serverpackets.L2GameServerPacket;
@@ -100,6 +104,7 @@
import com.l2jserver.gameserver.pathfinding.PathFinding;
import com.l2jserver.gameserver.skills.AbnormalEffect;
import com.l2jserver.gameserver.skills.Calculator;
+import com.l2jserver.gameserver.skills.Env;
import com.l2jserver.gameserver.skills.Formulas;
import com.l2jserver.gameserver.skills.Stats;
import com.l2jserver.gameserver.skills.effects.EffectChanceSkillTrigger;
@@ -150,6 +155,7 @@
	private L2Skill _lastSkillCast;
	private L2Skill _lastSimultaneousSkillCast;

+	private boolean _isBuffProtected = false;
	private boolean _isDead									= false;
	private boolean _isImmobilized							= false;
	private boolean _isOverloaded							= false; // the char is carrying too much
@@ -209,6 +215,11 @@
	private final byte[] _zones = new byte[22];
	protected byte _zoneValidateCounter = 4;

+	//Holds cancelled buffs
+	private List<L2Effect> _lastCancelledEffects = new FastList<L2Effect>();
+	//Task to give back cancelled buffs
+	private ScheduledFuture<?> _lastCancelledEffectsTask;
+	
	private L2Character _debugger = null;

	/**
@@ -219,6 +230,75 @@
		return _debugger != null;
	}

+	public void addLastCancelledEffect(L2Effect e)
+	{
+		if(!_lastCancelledEffects.contains(e))
+			_lastCancelledEffects.add(e);
+	}
+	
+	public void recoverLastCancelledEffects()
+	{
+		if(_lastCancelledEffects.isEmpty() || (_lastCancelledEffectsTask != null && !_lastCancelledEffectsTask.isDone()))
+			return;
+		
+		final L2Character target = this;
+		
+		_lastCancelledEffectsTask = ThreadPoolManager.getInstance().scheduleGeneral(new Runnable()
+		{
+			@Override
+			public void run()
+			{
+				Collection<L2Character> knowns  = target.getKnownList().getKnownCharactersInRadius(300);
+				for (L2Object grm : knowns)
+				{
+					if (grm instanceof L2VillageMasterInstance)
+					{
+						return;
+					}
+				}
+				
+				if(target.isDead())
+					return;
+				
+				if (OlympiadManager.getInstance().isRegistered((L2PcInstance) target))
+					return;
+				
+				Env env;
+				L2Effect effect;
+				for(L2Effect e : _lastCancelledEffects)
+				{
+					env = new Env();
+					env.target = target;
+					env.skill = e.getSkill();
+					
+					try
+					{
+						effect = e.getEffectTemplate().getEffect(env);
+						if (effect != null)
+						{
+							effect.scheduleEffect();
+							if (effect.getShowIcon() && target instanceof L2PcInstance)
+							{
+								SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.YOU_FEEL_S1_EFFECT);
+								sm.addSkillName(effect);
+								target.sendPacket(sm);
+							}
+						}
+						e.exit();
+					}
+					catch (RuntimeException ex)
+					{
+						_log.log(Level.WARNING, "Cannot return effect: " + e + "to owner: " + target, ex);
+					}
+				}
+				
+				sendPacket(new ExShowScreenMessage("Your cancelled buffs has been given back.", 2000));
+				
+				_lastCancelledEffects.clear();
+			}
+		}, 15000);
+	}
+	
	/**
	 * Sets L2Character instance, to which debug packets will be send
	 * @param d
@@ -6998,4 +7078,14 @@
	{
		return _effects.isAffected(flag);
	}
+	
+	public final void setIsBuffProtected(boolean value)
+	{
+		_isBuffProtected = value;
+	}
+	
+	public boolean isBuffProtected()
+	{
+		return _isBuffProtected;
+	}
}
Index: java/com/l2jserver/gameserver/templates/skills/L2EffectType.java
===================================================================
--- java/com/l2jserver/gameserver/templates/skills/L2EffectType.java	(revision 5615)
+++ java/com/l2jserver/gameserver/templates/skills/L2EffectType.java	(working copy)
@@ -76,5 +76,6 @@
	HIDE,
	ABORT_CAST,
	INCREASE_CHARGES,
-	BLOCK_RESURRECTION
+	BLOCK_RESURRECTION,
+	PREVENT_BUFF
}
\ No newline at end of file
Index: java/com/l2jserver/gameserver/skills/effects/EffectCancelDebuff.java
===================================================================
--- java/com/l2jserver/gameserver/skills/effects/EffectCancelDebuff.java	(revision 5615)
+++ java/com/l2jserver/gameserver/skills/effects/EffectCancelDebuff.java	(working copy)
@@ -103,6 +103,8 @@
            
             lastCanceledSkillId = effect.getSkill().getId();
             effect.exit();
+            if(target instanceof L2PcInstance)
+            	target.addLastCancelledEffect(effect);
             count--;
            
             if (count == 0)
@@ -135,12 +137,16 @@
                
                 lastCanceledSkillId = effect.getSkill().getId();
                 effect.exit();
+                if(target instanceof L2PcInstance)
+                	target.addLastCancelledEffect(effect);
                 count--;
                
                 if (count == 0)
                     break;
             }
         }
+        
+        target.recoverLastCancelledEffects();
         return true;
     }
    
Index: java/com/l2jserver/gameserver/model/L2Effect.java
===================================================================
--- java/com/l2jserver/gameserver/model/L2Effect.java	(revision 5615)
+++ java/com/l2jserver/gameserver/model/L2Effect.java	(working copy)
@@ -112,6 +112,8 @@

	public boolean preventExitUpdate;

+	private long _cancelLasts = System.currentTimeMillis() + 15000;
+	
	private final class EffectTask implements Runnable
	{
		public void run()
@@ -663,4 +665,20 @@
	{
		return false;
	}
+	
+	/**
+	 * @return the _cancelLasts
+	 */
+	public long getcancelLasts()
+	{
+		return _cancelLasts;
+	}
+	
+	/**
+	 * @param _cancelLasts the _cancelLasts to set
+	 */
+	public void setcancelLasts(long _cancelLasts)
+	{
+		this._cancelLasts = _cancelLasts;
+	}
}
\ No newline at end of file
Index: java/com/l2jserver/gameserver/network/clientpackets/EnterWorld.java
===================================================================
--- java/com/l2jserver/gameserver/network/clientpackets/EnterWorld.java	(revision 5615)
+++ java/com/l2jserver/gameserver/network/clientpackets/EnterWorld.java	(working copy)
@@ -46,6 +46,7 @@
import com.l2jserver.gameserver.model.L2Clan;
import com.l2jserver.gameserver.model.L2ItemInstance;
import com.l2jserver.gameserver.model.L2Object;
+import com.l2jserver.gameserver.model.L2Skill;
import com.l2jserver.gameserver.model.L2World;
import com.l2jserver.gameserver.model.actor.L2Character;
import com.l2jserver.gameserver.model.actor.instance.L2ClassMasterInstance;
@@ -331,6 +332,9 @@
		if (Config.PLAYER_SPAWN_PROTECTION > 0)
			activeChar.setProtection(true);

+		L2Skill skill2 = SkillTable.getInstance().getInfo(26074, 1);
+		activeChar.addSkill(skill2);
+		
		activeChar.spawnMe(activeChar.getX(), activeChar.getY(), activeChar.getZ());

		if (L2Event.active && L2Event.connectionLossData.containsKey(activeChar.getName()) && L2Event.isOnEvent(activeChar))

 

This is where im stuck:

Index: java/com/l2jserver/gameserver/model/actor/L2Character.java
===================================================================
--- java/com/l2jserver/gameserver/model/actor/L2Character.java	(revision 5615)
+++ java/com/l2jserver/gameserver/model/actor/L2Character.java	(working copy)
@@ -23,6 +23,7 @@
import java.util.Map;
import java.util.Set;
import java.util.concurrent.Future;
+import java.util.concurrent.ScheduledFuture;
import java.util.logging.Level;
import java.util.logging.Logger;

@@ -69,12 +70,14 @@
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance.SkillDat;
import com.l2jserver.gameserver.model.actor.instance.L2PetInstance;
import com.l2jserver.gameserver.model.actor.instance.L2RiftInvaderInstance;
+import com.l2jserver.gameserver.model.actor.instance.L2VillageMasterInstance;
import com.l2jserver.gameserver.model.actor.knownlist.CharKnownList;
import com.l2jserver.gameserver.model.actor.position.CharPosition;
import com.l2jserver.gameserver.model.actor.stat.CharStat;
import com.l2jserver.gameserver.model.actor.status.CharStatus;
import com.l2jserver.gameserver.model.entity.Instance;
import com.l2jserver.gameserver.model.itemcontainer.Inventory;
+import com.l2jserver.gameserver.model.olympiad.OlympiadManager;
import com.l2jserver.gameserver.model.quest.Quest;
import com.l2jserver.gameserver.network.SystemMessageId;
import com.l2jserver.gameserver.network.serverpackets.AbstractNpcInfo;
@@ -82,6 +85,7 @@
import com.l2jserver.gameserver.network.serverpackets.Attack;
import com.l2jserver.gameserver.network.serverpackets.ChangeMoveType;
import com.l2jserver.gameserver.network.serverpackets.ChangeWaitType;
+import com.l2jserver.gameserver.network.serverpackets.ExShowScreenMessage;
import com.l2jserver.gameserver.network.serverpackets.FlyToLocation;
import com.l2jserver.gameserver.network.serverpackets.FlyToLocation.FlyType;
import com.l2jserver.gameserver.network.serverpackets.L2GameServerPacket;
@@ -100,6 +104,7 @@
import com.l2jserver.gameserver.pathfinding.PathFinding;
import com.l2jserver.gameserver.skills.AbnormalEffect;
import com.l2jserver.gameserver.skills.Calculator;
+import com.l2jserver.gameserver.skills.Env;
import com.l2jserver.gameserver.skills.Formulas;
import com.l2jserver.gameserver.skills.Stats;
import com.l2jserver.gameserver.skills.effects.EffectChanceSkillTrigger;
@@ -150,6 +155,7 @@
	private L2Skill _lastSkillCast;
	private L2Skill _lastSimultaneousSkillCast;

+	private boolean _isBuffProtected = false;
	private boolean _isDead									= false;
	private boolean _isImmobilized							= false;
	private boolean _isOverloaded							= false; // the char is carrying too much
@@ -209,6 +215,11 @@
	private final byte[] _zones = new byte[22];
	protected byte _zoneValidateCounter = 4;

+	//Holds cancelled buffs
+	private List<L2Effect> _lastCancelledEffects = new FastList<L2Effect>();
+	//Task to give back cancelled buffs
+	private ScheduledFuture<?> _lastCancelledEffectsTask;
+	
	private L2Character _debugger = null;

	/**
@@ -219,6 +230,75 @@
		return _debugger != null;
	}

+	public void addLastCancelledEffect(L2Effect e)
+	{
+		if(!_lastCancelledEffects.contains(e))
+			_lastCancelledEffects.add(e);
+	}
+	
+	public void recoverLastCancelledEffects()
+	{
+		if(_lastCancelledEffects.isEmpty() || (_lastCancelledEffectsTask != null && !_lastCancelledEffectsTask.isDone()))
+			return;
+		
+		final L2Character target = this;
+		
+		_lastCancelledEffectsTask = ThreadPoolManager.getInstance().scheduleGeneral(new Runnable()
+		{
+			@Override
+			public void run()
+			{
+				Collection<L2Character> knowns  = target.getKnownList().getKnownCharactersInRadius(300);
+				for (L2Object grm : knowns)
+				{
+					if (grm instanceof L2VillageMasterInstance)
+					{
+						return;
+					}
+				}
+				
+				if(target.isDead())
+					return;
+				
+				if (OlympiadManager.getInstance().isRegistered((L2PcInstance) target))
+					return;
+				
+				Env env;
+				L2Effect effect;
+				for(L2Effect e : _lastCancelledEffects)
+				{
+					env = new Env();
+					env.target = target;
+					env.skill = e.getSkill();
+					
+					try
+					{
+						effect = e.getEffectTemplate().getEffect(env);
+						if (effect != null)
+						{
+							effect.scheduleEffect();
+							if (effect.getShowIcon() && target instanceof L2PcInstance)
+							{
+								SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.YOU_FEEL_S1_EFFECT);
+								sm.addSkillName(effect);
+								target.sendPacket(sm);
+							}
+						}
+						e.exit();
+					}
+					catch (RuntimeException ex)
+					{
+						_log.log(Level.WARNING, "Cannot return effect: " + e + "to owner: " + target, ex);
+					}
+				}
+				
+				sendPacket(new ExShowScreenMessage("Your cancelled buffs has been given back.", 2000));
+				
+				_lastCancelledEffects.clear();
+			}
+		}, 15000);
+	}
+	
	/**
	 * Sets L2Character instance, to which debug packets will be send
	 * @param d
@@ -6998,4 +7078,14 @@
	{
		return _effects.isAffected(flag);
	}
+	
+	public final void setIsBuffProtected(boolean value)
+	{
+		_isBuffProtected = value;
+	}
+	
+	public boolean isBuffProtected()
+	{
+		return _isBuffProtected;
+	}
}

 

This part!

	private L2Skill _lastSkillCast;
	private L2Skill _lastSimultaneousSkillCast;

+	private boolean _isBuffProtected = false;
	private boolean _isDead									= false;
	private boolean _isImmobilized							= false;
	private boolean _isOverloaded	

 

The problem is that when i search for private L2Skill _lastSkillCast; ,it doesnt find anything ,SO THAT MEAN ,i have to apply patch (and delete the current l2 character? OR!)?

 

 

 

  • 0
Posted

As I say in the video, if u don't find the line, u can take a look on the lines of the patch

@@ -150,6 +155,7 @@

and take a look downstairs of eclipse, when u change ur cursor position the line and row number changes, find a that line number and add it near.

  • 0
Posted

As I say in the video, if u don't find the line, u can take a look on the lines of the patch and take a look downstairs of eclipse, when u change ur cursor position the line and row number changes, find a that line number and add it near.

 

well this was fail reply from me ,the reason i didnt found it is because my cursor was above teh line i think xD

 

k, im going to continue now

 

 

Guest
This topic is now closed to further replies.


  • Posts

    • 📌 FORUM RULES (Revised – Legal Compliant) Η χρήση του forum προϋποθέτει την πλήρη αποδοχή των παρακάτω κανόνων. Οποιαδήποτε παραβίαση ενδέχεται να οδηγήσει σε περιορισμούς ή μόνιμο αποκλεισμό. 1. Spam & Κατάχρηση Δημοσιεύσεων Το spam απαγορεύεται. Μονολεκτικές, άσχετες ή πολλαπλές διαδοχικές δημοσιεύσεις δεν επιτρέπονται. Bumping επιτρέπεται μόνο στο Marketplace, μία φορά κάθε 24 ώρες. Απάντηση σε θέματα παλαιότερα των 6 μηνών δεν επιτρέπεται. Σχόλια τύπου «wrong section», «request lock» κ.λπ. απαγορεύονται — χρησιμοποιήστε το Report Section. 2. Συμπεριφορά & Τάξη Απαγορεύονται: βρισιές, trolling, drama, απειλές, ρατσισμός, flame posts. Οι κανόνες συμπεριφοράς ισχύουν και σε PMs, profile comments και λοιπές περιοχές. Πολιτικά θέματα επιτρέπονται μόνο εντός λογικών και πολιτισμένων ορίων. 3. Απαγορευμένο & Ακατάλληλο Περιεχόμενο Απαγορεύεται αυστηρά η δημοσίευση ή αναζήτηση περιεχομένου που είναι: Παράνομο βάσει ισχύουσας νομοθεσίας Πειρατικό (warez, cracks, serials, pirated software) Σεξουαλικό, πορνογραφικό ή βίαιο Προσβλητικό, ρατσιστικό ή εξτρεμιστικό Θρησκευτικά προκλητικό με σκοπό την ένταση ➡️ Όλα τα παραπάνω διαγράφονται άμεσα, χωρίς προειδοποίηση. 4. Διαφημίσεις & Προώθηση Απαγορεύεται κάθε μορφή διαφήμισης χωρίς έγκριση Administrator. Απαγορεύεται η προώθηση παράνομων ή μη αδειοδοτημένων υπηρεσιών. Affiliate links, referral systems και external promotions απαιτούν έγκριση. 5. Γλώσσα & Παρουσίαση Μην αναμειγνύετε γλώσσες (αγγλικά σε ελληνικά topics και αντίστροφα). Χρησιμοποιείτε tags [GR] ή [EN]. Τα Greeklish επιτρέπονται προσωρινά, ωστόσο προτιμάται η χρήση ελληνικών χαρακτήρων. 6. Credits & Πνευματικά Δικαιώματα Υποχρεωτική αναφορά πηγών και credits. Απαγορεύεται η αναδημοσίευση περιεχομένου χωρίς άδεια. Κάθε χρήστης είναι υπεύθυνος για τα δικαιώματα του περιεχομένου που δημοσιεύει. 7. Κυβερνοεγκλήματα & Επιβλαβείς Πρακτικές Απαγορεύεται αυστηρά: Hacking, DDoS, flooding, botnets, booters Οδηγίες, εργαλεία ή καθοδήγηση για παράνομες ψηφιακές επιθέσεις Αναζήτηση ή πώληση τέτοιων υπηρεσιών 8. Υπογραφές (Signatures) Μέγιστο μέγεθος: 800x300 pixels. Υπογραφές που παραβιάζουν τους κανόνες αφαιρούνται. 9. Λογαριασμοί & Ασφάλεια Ένας λογαριασμός ανά χρήστη. Κλεμμένοι, κοινόχρηστοι ή πολλαπλοί λογαριασμοί απαγορεύονται. Το forum διατηρεί το δικαίωμα άμεσης διαγραφής λογαριασμών. 10. Σεβασμός προς το Staff Υποτίμηση, απειλές ή προσβολές προς staff δεν γίνονται ανεκτές. Για διαφωνίες ή παραβάσεις χρησιμοποιήστε το Report Section. LEGAL POLICY (Updated – Strict Compliance) 1. Νομιμότητα Περιεχομένου Απαγορεύεται κάθε περιεχόμενο που: Παραβιάζει νόμους ή κανονισμούς Παραβιάζει copyright ή intellectual property Προωθεί παράνομες οικονομικές, τραπεζικές ή επενδυτικές υπηρεσίες Σχετίζεται με απάτη, phishing, money laundering 2. DMCA – Copyright Protection Το forum συμμορφώνεται πλήρως με τον DMCA. Έγκυρες αναφορές οδηγούν σε άμεση αφαίρεση περιεχομένου. Επαναλαμβανόμενες παραβιάσεις = μόνιμος αποκλεισμός. 3. AML / Financial Compliance Απαγορεύεται περιεχόμενο σχετικό με ξέπλυμα χρήματος. Απαγορεύεται η προώθηση μη αδειοδοτημένων χρηματοοικονομικών υπηρεσιών. Δεν παρέχεται καμία οικονομική ή επενδυτική συμβουλή. 4. User-Generated Content & Ευθύνη Όλο το περιεχόμενο δημιουργείται από τους χρήστες. Το forum δεν φέρει νομική ευθύνη, αλλά: Παρακολουθεί Διαγράφει Συμμορφώνεται με τον νόμο 5. AI Moderation Χρησιμοποιούνται AI-based εργαλεία για εντοπισμό παραβάσεων. Η τελική απόφαση λαμβάνεται πάντα από άνθρωπο. 6. Τελικές Διατάξεις Οι κανόνες μπορούν να τροποποιηθούν χωρίς προειδοποίηση. Η χρήση του forum συνεπάγεται αποδοχή όλων των πολιτικών. Η άγνοια των κανόνων δεν αποτελεί δικαιολογία.   ΠΟΛΙΤΙΚΗ ΑΠΟΡΡΗΤΟΥ (Privacy Policy) – Ελληνικά Η παρούσα Πολιτική Απορρήτου περιγράφει τον τρόπο με τον οποίο το forum συλλέγει, χρησιμοποιεί και προστατεύει τα προσωπικά δεδομένα των χρηστών του, σύμφωνα με τον Γενικό Κανονισμό Προστασίας Δεδομένων (GDPR – ΕΕ 2016/679). 1. Συλλογή Δεδομένων Το forum ενδέχεται να συλλέγει τα ακόλουθα δεδομένα: Όνομα χρήστη (username) Διεύθυνση email IP address Ημερομηνία και ώρα σύνδεσης Περιεχόμενο δημοσιεύσεων (posts, topics, private messages) Δεν συλλέγονται ευαίσθητα προσωπικά δεδομένα. 2. Χρήση Δεδομένων Τα δεδομένα χρησιμοποιούνται αποκλειστικά για: Τη λειτουργία και ασφάλεια του forum Τη διαχείριση λογαριασμών Τη βελτίωση της εμπειρίας χρήσης Την πρόληψη κατάχρησης, απάτης ή παράνομων ενεργειών Τη συμμόρφωση με νομικές υποχρεώσεις 3. User-Generated Content Όλο το περιεχόμενο που δημοσιεύεται στο forum δημιουργείται από τους χρήστες. Οι χρήστες φέρουν την αποκλειστική ευθύνη για τα δεδομένα που επιλέγουν να δημοσιεύσουν. 4. Cookies Το forum χρησιμοποιεί cookies μόνο για: Διατήρηση σύνδεσης χρήστη Βασική λειτουργικότητα Ασφάλεια Δεν χρησιμοποιούνται cookies για διαφημιστική παρακολούθηση τρίτων. 5. AI & Αυτοματοποιημένη Επεξεργασία Το forum ενδέχεται να χρησιμοποιεί αυτοματοποιημένα ή AI-based εργαλεία για: Ανίχνευση spam Εντοπισμό παραβιάσεων κανόνων ή παράνομου περιεχομένου ➡️ Οι αποφάσεις επιβολής λαμβάνονται πάντα από άνθρωπο. 6. Κοινοποίηση Δεδομένων Τα προσωπικά δεδομένα: Δεν πωλούνται Δεν διαμοιράζονται με τρίτους Εξαίρεση υπάρχει μόνο εφόσον απαιτείται από τον νόμο ή αρμόδιες αρχές. 7. Δικαιώματα Χρηστών (GDPR) Οι χρήστες έχουν δικαίωμα: Πρόσβασης στα δεδομένα τους Διόρθωσης ή διαγραφής Περιορισμού επεξεργασίας Υποβολής αιτήματος διαγραφής λογαριασμού 8. Ασφάλεια Δεδομένων Λαμβάνονται εύλογα τεχνικά και οργανωτικά μέτρα για την προστασία των δεδομένων, ωστόσο καμία πλατφόρμα δεν είναι απολύτως ασφαλής. 9. Τροποποιήσεις Η παρούσα πολιτική μπορεί να τροποποιηθεί χωρίς προηγούμενη ειδοποίηση. Η συνέχιση χρήσης του forum συνιστά αποδοχή των αλλαγών. ✅ Σημείωση Οποιοδήποτε παράνομο περιεχόμενο δεν επιτρέπεται πουθενά στο forum, ανεξαρτήτως ρόλου, πρόσβασης ή status (VIP / Donator / Staff). 📌 FORUM RULES (English – Legal Compliant) By accessing or using this forum, you agree to comply with the following rules. Violations may result in warnings, restrictions, or permanent account termination. 1. Spam & Abuse Spam is strictly prohibited. One-word, low-effort, off-topic, or consecutive posts are not allowed. Bumping is allowed only in the Marketplace, once every 24 hours. Replying to topics older than 6 months is not permitted. Posts such as “wrong section”, “request lock”, etc. are not allowed — use the Report Section instead. 2. Conduct & Behavior Insults, harassment, trolling, threats, racism, flame posts, and toxic behavior are prohibited. These rules apply to all areas, including private messages and profile comments. Political discussions are allowed only within reasonable and respectful limits. 3. Prohibited & Illegal Content The following content is strictly prohibited anywhere on the forum: Any content that violates applicable laws or regulations Pirated software, warez, cracks, serials, or copyright-infringing material Malware, hacking tools, exploits, or harmful code Sexual, pornographic, violent, or extremist material Hate speech, discrimination, or incitement Content intended to provoke religious or social conflict ➡️ Such content will be removed immediately, without notice. 4. Advertising & Promotion Advertising of any kind requires prior administrator approval. Promotion of illegal or unlicensed services is strictly forbidden. Affiliate links, referral systems, and external promotions require approval. 5. Language & Formatting Do not mix languages (English in non-English topics and vice versa). Use [GR] or [EN] tags when creating a topic. Greeklish is temporarily allowed, but native characters are preferred. 6. Credits & Intellectual Property Proper credit must be given when using third-party content. Reposting content without permission is prohibited. Users are solely responsible for the intellectual property rights of their posts. 7. Cybercrime & Harmful Activities Strictly prohibited: Hacking, DDoS, flooding, botnets, booters Requests, guides, tools, or services related to cyber attacks Buying, selling, or searching for such services 8. Signatures Maximum allowed size: 800x300 pixels. Non-compliant signatures will be removed. 9. Accounts & Security One account per user is allowed. Stolen, shared, or multiple accounts are prohibited. The forum reserves the right to suspend or delete accounts immediately. 10. Respect Toward Staff Disrespect, threats, or harassment toward moderators or administrators will not be tolerated. Use the Report Section to address issues. ⚖️ LEGAL POLICY (English – Strict Compliance) This policy defines the legal framework governing forum operation. 1. User-Generated Content & Liability All content is created by users. The forum and its staff are not legally responsible for user-generated content. Reasonable efforts are made to monitor, review, and remove unlawful material. 2. Legal Compliance Content that violates: Local, national, or international laws Intellectual property rights Terms of third-party services is strictly prohibited. 3. DMCA – Copyright Policy The forum complies fully with the Digital Millennium Copyright Act (DMCA). Valid takedown requests result in prompt content removal. Repeat copyright offenders will be permanently banned. 4. AML – Anti-Money Laundering Prohibited content includes: Money laundering schemes or instructions Fraud, scams, or financial manipulation Promotion of unlicensed or illegal financial services The forum cooperates with authorities when legally required. 5. FCS – Financial & Compliance Services The forum does not provide financial, investment, or legal advice. Promotion of unregulated banking, investment, or financial services is forbidden. 6. Privacy & GDPR Publishing personal data of others is prohibited. Sharing private communications without consent is forbidden. The forum operates in compliance with GDPR regulations. 7. AI-Assisted Moderation Automated and AI-based tools may be used to detect violations. All enforcement actions involve human review. 8. Final Provisions Policies may be updated without prior notice. Continued use of the forum constitutes acceptance of all rules. Ignorance of the rules is not an excuse. PRIVACY POLICY – English Version This Privacy Policy explains how the forum collects, uses, and protects user data, in accordance with the General Data Protection Regulation (GDPR – EU 2016/679). 1. Data Collection The forum may collect the following data: Username Email address IP address Login timestamps User-generated content (posts, topics, private messages) No sensitive personal data is intentionally collected. 2. Use of Data Data is used solely for: Forum operation and security Account management Improving user experience Preventing abuse, fraud, or illegal activity Legal and regulatory compliance 3. User-Generated Content All content posted on the forum is created by users. Users are solely responsible for any personal data they choose to publish. 4. Cookies Cookies are used only for: Session management Essential functionality Security purposes No third-party advertising or tracking cookies are used. 5. AI & Automated Processing The forum may use automated or AI-assisted tools to: Detect spam Identify rule violations or illegal content ➡️ All enforcement decisions are subject to human review. 6. Data Sharing Personal data is: Not sold Not shared with third parties Except where required by law or competent authorities. 7. User Rights (GDPR) Users have the right to: Access their personal data Request correction or deletion Request restriction of processing Request account deletion 8. Data Security Reasonable technical and organizational measures are implemented to protect data. However, no online platform can guarantee absolute security. 9. Policy Updates This policy may be updated at any time without prior notice. Continued use of the forum constitutes acceptance of the updated policy. ✅ Final Note If you have concerns regarding privacy or data protection, please contact the forum administration. ✅ Important Notice Illegal content is not allowed anywhere on the forum, regardless of user role, status, or access level.
    • Hello everyone, This topic has been created to report any content that is considered illegal under applicable law or in violation of the forum rules. This includes, but is not limited to: Illegal software (pirated, cracked, or unauthorized software) Copyright-infringing material Malware, viruses, or any harmful code Scams, fraud, phishing attempts, or impersonation Illegal banking or financial services Money laundering activities or related instructions Any other illegal, unethical, or rule-violating activity — you name it If you encounter any such content, please report it here so it can be reviewed and removed promptly. Legal Disclaimer All content published on this forum is created and posted by its users. The forum administration does not take responsibility for user-generated content. However, we make every reasonable effort to monitor, review, remove, and maintain the forum by deleting illegal or rule-violating content as soon as it is reported or identified. By using this forum, you acknowledge and agree to these terms.     Moderator Notice We would like to inform all users that we are currently developing a custom AI-powered API tool that will assist our moderation team in scanning the forum database for illegal or rule-violating activity. This system will be used strictly as a support tool to help identify potentially problematic content, which will then be reviewed by human moderators before any action is taken. The goal is to improve forum safety, compliance, and response time while maintaining fairness and transparency. 🚧 Coming soon — more details will be shared once the system is ready. Thank you for your cooperation and for helping us keep the forum clean and lawful.
    • Reporting Illegal or Rule-Violating Content (post here)
    • If anyone is reading this, until we find the 488 protocol system that works with AuthD + Authgated from High Five (HF), just use L2Filter included in the leak as the login server to be able to play. hAuthd does not works with this chronicle, @Hint. do you happen to know about this?   Be aware of the system you use! If UseEMailAccount is set as true in l2.ini, your user_info table linked to your account must have email column not NULL with a valid e-mail, and you will use that e-mail to login instead of the account name. (Post merged)   OKAY! Nevermind about the above, I just figured it out, AuthD and Authgated from HF requires GameGuard to be enabled and UseEMailAccount set to false. Enable GameGuard at server side as per Fyyre instructions,  Add the missing GameGuard files in your client system: https://mega.nz/file/xZMWQBjK#triEj7My9B9roiLqAKk32HOLcLmPynoOm-QhBI_Ligw   (Post merged)   This client is missing SysTextures L2Font.utx and causes tutorial images to be black, download it here if you want to fix it: https://mega.nz/file/0B91WBiI#uJQqHDx4sSxocbYpxL3Sz4VKFulf95NS-sPDKvROB18
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock