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

Yep ,my first java achievement (lol) ,wyatt ,thanks to ur video ,ive understand all my confusions ,and ive only watched it once ,since ive understand it from a glance it means ur video is good and explanation is also good, you should put the video at the begin of help section

 

Implementation core succesfully ,now datapack *this is 3x easier*

:)

 

  • 0
Posted

Yep ,my first java achievement (lol) ,wyatt ,thanks to ur video ,ive understand all my confusions ,and ive only watched it once ,since ive understand it from a glance it means ur video is good and explanation is also good, you should put the video at the begin of help section

 

Implementation core succesfully ,now datapack *this is 3x easier*

:)

;) Topic locked then.

Guest
This topic is now closed to further replies.


×
×
  • Create New...