Jump to content
  • 0

Compiling Error, Please take a look


I am having a problem with compiling and it seems like the problem lays within' the AshScatter.java file but I'm not sure on how to fix it due to my lack of experience and knowledge of coding.


This is what I'm getting:

And this is the AshScattering.java file:

package com.rs.game.player.content;

import java.util.HashMap;
import java.util.Map;

import com.rs.cache.loaders.ItemDefinitions;
import com.rs.game.Animation;
import com.rs.game.Graphics;
import com.rs.game.item.Item;
import com.rs.game.player.Player;
import com.rs.game.player.Skills;
import com.rs.game.tasks.WorldTask;
import com.rs.game.tasks.WorldTasksManager;
import com.rs.utils.Utils;

public class AshScattering {

	public enum Ash {
		IMPIOUS(20264, 62, new Graphics(56)),
		ACCURSED(20266, 150, new Graphics(47)),
		INFERNAL(20268, 200, new Graphics(40));

		private int id;
		private double experience;
		private Graphics graphics;

		private static Map < Integer, Ash > ashes = new HashMap < Integer, Ash > ();
		private static Ash[] values = values();
		public static Ash[] valuesCached() {
			return values;

		static {
			for (Ash ash: valuesCached()) {
				ashes.put(ash.getId(), ash);

		public static Ash forId(int id) {
			return ashes.get(id);

		private Ash(int id, double experience, Graphics graphics) {
			this.id = id;
			this.experience = experience;
			this.graphics = graphics;

		public int getId() {
			return id;

		public double getExperience() {
			return experience;

		public Graphics getGraphics() {
			return graphics;
	public static boolean scatter(final Player player, int slotId) {
		final Item item = player.getInventory().getItem(slotId);
		if (item == null || Ash.forId(item.getId()) == null)
			return false;
		if (player.getAshDelay() > Utils.currentTimeMillis())
			return true;
		final Ash ash = Ash.forId(item.getId());
		player.setNextAnimation(new Animation(445));
		WorldTasksManager.schedule(new WorldTask() {
			public void run() {
				player.getInventory().deleteItem(item.getId(), 1);
				player.getPackets().sendGameMessage("You scatter the ashes in the wind.");
				player.getSkills().addXp(Skills.PRAYER, ash.getExperience());

		}, 2);
		return false;

Would appreciate some clarification as to why this is happening, Thank you very much

Share this post

Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

You don't have getAshDelay() declared in your player class. 

Share this post

Link to post
Share on other sites

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