ChatSystemMsgchatMsg=newChatSystemMsg(null,mob.getName()+" in "+mob.getParentZone().getName()+" has found the "+specialDrop.getName()+". Are you tough enough to take it?");
//lastly, check mobs inventory for godly or disc runes to send a server announcement
for(Itemit:mob.getInventory()){
}
ItemBaseib=it.getItemBase();
if(ib==null)
break;
if(ib.isDiscRune()||ib.getName().toLowerCase().contains("of the gods")){
ChatSystemMsgchatMsg=newChatSystemMsg(null,mob.getName()+" in "+mob.getParentZone().getName()+" has found the "+ib.getName()+". Are you tough enough to take it?");
//lastly, check mobs inventory for godly or disc runes to send a server announcement
for(Itemit:mob.getInventory()){
ItemBaseib=it.getItemBase();
if(ib==null)
break;
if(ib.isDiscRune()||ib.getName().toLowerCase().contains("of the gods")){
ChatSystemMsgchatMsg=newChatSystemMsg(null,mob.getName()+" in "+mob.getParentZone().getName()+" has found the "+ib.getName()+". Are you tough enough to take it?");
@ -96,7 +98,7 @@ public enum MovementManager {
@@ -96,7 +98,7 @@ public enum MovementManager {
if(!toMove.isMoving())
toMove.resetLastSetLocUpdate();
else
toMove.update();
toMove.update(false);
// Update movement for the player
@ -351,7 +353,7 @@ public enum MovementManager {
@@ -351,7 +353,7 @@ public enum MovementManager {
ChatManager.chatSystemInfo((PlayerCharacter)ac,"Finished Alt change, setting the end location to "+ac.getEndLoc().getX()+' '+ac.getEndLoc().getZ()+" moving="+ac.isMoving()+" and current location is "+curLoc.getX()+' '+curLoc.getZ());
//Send run/walk/sit/stand to tell the client we are flying / landing etc
ac.update();
ac.update(false);
ac.stopMovement(ac.getLoc());
if(ac.isAlive())
MovementManager.sendRWSSMsg(ac);
@ -408,7 +410,9 @@ public enum MovementManager {
@@ -408,7 +410,9 @@ public enum MovementManager {
@ -16,7 +16,7 @@ public class JobContainer implements Comparable<JobContainer> {
@@ -16,7 +16,7 @@ public class JobContainer implements Comparable<JobContainer> {
@ -29,7 +29,7 @@ public class ActivateBaneJob extends AbstractScheduleJob {
@@ -29,7 +29,7 @@ public class ActivateBaneJob extends AbstractScheduleJob {
@ -24,7 +24,7 @@ public class BaneDefaultTimeJob extends AbstractScheduleJob {
@@ -24,7 +24,7 @@ public class BaneDefaultTimeJob extends AbstractScheduleJob {
@ -27,7 +27,7 @@ public class ChangeAltitudeJob extends AbstractScheduleJob {
@@ -27,7 +27,7 @@ public class ChangeAltitudeJob extends AbstractScheduleJob {
@ -37,7 +37,7 @@ public class DamageOverTimeJob extends AbstractEffectJob {
@@ -37,7 +37,7 @@ public class DamageOverTimeJob extends AbstractEffectJob {
@ -60,6 +60,8 @@ public class DamageOverTimeJob extends AbstractEffectJob {
@@ -60,6 +60,8 @@ public class DamageOverTimeJob extends AbstractEffectJob {
@ -28,7 +28,7 @@ public class DatabaseUpdateJob extends AbstractScheduleJob {
@@ -28,7 +28,7 @@ public class DatabaseUpdateJob extends AbstractScheduleJob {
@ -22,7 +22,7 @@ public class FinishEffectTimeJob extends AbstractEffectJob {
@@ -22,7 +22,7 @@ public class FinishEffectTimeJob extends AbstractEffectJob {
@ -26,7 +26,7 @@ public class FinishRecycleTimeJob extends AbstractScheduleJob {
@@ -26,7 +26,7 @@ public class FinishRecycleTimeJob extends AbstractScheduleJob {
@ -20,7 +20,7 @@ public class FinishSpireEffectJob extends AbstractEffectJob {
@@ -20,7 +20,7 @@ public class FinishSpireEffectJob extends AbstractEffectJob {
@ -31,7 +31,7 @@ public class FinishSummonsJob extends AbstractScheduleJob {
@@ -31,7 +31,7 @@ public class FinishSummonsJob extends AbstractScheduleJob {
}
@Override
protectedvoiddoJob(){
publicvoiddoJob(){
if(this.target==null)
return;
@ -47,13 +47,13 @@ public class FinishSummonsJob extends AbstractScheduleJob {
@@ -47,13 +47,13 @@ public class FinishSummonsJob extends AbstractScheduleJob {
return;
// cannot summon a player in combat
if(this.target.isCombat()){
//if (this.target.isCombat()) {
ErrorPopupMsg.sendErrorMsg(this.source,"Cannot summon player in combat.");
// ErrorPopupMsg.sendErrorMsg(this.source, "Cannot summon player in combat.");
@ -25,7 +25,7 @@ public class LogoutCharacterJob extends AbstractScheduleJob {
@@ -25,7 +25,7 @@ public class LogoutCharacterJob extends AbstractScheduleJob {
@ -22,7 +22,7 @@ public class RemoveCorpseJob extends AbstractScheduleJob {
@@ -22,7 +22,7 @@ public class RemoveCorpseJob extends AbstractScheduleJob {
@ -25,7 +25,7 @@ public class SiegeSpireWithdrawlJob extends AbstractScheduleJob {
@@ -25,7 +25,7 @@ public class SiegeSpireWithdrawlJob extends AbstractScheduleJob {
@ -29,7 +29,7 @@ public class TransferStatOTJob extends AbstractEffectJob {
@@ -29,7 +29,7 @@ public class TransferStatOTJob extends AbstractEffectJob {
@ -20,7 +22,7 @@ public class UpgradeBuildingJob extends AbstractScheduleJob {
@@ -20,7 +22,7 @@ public class UpgradeBuildingJob extends AbstractScheduleJob {
}
@Override
protectedvoiddoJob(){
publicvoiddoJob(){
// Must have a building to rank!
@ -41,6 +43,18 @@ public class UpgradeBuildingJob extends AbstractScheduleJob {
@@ -41,6 +43,18 @@ public class UpgradeBuildingJob extends AbstractScheduleJob {
@ -44,9 +44,16 @@ public class ClientConnection extends AbstractConnection {
@@ -44,9 +44,16 @@ public class ClientConnection extends AbstractConnection {
@ -227,10 +234,10 @@ public class ClientConnection extends AbstractConnection {
@@ -227,10 +234,10 @@ public class ClientConnection extends AbstractConnection {
SessionManager.remSession(
SessionManager.getSession(sessionID));
}catch(NullPointerExceptione){
Logger
.error(
"Tried to remove improperly initialized session. Skipping."+
e);
//Logger
//.error(
//"Tried to remove improperly initialized session. Skipping." +
@ -85,7 +86,7 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -85,7 +86,7 @@ public class ClientMessagePump implements NetMsgHandler {
if(pc==null)
return;
pc.update();
pc.update(false);
if(msg.getSpeed()==2)
pc.setWalkMode(false);
else
@ -114,7 +115,7 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -114,7 +115,7 @@ public class ClientMessagePump implements NetMsgHandler {
if(pc==null)
return;
pc.update();
pc.update(false);
pc.setSit(msg.toggleSitStand());
@ -238,6 +239,11 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -238,6 +239,11 @@ public class ClientMessagePump implements NetMsgHandler {
@ -560,12 +566,30 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -560,12 +566,30 @@ public class ClientMessagePump implements NetMsgHandler {
@ -654,6 +678,8 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -654,6 +678,8 @@ public class ClientMessagePump implements NetMsgHandler {
@ -1243,6 +1269,8 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1243,6 +1269,8 @@ public class ClientMessagePump implements NetMsgHandler {
@ -1347,6 +1375,8 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1347,6 +1375,8 @@ public class ClientMessagePump implements NetMsgHandler {
@ -1358,219 +1388,192 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1358,219 +1388,192 @@ public class ClientMessagePump implements NetMsgHandler {
@ -1579,14 +1582,43 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1579,14 +1582,43 @@ public class ClientMessagePump implements NetMsgHandler {
@ -1646,14 +1678,21 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1646,14 +1678,21 @@ public class ClientMessagePump implements NetMsgHandler {
max*=(1+(durMod*0.01f));
if(dur>=max||dur<1){
//redundancy message to clear item from window in client
@ -1847,6 +1886,7 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1847,6 +1886,7 @@ public class ClientMessagePump implements NetMsgHandler {
@ -78,7 +78,7 @@ public class ActivateNPCMsgHandler extends AbstractClientMsgHandler {
@@ -78,7 +78,7 @@ public class ActivateNPCMsgHandler extends AbstractClientMsgHandler {
@ -35,26 +36,28 @@ public class ArcMineChangeProductionMsgHandler extends AbstractClientMsgHandler
@@ -35,26 +36,28 @@ public class ArcMineChangeProductionMsgHandler extends AbstractClientMsgHandler
//TODO verify this against the warehouse?
if(GuildStatusController.isInnerCouncil(playerCharacter.getGuildStatus())==false)// is this only GL?
if(!GuildStatusController.isInnerCouncil(playerCharacter.getGuildStatus()))// is this only GL?
@ -42,18 +43,24 @@ public class ChangeAltitudeHandler extends AbstractClientMsgHandler {
@@ -42,18 +43,24 @@ public class ChangeAltitudeHandler extends AbstractClientMsgHandler {
// Find out if we already have an altitude timer running and if so
// do not process more alt change requests
pc.updateFlight();
if(pc.getTakeOffTime()!=0)
returnfalse;
pc.setTakeOffTime(System.currentTimeMillis());
// remove all movement timers and jobs
//TODO: test if they can fly
@ -67,7 +74,7 @@ public class ChangeAltitudeHandler extends AbstractClientMsgHandler {
@@ -67,7 +74,7 @@ public class ChangeAltitudeHandler extends AbstractClientMsgHandler {
if(pc.getAltitude()==0&&!msg.up())
returntrue;
pc.update();
pc.update(false);
pc.stopMovement(pc.getLoc());
msg.setStartAlt(pc.getAltitude());
if(msg.up()){
@ -132,7 +139,7 @@ public class ChangeAltitudeHandler extends AbstractClientMsgHandler {
@@ -132,7 +139,7 @@ public class ChangeAltitudeHandler extends AbstractClientMsgHandler {
}
if(msg.up()){
pc.update();
pc.update(false);
pc.setDesiredAltitude(targetAlt);
pc.setTakeOffTime(System.currentTimeMillis());
}else{
@ -158,7 +165,7 @@ public class ChangeAltitudeHandler extends AbstractClientMsgHandler {
@@ -158,7 +165,7 @@ public class ChangeAltitudeHandler extends AbstractClientMsgHandler {
@ -63,7 +63,7 @@ public class CityDataHandler extends AbstractClientMsgHandler {
@@ -63,7 +63,7 @@ public class CityDataHandler extends AbstractClientMsgHandler {
// If the hotZone has changed then update the client's map accordingly.
@ -62,7 +62,7 @@ public class DestroyBuildingHandler extends AbstractClientMsgHandler {
@@ -62,7 +62,7 @@ public class DestroyBuildingHandler extends AbstractClientMsgHandler {
@ -102,7 +102,7 @@ public class GroupInviteResponseHandler extends AbstractClientMsgHandler {
@@ -102,7 +102,7 @@ public class GroupInviteResponseHandler extends AbstractClientMsgHandler {
@ -61,7 +61,7 @@ public class HirelingServiceMsgHandler extends AbstractClientMsgHandler {
@@ -61,7 +61,7 @@ public class HirelingServiceMsgHandler extends AbstractClientMsgHandler {
returntrue;
npc.setRepairCost(msg.repairCost);
npc.setSpecialPrice(msg.repairCost);
ManageNPCMsgoutMsg=newManageNPCMsg(npc);
Dispatchdispatch=Dispatch.borrow(player,msg);
Some files were not shown because too many files have changed in this diff
Show More