various cleanups
This commit is contained in:
@@ -101,18 +101,6 @@ public enum LootManager {
|
||||
chatMsg.setChannel(Enum.ChatChannelType.SYSTEM.getChannelID());
|
||||
DispatchMessage.dispatchMsgToAll(chatMsg);
|
||||
}
|
||||
if (ib.isDiscRune() && mob.level < 80){
|
||||
if(Mob.disciplineDroppers.contains(mob) == false){
|
||||
Mob.disciplineDroppers.add(mob);
|
||||
}
|
||||
mob.level = 60;
|
||||
mob.healthMax = 7500;
|
||||
mob.setHealth(7500);
|
||||
ChatSystemMsg chatMsg = new ChatSystemMsg(null, mob.getName() + " in " + mob.getParentZone().getName() + " may have found the " + ib.getName() + ". Are you tough enough to take it?");
|
||||
chatMsg.setMessageType(10);
|
||||
chatMsg.setChannel(Enum.ChatChannelType.SYSTEM.getChannelID());
|
||||
DispatchMessage.dispatchMsgToAll(chatMsg);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -458,14 +446,22 @@ public enum LootManager {
|
||||
if(bse.itemBase == 3049)//disable clanwarden
|
||||
return;
|
||||
|
||||
int chance = 25;
|
||||
int chance;
|
||||
|
||||
if(ItemBase.getItemBase(bse.itemBase).isDiscRune() == false) {
|
||||
if(!ItemBase.getItemBase(bse.itemBase).isDiscRune()) {
|
||||
chance = (int) bse.dropChance;
|
||||
}else {
|
||||
chance = 25;
|
||||
if(Mob.disciplineDroppers.contains(mob) == false)
|
||||
if(!Mob.disciplineDroppers.contains(mob))
|
||||
Mob.disciplineDroppers.add(mob);
|
||||
|
||||
mob.level = 60;
|
||||
mob.healthMax = 7500;
|
||||
mob.setHealth(7500);
|
||||
ChatSystemMsg chatMsg = new ChatSystemMsg(null, mob.getName() + " in " + mob.getParentZone().getName() + " may have found the " + ItemBase.getItemBase(bse.itemBase).getName() + ". Are you tough enough to take it?");
|
||||
chatMsg.setMessageType(10);
|
||||
chatMsg.setChannel(Enum.ChatChannelType.SYSTEM.getChannelID());
|
||||
DispatchMessage.dispatchMsgToAll(chatMsg);
|
||||
}
|
||||
|
||||
//if((bse.itemBase == 3040 || bse.itemBase == 3021) && mob.level < 80){
|
||||
|
||||
@@ -907,9 +907,9 @@ public class MobAI {
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (System.currentTimeMillis() > (aiAgent.deathTime + (aiAgent.spawnTime * 1000))) {
|
||||
} else if (System.currentTimeMillis() > (aiAgent.deathTime + (aiAgent.spawnTime * 1000L))) {
|
||||
|
||||
if (Zone.respawnQue.contains(aiAgent) == false && Mob.disciplineDroppers.contains(aiAgent) == false){
|
||||
if (!Zone.respawnQue.contains(aiAgent) && !Mob.disciplineDroppers.contains(aiAgent)){
|
||||
Zone.respawnQue.add(aiAgent);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -240,12 +240,7 @@ public class WorldServer {
|
||||
Thread hourlyJobThread = new Thread(new HourlyJobThread());
|
||||
hourlyJobThread.setName("hourlyJob");
|
||||
hourlyJobThread.start();
|
||||
//if(LocalDateTime.now().isAfter(LocalDateTime.now().withMinute(30).withSecond(0))) {
|
||||
// nextHourlyJobTime = LocalDateTime.now().withMinute(0).withSecond(0).plusHours(1);
|
||||
//}else{
|
||||
// nextHourlyJobTime = LocalDateTime.now().withMinute(30).withSecond(0);
|
||||
//}
|
||||
nextHourlyJobTime = nextHourlyJobTime.plusMinutes(30);
|
||||
nextHourlyJobTime = nextHourlyJobTime.plusMinutes(60);
|
||||
}
|
||||
|
||||
if (LocalDateTime.now().isAfter(nextWareHousePushTime)) {
|
||||
|
||||
Reference in New Issue
Block a user