Originally Posted by
arch337
- when banking, prayer glow.
There is a section
here that has some tips
- entering raids is fine, leaving raids and re-entering raids gives you console error.
What are the errors?
the error:
Code:
java.lang.NullPointerException
at ethos.model.minigames.raids.Raids.startRaid(Raids.java:360)
at ethos.model.players.packets.objectoptions.ObjectOptionOne.handleOption(ObjectOptionOne.java:857)
at ethos.model.players.ActionHandler.firstClickObject(ActionHandler.java:21)
at ethos.model.players.packets.ClickObject.processPacket(ClickObject.java:584)
at ethos.model.players.PacketHandler.processPacket(PacketHandler.java:179)
at ethos.model.players.Player.processQueuedPackets(Player.java:2123)
at ethos.model.players.PlayerHandler.process(PlayerHandler.java:183)
at ethos.Server.lambda$0(Server.java:174)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
startRaid
Code:
public void startRaid() {
if (player.clan == null || !player.clan.isFounder(player.playerName)) {
player.sendMessage("You're not in a clan that you own, and can not pass the door.");
return;
}
int memberCount = player.clan.activeMembers.size();
if (memberCount < 1) {
player.sendMessage("You don't have enough people in your clan to start a raid.");
return;
}
if (memberCount > 22) {
player.sendMessage("Your clan exceeds the max limit of 22 players in Raids.");
return;
}
raidLeader=player;
int path1 = 1;
int way1=Misc.random(1);
path = path1;
way=way1;
raidPoints = 0;
for (String username : player.clan.activeMembers) {
Player p = PlayerHandler.getPlayer(username);
if (p == null || !p.inRaidsMountain()) {
continue;
}
if(p.combatLevel < 75 && p.totalLevel < 750){
p.sendMessage("You need at least 75 combat or 750 total level to attend raids.");
continue;
}
p.getRaids().raidLeader = player;
p.getRaids().path = path1;
p.getRaids().way= way1;
p.getRaids().raidPoints=0;
for(RaidRooms room : RaidRooms.values()) {
if(room.getWay() == way) {
p.getRaids().roomNames.add(room.getRoomName()); <--------- line 360
p.getRaids().roomPaths.add(room.getDoor());
}
}
p.getRaids().updateRaidPoints();
p.getPA().movePlayer(getStartLocation().getX(),getStartLocation().getY(),getHeight(player));
p.sendMessage("@red@Welcome to the Chambers of Xeric!");
}
}
when you leave and try to enter nothing happens, it only gives the error. but if you logout and try to enter the game it works.