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));
}
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...