@ -143,6 +143,13 @@ public class dbSkillBaseHandler extends dbHandlerBase {
@@ -143,6 +143,13 @@ public class dbSkillBaseHandler extends dbHandlerBase {
@ -42,7 +42,7 @@ public class SetPromotionClassCmd extends AbstractDevCmd {
@@ -42,7 +42,7 @@ public class SetPromotionClassCmd extends AbstractDevCmd {
//lastly, check mobs inventory for godly or disc runes to send a server announcement
for(Itemit:mob.getInventory()){
@ -85,7 +89,7 @@ public enum LootManager {
@@ -85,7 +89,7 @@ public enum LootManager {
ItemBaseib=it.getItemBase();
if(ib==null)
break;
if(ib.isDiscRune()||ib.getName().toLowerCase().contains("of the gods")){
if(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?");
ChatSystemMsgchatMsg=newChatSystemMsg(null,mob.getName()+" in "+mob.getParentZone().getName()+" has found the "+specialDrop.getName()+". Are you tough enough to take it?");
ChatSystemMsgchatMsg=newChatSystemMsg(null,mob.getName()+" in "+mob.getParentZone().getName()+" has found the "+ItemBase.getItemBase(bse.itemBase).getName()+". Are you tough enough to take it?");
@ -67,6 +71,10 @@ public class ActivateBaneJob extends AbstractScheduleJob {
@@ -67,6 +71,10 @@ public class ActivateBaneJob extends AbstractScheduleJob {
@ -122,6 +123,7 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -122,6 +123,7 @@ public class ClientMessagePump implements NetMsgHandler {
if(pc.isSit()){
pc.setCombat(false);
pc.cancelOnSit();
pc.stopMovement(pc.loc);
}
UpdateStateMsgrwss=newUpdateStateMsg();
@ -222,6 +224,11 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -222,6 +224,11 @@ public class ClientMessagePump implements NetMsgHandler {
@ -554,18 +561,32 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -554,18 +561,32 @@ public class ClientMessagePump implements NetMsgHandler {
@ -1358,219 +1379,171 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1358,219 +1379,171 @@ public class ClientMessagePump implements NetMsgHandler {
@ -1579,16 +1552,44 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1579,16 +1552,44 @@ public class ClientMessagePump implements NetMsgHandler {
@ -1631,8 +1632,8 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1631,8 +1632,8 @@ public class ClientMessagePump implements NetMsgHandler {
if(toRepair==null)
return;
if(toRepair.getItemBase().isGlass())
return;
//if (toRepair.getItemBase().isGlass())
// return;
//make sure item is in player's inventory or equipment
@ -1654,6 +1655,12 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1654,6 +1655,12 @@ public class ClientMessagePump implements NetMsgHandler {
@ -1888,9 +1895,22 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -1888,9 +1895,22 @@ public class ClientMessagePump implements NetMsgHandler {
@ -57,6 +57,21 @@ public class ActivateNPCMsgHandler extends AbstractClientMsgHandler {
@@ -57,6 +57,21 @@ public class ActivateNPCMsgHandler extends AbstractClientMsgHandler {
@ -78,13 +93,20 @@ public class ActivateNPCMsgHandler extends AbstractClientMsgHandler {
@@ -78,13 +93,20 @@ public class ActivateNPCMsgHandler extends AbstractClientMsgHandler {
Logger.error(player.getName()+"has attempted to place Hireling : "+contractItem.getName()+"without a valid contract!");
@ -104,10 +126,33 @@ public class ActivateNPCMsgHandler extends AbstractClientMsgHandler {
@@ -104,10 +126,33 @@ public class ActivateNPCMsgHandler extends AbstractClientMsgHandler {
returnfalse;
// Check if contract can be slotted in this building
@ -53,7 +53,7 @@ public class ArcLoginNotifyMsgHandler extends AbstractClientMsgHandler {
@@ -53,7 +53,7 @@ public class ArcLoginNotifyMsgHandler extends AbstractClientMsgHandler {
GroupManager.RefreshOthersGroupList(player);
}
player.setEnteredWorld(true);
player.enteredWorld=true;
// Set player active
player.resetRegenUpdateTime();
player.setActive(true);
@ -66,6 +66,9 @@ public class ArcLoginNotifyMsgHandler extends AbstractClientMsgHandler {
@@ -66,6 +66,9 @@ public class ArcLoginNotifyMsgHandler extends AbstractClientMsgHandler {
@ -116,6 +115,20 @@ public class BanishUnbanishHandler extends AbstractClientMsgHandler {
@@ -116,6 +115,20 @@ public class BanishUnbanishHandler extends AbstractClientMsgHandler {
@ -61,15 +61,6 @@ public class CityDataHandler extends AbstractClientMsgHandler {
@@ -61,15 +61,6 @@ public class CityDataHandler extends AbstractClientMsgHandler {
@ -62,7 +62,7 @@ public class DestroyBuildingHandler extends AbstractClientMsgHandler {
@@ -62,7 +62,7 @@ public class DestroyBuildingHandler extends AbstractClientMsgHandler {
@ -71,9 +71,12 @@ public class DestroyBuildingHandler extends AbstractClientMsgHandler {
@@ -71,9 +71,12 @@ public class DestroyBuildingHandler extends AbstractClientMsgHandler {
@ -103,6 +104,12 @@ public class GroupInviteHandler extends AbstractClientMsgHandler {
@@ -103,6 +104,12 @@ public class GroupInviteHandler extends AbstractClientMsgHandler {
@ -95,6 +97,25 @@ public class InviteToSubHandler extends AbstractClientMsgHandler {
@@ -95,6 +97,25 @@ public class InviteToSubHandler extends AbstractClientMsgHandler {
@ -61,6 +60,21 @@ public class LeaveGuildHandler extends AbstractClientMsgHandler {
@@ -61,6 +60,21 @@ public class LeaveGuildHandler extends AbstractClientMsgHandler {
@ -62,7 +63,6 @@ public class ManageCityAssetMsgHandler extends AbstractClientMsgHandler {
@@ -62,7 +63,6 @@ public class ManageCityAssetMsgHandler extends AbstractClientMsgHandler {
Buildingbuilding;
msg=(ManageCityAssetsMsg)baseMsg;
player=SessionManager.getPlayerCharacter(origin);
if(player==null)
@ -72,34 +72,21 @@ public class ManageCityAssetMsgHandler extends AbstractClientMsgHandler {
@@ -72,34 +72,21 @@ public class ManageCityAssetMsgHandler extends AbstractClientMsgHandler {
@ -111,20 +98,18 @@ public class ManageCityAssetMsgHandler extends AbstractClientMsgHandler {
@@ -111,20 +98,18 @@ public class ManageCityAssetMsgHandler extends AbstractClientMsgHandler {
@ -132,95 +117,58 @@ public class ManageCityAssetMsgHandler extends AbstractClientMsgHandler {
@@ -132,95 +117,58 @@ public class ManageCityAssetMsgHandler extends AbstractClientMsgHandler {
@ -228,49 +176,36 @@ public class ManageCityAssetMsgHandler extends AbstractClientMsgHandler {
@@ -228,49 +176,36 @@ public class ManageCityAssetMsgHandler extends AbstractClientMsgHandler {
@ -278,14 +213,11 @@ public class ManageCityAssetMsgHandler extends AbstractClientMsgHandler {
@@ -278,14 +213,11 @@ public class ManageCityAssetMsgHandler extends AbstractClientMsgHandler {
// Tests to turn on upgrade button if a building is not
@ -294,7 +226,7 @@ public class ManageCityAssetMsgHandler extends AbstractClientMsgHandler {
@@ -294,7 +226,7 @@ public class ManageCityAssetMsgHandler extends AbstractClientMsgHandler {
// Owner is obviously allowed to upgrade his own buildings
@ -147,7 +147,7 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@@ -147,7 +147,7 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@ -173,10 +173,10 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@@ -173,10 +173,10 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@ -191,12 +191,10 @@ public class MerchantMsgHandler extends AbstractClientMsgHandler {
@@ -191,12 +191,10 @@ 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...
@ -42,7 +41,6 @@ public class MinionTrainingMsgHandler extends AbstractClientMsgHandler {
@@ -42,7 +41,6 @@ public class MinionTrainingMsgHandler extends AbstractClientMsgHandler {
@ -63,10 +61,10 @@ public class MinionTrainingMsgHandler extends AbstractClientMsgHandler {
@@ -63,10 +61,10 @@ public class MinionTrainingMsgHandler extends AbstractClientMsgHandler {
@ -74,15 +72,19 @@ public class MinionTrainingMsgHandler extends AbstractClientMsgHandler {
@@ -74,15 +72,19 @@ public class MinionTrainingMsgHandler extends AbstractClientMsgHandler {
// we Found the move to remove, lets break the for loop so it doesnt look for more.
@ -115,7 +117,7 @@ public class MinionTrainingMsgHandler extends AbstractClientMsgHandler {
@@ -115,7 +117,7 @@ public class MinionTrainingMsgHandler extends AbstractClientMsgHandler {
if(npc.getContractID()==842)
maxSlots=1;
if(npc.getSiegeMinionMap().size()==maxSlots)
if(npc.siegeMinionMap.size()==maxSlots)
returntrue;
intmobBase;
@ -146,42 +148,10 @@ public class MinionTrainingMsgHandler extends AbstractClientMsgHandler {
@@ -146,42 +148,10 @@ public class MinionTrainingMsgHandler extends AbstractClientMsgHandler {
@ -228,11 +198,14 @@ public class MinionTrainingMsgHandler extends AbstractClientMsgHandler {
@@ -228,11 +198,14 @@ public class MinionTrainingMsgHandler extends AbstractClientMsgHandler {
@ -298,14 +271,14 @@ public class MinionTrainingMsgHandler extends AbstractClientMsgHandler {
@@ -298,14 +271,14 @@ public class MinionTrainingMsgHandler extends AbstractClientMsgHandler {
@ -195,7 +195,9 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler {
@@ -195,7 +195,9 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler {
@ -439,8 +441,10 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler {
@@ -439,8 +441,10 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler {
// }
// break;
//}
LootManager.peddleFate(player,item);
inti=0;
if(i!=0){
LootManager.peddleFate(player,item);
}
break;
case30://water bucket
@ -538,7 +542,11 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler {
@@ -538,7 +542,11 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler {
@ -44,6 +44,13 @@ public class OpenFriendsCondemnListMsgHandler extends AbstractClientMsgHandler {
@@ -44,6 +44,13 @@ public class OpenFriendsCondemnListMsgHandler extends AbstractClientMsgHandler {
@ -212,10 +212,6 @@ public class OrderNPCMsgHandler extends AbstractClientMsgHandler {
@@ -212,10 +212,6 @@ public class OrderNPCMsgHandler extends AbstractClientMsgHandler {
@ -223,10 +219,6 @@ public class OrderNPCMsgHandler extends AbstractClientMsgHandler {
@@ -223,10 +219,6 @@ public class OrderNPCMsgHandler extends AbstractClientMsgHandler {
@ -541,7 +533,7 @@ public class OrderNPCMsgHandler extends AbstractClientMsgHandler {
@@ -541,7 +533,7 @@ public class OrderNPCMsgHandler extends AbstractClientMsgHandler {
@ -412,6 +412,9 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
@@ -412,6 +412,9 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
@ -800,7 +803,7 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
@@ -800,7 +803,7 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
@ -1210,7 +1213,7 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
@@ -1210,7 +1213,7 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
@ -1271,6 +1274,9 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
@@ -1271,6 +1274,9 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
@ -57,7 +57,7 @@ public class RequestEnterWorldHandler extends AbstractClientMsgHandler {
@@ -57,7 +57,7 @@ public class RequestEnterWorldHandler extends AbstractClientMsgHandler {
@ -131,14 +132,15 @@ public class TaxCityMsgHandler extends AbstractClientMsgHandler {
@@ -131,14 +132,15 @@ public class TaxCityMsgHandler extends AbstractClientMsgHandler {
TaxCityMsgmsg;
player=origin.getPlayerCharacter();
ChatManager.chatSystemInfo(player,"Taxing has been disabled");
@ -66,6 +66,8 @@ public class UpgradeAssetMsgHandler extends AbstractClientMsgHandler {
@@ -66,6 +66,8 @@ public class UpgradeAssetMsgHandler extends AbstractClientMsgHandler {
Logger.error("Attempt to upgrade null building by "+player.getName());
@ -175,7 +176,7 @@ public class CommitNewCharacterMsg extends ClientNetMsg {
@@ -175,7 +176,7 @@ public class CommitNewCharacterMsg extends ClientNetMsg {
PlaceAssetMsg.sendPlaceAssetError(player.getClientConnection(),1,"A Serious error has occurred. Please post details for to ensure transaction integrity");
Logger.info("Failed to Convert World coordinates to local zone coordinates");
@ -489,7 +489,6 @@ public class CharacterSkill extends AbstractGameObject {
@@ -489,7 +489,6 @@ public class CharacterSkill extends AbstractGameObject {
@ -538,6 +537,10 @@ public class CharacterSkill extends AbstractGameObject {
@@ -538,6 +537,10 @@ public class CharacterSkill extends AbstractGameObject {
@ -557,6 +560,15 @@ public class CharacterSkill extends AbstractGameObject {
@@ -557,6 +560,15 @@ public class CharacterSkill extends AbstractGameObject {
if(skills==null)
return;
//if (pc.getRace().getName().equals("Saetor")) {
// SkillReq parry = new SkillReq(95961104, (short) 1);
// SkillReq staff = new SkillReq(71438003, (short) 15);
// SkillReq staffMastery = new SkillReq(-61022283, (short) 1);