ChatSystemMsgchatMsg=newChatSystemMsg(null,mob.getName()+" in "+mob.getParentZone().getName()+" has found the "+specialDrop.getName()+". Are you tough enough to take it?");
@ -96,7 +96,7 @@ public enum MovementManager {
@@ -96,7 +96,7 @@ public enum MovementManager {
if(!toMove.isMoving())
toMove.resetLastSetLocUpdate();
else
toMove.update();
toMove.update(false);
// Update movement for the player
@ -351,7 +351,7 @@ public enum MovementManager {
@@ -351,7 +351,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 +408,7 @@ public enum MovementManager {
@@ -408,7 +408,7 @@ public enum MovementManager {
@ -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.");
@ -41,6 +43,18 @@ public class UpgradeBuildingJob extends AbstractScheduleJob {
@@ -41,6 +43,18 @@ public class UpgradeBuildingJob extends AbstractScheduleJob {
@ -227,10 +227,10 @@ public class ClientConnection extends AbstractConnection {
@@ -227,10 +227,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 +85,7 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -85,7 +85,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 +114,7 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -114,7 +114,7 @@ public class ClientMessagePump implements NetMsgHandler {
if(pc==null)
return;
pc.update();
pc.update(false);
pc.setSit(msg.toggleSitStand());
@ -560,12 +560,30 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -560,12 +560,30 @@ public class ClientMessagePump implements NetMsgHandler {
@ -654,6 +672,8 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -654,6 +672,8 @@ public class ClientMessagePump implements NetMsgHandler {
@ -1243,6 +1263,8 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1243,6 +1263,8 @@ public class ClientMessagePump implements NetMsgHandler {
@ -1347,6 +1369,8 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1347,6 +1369,8 @@ public class ClientMessagePump implements NetMsgHandler {
@ -1358,219 +1382,192 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1358,219 +1382,192 @@ public class ClientMessagePump implements NetMsgHandler {
@ -1579,14 +1576,43 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1579,14 +1576,43 @@ public class ClientMessagePump implements NetMsgHandler {
@ -1646,14 +1672,21 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1646,14 +1672,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
@ -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 {
@ -360,6 +360,11 @@ public class ItemProductionMsgHandler extends AbstractClientMsgHandler {
@@ -360,6 +360,11 @@ public class ItemProductionMsgHandler extends AbstractClientMsgHandler {
@ -62,16 +62,23 @@ public class MOTDEditHandler extends AbstractClientMsgHandler {
@@ -62,16 +62,23 @@ public class MOTDEditHandler extends AbstractClientMsgHandler {
returntrue;
}
if(type==1)// Guild MOTD
if(type==1){ // Guild MOTD
msg.setMessage(guild.getMOTD());
elseif(type==3)// IC MOTD
guild.updateDatabase();
}elseif(type==3){// IC MOTD
msg.setMessage(guild.getICMOTD());
elseif(type==0){// Nation MOTD
guild.updateDatabase();
}elseif(type==0){// Nation MOTD
Guildnation=guild.getNation();
if(nation==null||!nation.isNation()){
ErrorPopupMsg.sendErrorMsg(playerCharacter,"You do not have such authority!");
@ -105,7 +106,7 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@@ -105,7 +106,7 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
ErrorPopupMsg.sendErrorPopup(player,173);// You must be the leader of a guild to receive a blessing
return;
}
@ -126,12 +127,12 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@@ -126,12 +127,12 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
realm=RealmMap.getRealmForCity(city);
if(realm.getCanBeClaimed()==false){
if(!realm.getCanBeClaimed()){
ErrorPopupMsg.sendErrorPopup(player,180);// This territory cannot be ruled by anyone
return;
}
if(realm.isRuled()==true){
if(realm.isRuled()){
ErrorPopupMsg.sendErrorPopup(player,178);// This territory is already claimed
return;
}
@ -142,12 +143,12 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@@ -142,12 +143,12 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@ -155,7 +156,7 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@@ -155,7 +156,7 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@ -171,11 +172,9 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@@ -171,11 +172,9 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@ -191,16 +190,31 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@@ -191,16 +190,31 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
return;
}
intrank=shrine.getRank();
//R8 trees always get atleast rank 2 boons. rank uses index, where 0 is first place, 1 is second, etc...
ChatManager.chatGuildInfo(player.getGuild(),player.getName()+" has recieved a boon costing "+1+" point of favor.");
shrineBuilding.addEffectBit(1000000<<2);
@ -260,9 +274,31 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@@ -260,9 +274,31 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@ -316,6 +352,9 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@@ -316,6 +352,9 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
}
}
}
privatestaticPowersBasegetPowerforHermit(NPCnpc){
intcontractID;
@ -420,7 +459,7 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@@ -420,7 +459,7 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@ -421,31 +421,12 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler {
@@ -421,31 +421,12 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler {
itemMan.consume(item);
}
break;
//ANNIVERSERY GIFT
case31:
// *** Disabled for now: Needs bootyset created
//if (ib.getUUID() == 971012) {
// int random = ThreadLocalRandom.current().nextInt(ItemBase.AnniverseryGifts.size());
// int annyID = ItemBase.AnniverseryGifts.get(random);
// Item gift = MobLoot.createItemForPlayer(player, annyIB);
// if (gift != null) {
// itemMan.addItemToInventory(gift);
// itemMan.consume(item);
// }
// }
// break;
//}
LootManager.peddleFate(player,item);
break;
case30://water bucket
case8://potions, tears of saedron
case5://runes, petition, warrant, scrolls
if(uuid>3000&&uuid<3050){//Discipline Runes
if(ApplyRuneMsg.applyRune(uuid,origin,player)){
@ -462,7 +443,12 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler {
@@ -462,7 +443,12 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler {
itemMan.consume(item);
}
break;
}elseif(uuid>252122&&uuid<252128){//mastery runes
}elseif(uuid>252122&&uuid<252137){//blood runes
if(ApplyRuneMsg.applyRune(uuid,origin,player)){
itemMan.consume(item);
}
break;
}elseif(uuid>252128&&uuid<252128){//mastery runes
if(ApplyRuneMsg.applyRune(uuid,origin,player)){
itemMan.consume(item);
}
@ -528,7 +514,6 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler {
@@ -528,7 +514,6 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler {
@ -543,7 +528,9 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler {
@@ -543,7 +528,9 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler {
@ -1148,6 +1148,15 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
@@ -1148,6 +1148,15 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
@ -135,7 +135,8 @@ public class TaxCityMsgHandler extends AbstractClientMsgHandler {
@@ -135,7 +135,8 @@ public class TaxCityMsgHandler extends AbstractClientMsgHandler {
@ -112,6 +112,12 @@ public class BuyFromNPCWindowMsg extends ClientNetMsg {
@@ -112,6 +112,12 @@ public class BuyFromNPCWindowMsg extends ClientNetMsg {
@ -485,36 +485,19 @@ public class ManageCityAssetsMsg extends ClientNetMsg {
@@ -485,36 +485,19 @@ public class ManageCityAssetsMsg extends ClientNetMsg {
@ -77,10 +80,19 @@ public class TeleportRepledgeListMsg extends ClientNetMsg {
@@ -77,10 +80,19 @@ public class TeleportRepledgeListMsg extends ClientNetMsg {
publicvoidconfigure(){
if(isTeleport)
if(isTeleport){
cities=City.getCitiesToTeleportTo(player);
else
try{
mines=Mine.getMinesToTeleportTo(player);
if(mines==null)
mines=newArrayList<>();
}catch(Exceptione){
Logger.error("Unable To Load Mines For Teleport: "+e.getMessage());
}
}else{
cities=City.getCitiesToRepledgeTo(player);
mines=newArrayList<>();
}
}
/**
@ -96,10 +108,14 @@ public class TeleportRepledgeListMsg extends ClientNetMsg {
@@ -96,10 +108,14 @@ public class TeleportRepledgeListMsg extends ClientNetMsg {
@ -992,6 +992,9 @@ public class CharacterSkill extends AbstractGameObject {
@@ -992,6 +992,9 @@ public class CharacterSkill extends AbstractGameObject {
@ -1009,7 +1012,7 @@ public class CharacterSkill extends AbstractGameObject {
@@ -1009,7 +1012,7 @@ public class CharacterSkill extends AbstractGameObject {
@ -1084,6 +1087,9 @@ public class CharacterSkill extends AbstractGameObject {
@@ -1084,6 +1087,9 @@ public class CharacterSkill extends AbstractGameObject {
@ -1099,6 +1105,9 @@ public class CharacterSkill extends AbstractGameObject {
@@ -1099,6 +1105,9 @@ public class CharacterSkill extends AbstractGameObject {
@ -1109,7 +1118,7 @@ public class CharacterSkill extends AbstractGameObject {
@@ -1109,7 +1118,7 @@ public class CharacterSkill extends AbstractGameObject {
//VendorDialog vd = new VendorDialog(npc.contract.getVendorDialog().getDialogType(),npc.contract.getVendorDialog().getIntro(),-1);//VendorDialog.getHostileVendorDialog();
@ -1465,11 +1517,31 @@ public class Mob extends AbstractIntelligenceAgent {
@@ -1465,11 +1517,31 @@ public class Mob extends AbstractIntelligenceAgent {
@ -1573,36 +1685,65 @@ public class Mob extends AbstractIntelligenceAgent {
@@ -1573,36 +1685,65 @@ public class Mob extends AbstractIntelligenceAgent {
// TODO add error log here
if(this.bonuses!=null){
defense=GetDefense((int)defense,this);
}else
Logger.error("Error: missing bonuses");
defense=(defense<1)?1:defense;
this.defenseRating=(short)(defense+0.5f);
}catch(Exceptione){
Logger.info("Mobbase ID "+this.getMobBaseID()+" returned an error. Setting to Default Defense."+e.getMessage());
@ -150,6 +150,7 @@ public class PromotionClass extends AbstractGameObject {
@@ -150,6 +150,7 @@ public class PromotionClass extends AbstractGameObject {
@ -30,7 +30,7 @@ public class AttributeEffectModifier extends AbstractEffectModifier {
@@ -30,7 +30,7 @@ public class AttributeEffectModifier extends AbstractEffectModifier {
@ -29,7 +29,7 @@ public class HealthRecoverRateEffectModifier extends AbstractEffectModifier {
@@ -29,7 +29,7 @@ public class HealthRecoverRateEffectModifier extends AbstractEffectModifier {
@ -39,7 +39,7 @@ public class NoModEffectModifier extends AbstractEffectModifier {
@@ -39,7 +39,7 @@ public class NoModEffectModifier extends AbstractEffectModifier {
PlayerCharacterflyer=(PlayerCharacter)ac;
if(flyer.getAltitude()>0)
flyer.update();
flyer.update(false);
PlayerCharacter.GroundPlayer(flyer);
break;
Some files were not shown because too many files have changed in this diff
Show More