hello i got a litle problem and i cant get it fixet can somebody help me please?
This are my errors :
Code:
.\palidino76\rs2\npcs\NPC.java:251: cannot find symbol
symbol : class Player
location: class palidino76.rs2.npcs.NPC
public void npcDied(Player p, int npcID, int abSX, int abSY) {
^
.\palidino76\rs2\npcs\NPC.java:254: cannot find symbol
symbol : class PlayerItems
location: class palidino76.rs2.npcs.NPC
PlayerItems pi = new PlayerItems();
^
.\palidino76\rs2\npcs\NPC.java:254: cannot find symbol
symbol : class PlayerItems
location: class palidino76.rs2.npcs.NPC
PlayerItems pi = new PlayerItems();
^
.\palidino76\rs2\npcs\NPC.java:272: cannot find symbol
symbol : variable Misc
location: class palidino76.rs2.npcs.NPC
if (Misc.random(3) == 1) {
^
4 errors
.\palidino76\rs2\npcs\NPC.java:251: cannot find symbol
symbol : class Player
location: class palidino76.rs2.npcs.NPC
public void npcDied(Player p, int npcID, int abSX, int abSY) {
^
.\palidino76\rs2\npcs\NPC.java:254: cannot find symbol
symbol : class PlayerItems
location: class palidino76.rs2.npcs.NPC
PlayerItems pi = new PlayerItems();
^
.\palidino76\rs2\npcs\NPC.java:254: cannot find symbol
symbol : class PlayerItems
location: class palidino76.rs2.npcs.NPC
PlayerItems pi = new PlayerItems();
^
.\palidino76\rs2\npcs\NPC.java:272: cannot find symbol
symbol : variable Misc
location: class palidino76.rs2.npcs.NPC
if (Misc.random(3) == 1) {
^
4 errors
.\palidino76\rs2\npcs\NPC.java:251: cannot find symbol
symbol : class Player
location: class palidino76.rs2.npcs.NPC
public void npcDied(Player p, int npcID, int abSX, int abSY) {
^
.\palidino76\rs2\npcs\NPC.java:254: cannot find symbol
symbol : class PlayerItems
location: class palidino76.rs2.npcs.NPC
PlayerItems pi = new PlayerItems();
^
.\palidino76\rs2\npcs\NPC.java:254: cannot find symbol
symbol : class PlayerItems
location: class palidino76.rs2.npcs.NPC
PlayerItems pi = new PlayerItems();
^
.\palidino76\rs2\npcs\NPC.java:272: cannot find symbol
symbol : variable Misc
location: class palidino76.rs2.npcs.NPC
if (Misc.random(3) == 1) {
^
4 errors
.\palidino76\rs2\npcs\NPC.java:251: cannot find symbol
symbol : class Player
location: class palidino76.rs2.npcs.NPC
public void npcDied(Player p, int npcID, int abSX, int abSY) {
^
.\palidino76\rs2\npcs\NPC.java:254: cannot find symbol
symbol : class PlayerItems
location: class palidino76.rs2.npcs.NPC
PlayerItems pi = new PlayerItems();
^
.\palidino76\rs2\npcs\NPC.java:254: cannot find symbol
symbol : class PlayerItems
location: class palidino76.rs2.npcs.NPC
PlayerItems pi = new PlayerItems();
^
.\palidino76\rs2\npcs\NPC.java:272: cannot find symbol
symbol : variable Misc
location: class palidino76.rs2.npcs.NPC
if (Misc.random(3) == 1) {
^
4 errors
.\palidino76\rs2\npcs\NPC.java:251: cannot find symbol
symbol : class Player
location: class palidino76.rs2.npcs.NPC
public void npcDied(Player p, int npcID, int abSX, int abSY) {
^
.\palidino76\rs2\npcs\NPC.java:254: cannot find symbol
symbol : class PlayerItems
location: class palidino76.rs2.npcs.NPC
PlayerItems pi = new PlayerItems();
^
.\palidino76\rs2\npcs\NPC.java:254: cannot find symbol
symbol : class PlayerItems
location: class palidino76.rs2.npcs.NPC
PlayerItems pi = new PlayerItems();
^
.\palidino76\rs2\npcs\NPC.java:272: cannot find symbol
symbol : variable Misc
location: class palidino76.rs2.npcs.NPC
if (Misc.random(3) == 1) {
^
4 errors
.\palidino76\rs2\npcs\NPC.java:251: cannot find symbol
symbol : class Player
location: class palidino76.rs2.npcs.NPC
public void npcDied(Player p, int npcID, int abSX, int abSY) {
^
.\palidino76\rs2\npcs\NPC.java:254: cannot find symbol
symbol : class PlayerItems
location: class palidino76.rs2.npcs.NPC
PlayerItems pi = new PlayerItems();
^
.\palidino76\rs2\npcs\NPC.java:254: cannot find symbol
symbol : class PlayerItems
location: class palidino76.rs2.npcs.NPC
PlayerItems pi = new PlayerItems();
^
.\palidino76\rs2\npcs\NPC.java:272: cannot find symbol
symbol : variable Misc
location: class palidino76.rs2.npcs.NPC
if (Misc.random(3) == 1) {
^
4 errors
.\palidino76\rs2\npcs\NPC.java:251: cannot find symbol
symbol : class Player
location: class palidino76.rs2.npcs.NPC
public void npcDied(Player p, int npcID, int abSX, int abSY) {
^
.\palidino76\rs2\npcs\NPC.java:254: cannot find symbol
symbol : class PlayerItems
location: class palidino76.rs2.npcs.NPC
PlayerItems pi = new PlayerItems();
^
.\palidino76\rs2\npcs\NPC.java:254: cannot find symbol
symbol : class PlayerItems
location: class palidino76.rs2.npcs.NPC
PlayerItems pi = new PlayerItems();
^
.\palidino76\rs2\npcs\NPC.java:272: cannot find symbol
symbol : variable Misc
location: class palidino76.rs2.npcs.NPC
if (Misc.random(3) == 1) {
^
4 errors
.\palidino76\rs2\npcs\NPC.java:251: cannot find symbol
symbol : class Player
location: class palidino76.rs2.npcs.NPC
public void npcDied(Player p, int npcID, int abSX, int abSY) {
^
.\palidino76\rs2\npcs\NPC.java:254: cannot find symbol
symbol : class PlayerItems
location: class palidino76.rs2.npcs.NPC
PlayerItems pi = new PlayerItems();
^
.\palidino76\rs2\npcs\NPC.java:254: cannot find symbol
symbol : class PlayerItems
location: class palidino76.rs2.npcs.NPC
PlayerItems pi = new PlayerItems();
^
.\palidino76\rs2\npcs\NPC.java:272: cannot find symbol
symbol : variable Misc
location: class palidino76.rs2.npcs.NPC
if (Misc.random(3) == 1) {
^
4 errors
.\palidino76\rs2\npcs\NPC.java:251: cannot find symbol
symbol : class Player
location: class palidino76.rs2.npcs.NPC
public void npcDied(Player p, int npcID, int abSX, int abSY) {
^
.\palidino76\rs2\npcs\NPC.java:254: cannot find symbol
symbol : class PlayerItems
location: class palidino76.rs2.npcs.NPC
PlayerItems pi = new PlayerItems();
^
.\palidino76\rs2\npcs\NPC.java:254: cannot find symbol
symbol : class PlayerItems
location: class palidino76.rs2.npcs.NPC
PlayerItems pi = new PlayerItems();
^
.\palidino76\rs2\npcs\NPC.java:272: cannot find symbol
symbol : variable Misc
location: class palidino76.rs2.npcs.NPC
if (Misc.random(3) == 1) {
^
4 errors
Druk op een toets om door te gaan. . .
and this are the file's :
Npc.java :
Code:
package palidino76.rs2.npcs;
import java.io.*;
import java.util.*;
import palidino76.rs2.Engine;
public class NPC {
/**
* The position this NPC is stored in the npc array in the Engine class.
*/
public int npcId = -1;
/**
* The NPC's id, such as 50 for king black dragon.
*/
public int npcType = 0;
/**
* The name of this NPC.
*/
public String name = "";
/**
* If it should hit 0 HP, how long it should take to respawn.
*/
public int respawnDelay = 60;
/**
* Its combat level, used for calculating its accuracy and defence.
*/
public int combatLevel = 0;
/**
* Max hitpoints it can have.
*/
public int maxHP = 0;
/**
* The basic max hit it can have, with an attack method you can get more specific.
*/
public int maxHit = 0;
/**
* Attack type, 0 for melee, 1 for range, 2 for magic.
*/
public int atkType = 0;
/**
* The weakness, same setup as atkType.
*/
public int weakness = 0;
/**
* The current HP this NPC has.
*/
public int currentHP = 0;
/**
* The direction this NPC is moving in.
*/
public int direction = -1;
/**
* The height level its at.
*/
public int heightLevel = 0;
/**
* Request for updating facing.
*/
public boolean faceToUpdateReq = false;
public int faceToRequest = -1;
/**
* If the NPC is dead or not.
*/
public boolean isDead = false;
/**
* If the death emote has been requested, move on to the next part of the death process.
*/
public boolean deadEmoteDone = false;
/**
* Hide the NPC until it is ready to respawn.
*/
public boolean hiddenNPC = false;
/**
* Absolute positioning.
*/
public int absX = 0, absY = 0;
/**
* If false, the NPC will not respawn if it dies.
*/
public boolean needsRespawn = false;
/**
* If set to true, this NPC will randomly walk around.
*/
public boolean randomWalk = true;
/**
* If an update is needed.
*/
public boolean updateReq = false;
/**
* If the NPC should speak.
*/
public boolean speakTextUpdateReq = false;
public String speakText = "";
/**
* Hit requests.
*/
public boolean hit1UpdateReq = false;
public boolean hit2UpdateReq = false;
public int hitDiff1 = 0;
public int posionHit1 = 0;
public int hitDiff2 = 0;
public int posionHit2 = 0;
/**
* Animation request.
*/
public boolean animUpdateReq = false;
public int animRequest = 65535;
public int animDelay = 0;
/**
* Graphic request.
*/
public boolean gfxUpdateReq = false;
public int gfxRequest = 65535;
public int gfxDelay = 0;
/**
* Facing request.
*/
public boolean faceCoordsUpdateReq = false;
public int faceCoordsX = -1;
public int faceCoordsY = -1;
/**
* The area this NPC can randomly walk around.
*/
public int moveRangeX1 = 0;
public int moveRangeY1 = 0;
public int moveRangeX2 = 0;
public int moveRangeY2 = 0;
/**
* What should be added onto the absolute positioning if this NPC moves.
*/
public int moveX = 0;
public int moveY = 0;
/**
* The original position the NPC spawned at.
*/
public int makeX = 0;
public int makeY = 0;
/**
* Delay before the NPC can attack again.
*/
public int combatDelay = 0;
/**
* Constructs a new NPC class.
* @param type The type of NPC.
* @param index The position the NPC is at.
*/
public NPC(int type, int index) {
npcType = type;
npcId = index;
}
/**
* This method is called every 600 milliseconds.
*/
public void process() {
if (respawnDelay > 0 && isDead) {
respawnDelay--;
}
if (combatDelay > 0) {
combatDelay--;
}
}
/**
* Request an animation for this NPC.
* @param animId The amination to perform.
* @param animD The delay before doing the animation.
*/
public void requestAnim(int animId, int animD) {
animRequest = animId;
animDelay = animD;
animUpdateReq = true;
updateReq = true;
}
/**
* Request text for this NPC.
* @param message The message to make the NPC say.
*/
public void requestText(String message) {
speakText = message;
animUpdateReq = true;
speakTextUpdateReq = true;
}
/**
* Request an graphic for this NPC.
* @param gfxId The graphic to perform.
* @param gfxD The delay or height or the gfx depending on the value.
*/
public void requestGFX(int gfxId, int gfxD) {
if (gfxD >= 100) {
gfxD += 6553500;
}
gfxRequest = gfxId;
gfxDelay = gfxD;
gfxUpdateReq = true;
updateReq = true;
}
/**
* Request this NPC faces two coordinates.
* @param x The x coordinate to face.
* @param y The y coordinate to face.
*/
public void requestFaceCoords(int x, int y) {
faceCoordsX = 2 * x + 1;
faceCoordsY = 2 * y + 1;
faceCoordsUpdateReq = true;
updateReq = true;
}
/**
* Request this NPC faces another NPC or player.
* @param faceId The target to face.
*/
public void requestFaceTo(int faceId) {
faceToRequest = faceId;
faceToUpdateReq = true;
updateReq = true;
}
/**
* Add damage to this NPC.
* @param damage To amount of damage.
* @param posion 0 for normal damage, 1 for posion.
*/
public void appendHit(int damage, int posion) {
if (damage > currentHP) {
damage = currentHP;
}
currentHP -= damage;
if (currentHP <= 0) {
currentHP = 0;
isDead = true;
}
if (!hit1UpdateReq) {
hitDiff1 = damage;
posionHit1 = posion;
hit1UpdateReq = true;
} else {
hitDiff2 = damage;
posionHit2 = posion;
hit2UpdateReq = true;
}
updateReq = true;
}
public boolean npccanloot=false;
public void npcDied(Player p, int npcID, int abSX, int abSY) {
Random rand = new Random();
try {
PlayerItems pi = new PlayerItems();
BufferedReader in = new BufferedReader(new FileReader("./data/npcs/npcdrops.cfg"));
String input;
int on = 0;
String[] splitEQL;
String[] splitCOM;
String[] splitDSH;
String[] splitCLN;
String[] splitSCL;
while ((input = in.readLine()) != null) {
splitEQL = null; splitEQL = null; splitDSH = null; splitCLN = null; splitSCL = null;
if (!input.startsWith("/") && input.contains("=") && input.contains(",") && input.contains("-") && input.contains(":")) {
try {
splitEQL = input.split("=");
if (Integer.parseInt(splitEQL[0]) == npcID) {
splitSCL = splitEQL[1].split(";");
int Wealth=0;
if (p.equipment[2] == 2572) {
if (Misc.random(3) == 1) {
Wealth=10;
}
}
for (int i = Wealth; i < splitSCL.length; i++) {
splitCOM = splitSCL[i].split(",");
splitDSH = splitCOM[1].split("-");
splitCLN = splitCOM[2].split(":");
int item = Integer.parseInt(splitCOM[0]);
int min = Integer.parseInt(splitDSH[0]);
int max = Integer.parseInt(splitDSH[1]);
int chance = Integer.parseInt(splitCLN[0]);
int outOf = Integer.parseInt(splitCLN[1]);
int amount = rand.nextInt((max - min)+1) + min;
int ifDrop = rand.nextInt(outOf)+1;
if (ifDrop <= chance && npccanloot == true) {
Engine.items.createGroundItem(item, amount, abSX, abSY, heightLevel, p.username);
npccanloot = false;
}
}
}
} catch (Exception e) {
System.out.println("Exception dropping item:\n"+e);
}
++on;
}
}
in.close();
} catch (IOException e) {
System.out.println(e);
}
}
}
engine.java :
Code:
/*
* Class Engine
*
* Version 1.0
*
* Thursday, August 14, 2008
*
* Created by Palidino76
*/
package palidino76.rs2;
import java.net.Socket;
import palidino76.rs2.players.Player;
import palidino76.rs2.players.items.*;
import palidino76.rs2.players.update.*;
import palidino76.rs2.players.combat.PlayerCombat;
import palidino76.rs2.world.mapdata.MapData;
import palidino76.rs2.world.items.Items;
import palidino76.rs2.io.*;
import palidino76.rs2.util.Misc;
import palidino76.rs2.npcs.NPC;
import palidino76.rs2.npcs.update.*;
import palidino76.rs2.npcs.loading.*;
public class Engine implements Runnable {
/**
* When a new player logs in, a new player is created and stored in this array.
* <p>The server cannot exceed 2000 players.
* The id 0 cannot be used as it is not handled by the client corrently.
*/
public static Player[] players = new Player[2000];
/**
* Max id an NPC can have loaded out of the npclist config.
*/
public static int maxListedNPCs = 8045;
/**
* When a new NPC is created, it is stored in this array.
* <p>There can not be more than 5000 NPCs spawned at a time.
* The id 0 cannot be used as it is not handled by the client corrently.
*/
public static NPC[] npcs = new NPC[5000];
/**
* Contains NPC data such as respawn times, names, examines, etc.
*/
public static NPCList[] npcLists = new NPCList[maxListedNPCs];
/**
* The class thread.
*/
private Thread engineThread = new Thread(this);
/**
* Set true if the engine should run.
*/
private boolean engineRunning = true;
/**
* Handles packets recieved from the server.
*/
public static Packets packets = new Packets();
/**
* Loads and stores map data for map regions.
*/
public static MapData mapData = new MapData();
/**
* Contains a method for every known frame.
*/
public static Frames frames = new Frames();
/**
* Handles player movement.
*/
public static PlayerMovement playerMovement = new PlayerMovement();
/**
* Contains all item information.
*/
public static Items items;
/**
* Handles player updates.
*/
public static PlayerUpdate playerUpdate = new PlayerUpdate();
/**
* Handles NPC movement.
*/
public static NPCMovement npcMovement = new NPCMovement();
/**
* Handles NPC updates.
*/
public static NPCUpdate npcUpdate = new NPCUpdate();
/**
* Handles players items.
*/
public static PlayerItems playerItems = new PlayerItems();
/**
* Handles file saving and loading.
*/
public static FileManager fileManager = new FileManager();
public static PlayerBank playerBank = new PlayerBank();
public static PlayerCombat playerCombat = new PlayerCombat();
/**
* Constructs a new Engine and loads item and NPC data from configs.
*/
public Engine() {
items = new Items(this);
LoadNPCLists lnl = new LoadNPCLists();
lnl = null;
engineThread.start();
}
/**
* The thread's process.
* <p>This processes at a rate of 100 milliseconds, and the processing time
* is subtracted from the amount of time it sleeps to keep at a rate of 100
* milliseonds. Packets are checked every 100 milliseconds for faster response time,
* and most other updates are processed every 600 milliseconds.
*/
public void run() {
long lastEntityUpdate = 0;
long curTime;
while (engineRunning) {
curTime = System.currentTimeMillis();
connectAwaitingPlayers();
packets.parseIncomingPackets();
if (curTime - lastEntityUpdate >= 600) {
items.process();
for (Player p : players) {
// Proccess and player movement, removing disconnected players.
if (p == null || !p.online) {
continue;
}
if (p.disconnected[0] && p.disconnected[1]) {
removePlayer(p.playerId);
continue;
}
p.process();
playerMovement.getNextPlayerMovement(p);
}
for (Player p: players) {
// Update players.
if (p == null || !p.online) {
continue;
}
playerUpdate.update(p);
}
for (Player p : players) {
// Reset masks and send bytes.
if (p == null || !p.online) {
continue;
}
playerUpdate.clearUpdateReqs(p);
Server.socketListener.writeBuffer(p);
}
for (NPC n : npcs) {
if (n == null) {
continue;
}
npcUpdate.clearUpdateMasks(n);
}
for (NPC n : npcs) {
if (n == null) {
continue;
}
n.process();
if (!n.isDead) {
if (n.randomWalk) {
npcMovement.randomWalk(n);
}
} else {
if (!n.deadEmoteDone) {
n.deadEmoteDone = true;
n.combatDelay = 3;
} else if (n.deadEmoteDone && !n.hiddenNPC && n.combatDelay <= 0) {
n.npccanloot = true;
n.npcDied(Engine.players[1], n.npcType, n.absX, n.absY);
n.hiddenNPC = true;
} else if (n.hiddenNPC && n.respawnDelay <= 0) {
if (n.needsRespawn) {
newNPC(n.npcType, n.makeX, n.makeY, n.heightLevel, n.moveRangeX1, n.moveRangeY1,
n.moveRangeX2, n.moveRangeY2, true);
}
npcs[n.npcId] = null;
rebuildNPCs();
}
}
lastEntityUpdate = curTime;
}
}
try {
Thread.sleep(100 - (System.currentTimeMillis() - curTime));
} catch (Exception e) {
}
}
}
/**
* Assign a player to the connection.
* <p>When a new connection is recieved, a new Player class is created which waits for the run method
* to run the Login class to finish the connection. If the id is 0, or the server is full, no
* connection is made and the socket is closed.
* @param socket The socket the new player is connected to.
* @param id The id which the new player will be created at.
*/
public void addConnection(Socket socket, int id) {
if (id == 0) {
Server.socketListener.removeSocket(id);
return;
}
players[id] = new Player(socket, id);
}
/**
* Run the login class to finish a new connection.
* <p>Loops through all the players looking for any that are not online.
* Because the socket can't cause the server to process slower, there
* are multiple login stages, and the player will go through the login class
* two or three times before fully logging in.
*/
public void connectAwaitingPlayers() {
Login login = null;
for (Player p : players) {
if (p == null || p.online) {
continue;
}
if (login == null)
login = new Login();
login.login(p);
if (!p.online && p.loginStage == -1 || (System.currentTimeMillis() - p.loginTimeout) >= 15000) {
/*
* Remove the player if he failed to connect or it was the update server.
*/
removePlayer(p.playerId);
}
}
}
/**
* Discard a player with the specified id in the player array.
* <p>This method should only be called when the player is ready to be removed.
* This nulls closes the players socket and then nulls the player.
* @param id The position in the player array that should be removed.
*/
public void removePlayer(int id) {
if (players[id] == null) {
return;
}
if (players[id].online) {
try {
fileManager.saveCharacter(players[id]);
} catch (Exception e) {
}
}
players[id].destruct();
players[id] = null;
Server.socketListener.removeSocket(id);
}
/**
* This method tells every player to re-add any NPCs within distance.
* <p>By calling this method, with the next NPC update it will discard the NPC list and
* re-loop through every NPC and re-add them if they fit the specifications.
*/
public void rebuildNPCs() {
for (Player p : players) {
if (p == null) {
continue;
}
p.rebuildNPCList = true;
}
}
/**
* Returns a players id based on their username, or 0 if the player is not online.
* <p>This will check if a player is online based on searching every characters username,
* and comparing it to playerName. Because index 0 is not used and won't throw an
* ArrayoutofBounds exception error, 0 is returned if the username isn't found.
* @param playerName The name to compare with the other online player names.
* @return Returns the index of the player with that username, or 0 if the username isn't found.
*/
public int getIdFromName(String playerName) {
playerName.replaceAll("_", " ");
for (Player p : players) {
if (p == null) {
continue;
}
if (p.username.equalsIgnoreCase(playerName)) {
return p.playerId;
}
}
return 0;
}
/**
* Returns the description of npcId.
* @param npcId The NPC to get the examine for.
* @return Returns the examine.
*/
public String getNPCDescription(int npcId) {
if (npcId == -1 || npcId >= maxListedNPCs) {
return new String("An NPC.");
}
if (npcLists[npcId] != null) {
return (npcLists[npcId].examine);
}
return new String("NPC " + npcId);
}
/**
* Spawn a new NPC.
* <p>This will create a new visible NPC, with the default values from its list and the parameters.
* @param type The type of NPC this is, such as 50 for the King black dragon.
* @param absX The absolute x coordinate to spawn the NPC.
* @param absY The absolute y coordinate to spawn the NPC.
* @param height The height level to set the NPC.
* @param mRXY1 The distance it can walk west; must be lower than absX to have any effect.
* @param mRY1 The distance it can walk south; must be lower than absY to have any effect.
* @param mRX2 The distance it can walk east; must be higher than absX to have any effect.
* @param mRY2 The distance it can walk north; must be higher than absY to have any effect.
* @param needsRespawn Set to true if the NPC should respawn after it dies.
* @return Returns the index the NPC was placed at.
*/
public static int newNPC(int type, int absX, int absY, int height, int mRX1, int mRY1, int mRX2, int mRY2, boolean needsRespawn) {
int index = -1;
for (int i = 1; i < npcs.length; i++) {
if (npcs[i] == null) {
index = i;
break;
}
}
if (index == -1) {
Misc.println("Max number of NPCs spawned.");
return -1;
}
NPC n = npcs[index] = new NPC(type, index);
n.absX = absX;
n.absY = absY;
n.makeX = absX;
n.makeY = absY;
n.heightLevel = height;
n.moveRangeX1 = mRX1;
n.moveRangeY1 = mRY1;
n.moveRangeX2 = mRX2;
n.moveRangeY2 = mRY2;
n.needsRespawn = needsRespawn;
NPCList nl = npcLists[type];
if (nl != null) {
n.name = nl.npcName;
n.combatLevel = nl.combatLevel;
n.maxHP = nl.maxHP;
n.currentHP = n.maxHP;
n.maxHit = nl.maxHit;
n.atkType = nl.atkType;
n.weakness = nl.weakness;
n.respawnDelay = nl.respawnDelay;
}
return index;
}
}
tutorial im folowing : [Only registered and activated users can see links. ]
already ty for help me bye
Ok, First, add playeritems as one of your imports, I dont know where it is in there, just list it starting with palidino76 untill the file, and also do the same thing with player.java. Should fix most if not all of your errors.
Ok, First, add playeritems as one of your imports, I dont know where it is in there, just list it starting with palidino76 untill the file, and also do the same thing with player.java. Should fix most if not all of your errors.
like this?
import palidino76.rs2.players.items.PlayerItems;
.\palidino76\rs2\npcs\NPC.java:274: cannot find symbol
symbol : variable Misc
location: class palidino76.rs2.npcs.NPC
if (Misc.random(3) == 1) {
^
.\palidino76\rs2\npcs\NPC.java:290: package Engine does not exist
Engine.playerItems.createGroundItem(item, amount, abSX, abSY, he
ightLevel, p.username);
^
2 errors
.\palidino76\rs2\npcs\NPC.java:274: cannot find symbol
symbol : variable Misc
location: class palidino76.rs2.npcs.NPC
if (Misc.random(3) == 1) {
^
.\palidino76\rs2\npcs\NPC.java:290: package Engine does not exist
Engine.playerItems.createGroundItem(item, amount, abSX, abSY, he
ightLevel, p.username);
^
2 errors
.\palidino76\rs2\npcs\NPC.java:274: cannot find symbol
symbol : variable Misc
location: class palidino76.rs2.npcs.NPC
if (Misc.random(3) == 1) {
^
.\palidino76\rs2\npcs\NPC.java:290: package Engine does not exist
Engine.playerItems.createGroundItem(item, amount, abSX, abSY, he
ightLevel, p.username);
^
2 errors
.\palidino76\rs2\npcs\NPC.java:274: cannot find symbol
symbol : variable Misc
location: class palidino76.rs2.npcs.NPC
if (Misc.random(3) == 1) {
^
.\palidino76\rs2\npcs\NPC.java:290: package Engine does not exist
Engine.playerItems.createGroundItem(item, amount, abSX, abSY, he
ightLevel, p.username);
^
2 errors
.\palidino76\rs2\npcs\NPC.java:274: cannot find symbol
symbol : variable Misc
location: class palidino76.rs2.npcs.NPC
if (Misc.random(3) == 1) {
^
.\palidino76\rs2\npcs\NPC.java:290: package Engine does not exist
Engine.playerItems.createGroundItem(item, amount, abSX, abSY, he
ightLevel, p.username);
^
2 errors
.\palidino76\rs2\npcs\NPC.java:274: cannot find symbol
symbol : variable Misc
location: class palidino76.rs2.npcs.NPC
if (Misc.random(3) == 1) {
^
.\palidino76\rs2\npcs\NPC.java:290: package Engine does not exist
Engine.playerItems.createGroundItem(item, amount, abSX, abSY, he
ightLevel, p.username);
^
2 errors
.\palidino76\rs2\npcs\NPC.java:274: cannot find symbol
symbol : variable Misc
location: class palidino76.rs2.npcs.NPC
if (Misc.random(3) == 1) {
^
.\palidino76\rs2\npcs\NPC.java:290: package Engine does not exist
Engine.playerItems.createGroundItem(item, amount, abSX, abSY, he
ightLevel, p.username);
^
2 errors
.\palidino76\rs2\npcs\NPC.java:274: cannot find symbol
symbol : variable Misc
location: class palidino76.rs2.npcs.NPC
if (Misc.random(3) == 1) {
^
.\palidino76\rs2\npcs\NPC.java:290: package Engine does not exist
Engine.playerItems.createGroundItem(item, amount, abSX, abSY, he
ightLevel, p.username);
^
2 errors
.\palidino76\rs2\npcs\NPC.java:274: cannot find symbol
symbol : variable Misc
location: class palidino76.rs2.npcs.NPC
if (Misc.random(3) == 1) {
^
.\palidino76\rs2\npcs\NPC.java:290: package Engine does not exist
Engine.playerItems.createGroundItem(item, amount, abSX, abSY, he
ightLevel, p.username);
^
2 errors
Druk op een toets om door te gaan. . .