Jump to content
  • 0

Some help


Question

Posted

Hi all. I first time compile my sounce code and i get some errors. I'm realy newbie and i don't undrestand where is a mistake. From discription i undrestand that need some ;  but i dont understand where. So where is a errors

 [javac] D:\L2\L2JEvil\java\net\l2jevil\gameserver\model\actor\instance\L2RaidBossInstance.java:141: error: ';' expected
    [javac] 	protected void startMaintenanceTask()

 

And where is a lines of that code

protected void startMaintenanceTask()

7 answers to this question

Recommended Posts

  • 0
Posted

Wont solve the problem same error

 

 

Is this enaught?

 

/**
 * Spawn all minions at a regular interval Also if boss is too far from home
 * location at the time of this check, teleport it home
 * 
 */
@Override
protected void startMaintenanceTask());   //error here
{
	if (getTemplate().getMinionData() != null)
		getMinionList().spawnMinions();

	_maintenanceTask = ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new Runnable() {
		public void run()
		{
			checkAndReturnToSpawn();
		}
	}, 60000, getMaintenanceInterval()+Rnd.get(5000));
}
}

  • 0
Guest Elfocrash
Posted

make it:

 

/**
 * Spawn all minions at a regular interval Also if boss is too far from home
 * location at the time of this check, teleport it home
 * 
 */
@Override
protected void startMaintenanceTask()
{
	if (getTemplate().getMinionData() != null)
		getMinionList().spawnMinions();

	_maintenanceTask = ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new Runnable() {
		public void run()
		{
			checkAndReturnToSpawn();
		}
	}, 60000, getMaintenanceInterval()+Rnd.get(5000));
}
}

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..