Moved enums to separate files.
This commit is contained in:
parent
baf89b5e77
commit
406c54f14e
@ -19,6 +19,7 @@ package ai.bosses.Lindvior;
|
||||
import java.util.Collection;
|
||||
|
||||
import org.l2jmobius.gameserver.ai.CtrlIntention;
|
||||
import org.l2jmobius.gameserver.enums.FlyType;
|
||||
import org.l2jmobius.gameserver.geoengine.GeoEngine;
|
||||
import org.l2jmobius.gameserver.model.Location;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
@ -64,7 +65,7 @@ public class Vortex extends AbstractNpcAI
|
||||
final int y = (int) (attackers.getY() + (600 * Math.sin(radians)));
|
||||
final int z = attackers.getZ();
|
||||
final Location loc = GeoEngine.getInstance().getValidLocation(attackers.getX(), attackers.getY(), attackers.getZ(), x, y, z, attackers.getInstanceWorld());
|
||||
attackers.broadcastPacket(new FlyToLocation(attackers, x, y, z, FlyToLocation.FlyType.THROW_UP, 800, 800, 800));
|
||||
attackers.broadcastPacket(new FlyToLocation(attackers, x, y, z, FlyType.THROW_UP, 800, 800, 800));
|
||||
attackers.setXYZ(loc);
|
||||
attackers.broadcastPacket(new ValidateLocation(attackers));
|
||||
npc.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, player);
|
||||
|
@ -16,7 +16,7 @@
|
||||
*/
|
||||
package ai.others.CastleBlacksmith;
|
||||
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.clan.ClanPrivilege;
|
||||
|
@ -28,9 +28,9 @@ import org.l2jmobius.commons.util.CommonUtil;
|
||||
import org.l2jmobius.gameserver.data.sql.ClanTable;
|
||||
import org.l2jmobius.gameserver.data.xml.TeleporterData;
|
||||
import org.l2jmobius.gameserver.enums.CastleSide;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.instancemanager.CastleManorManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.FortManager;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.Door;
|
||||
|
@ -19,7 +19,7 @@ package ai.others.CastleDoorManager;
|
||||
import java.util.StringTokenizer;
|
||||
|
||||
import org.l2jmobius.commons.util.CommonUtil;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.clan.ClanPrivilege;
|
||||
|
@ -18,7 +18,7 @@ package ai.others.CastleMercenaryManager;
|
||||
|
||||
import java.util.StringTokenizer;
|
||||
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.Merchant;
|
||||
|
@ -20,9 +20,9 @@ import java.util.StringTokenizer;
|
||||
|
||||
import org.l2jmobius.commons.util.CommonUtil;
|
||||
import org.l2jmobius.gameserver.enums.ChatType;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.instancemanager.MapRegionManager;
|
||||
import org.l2jmobius.gameserver.model.Location;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||
|
@ -17,8 +17,8 @@
|
||||
package ai.others.ManorManager;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.instancemanager.CastleManorManager;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.Merchant;
|
||||
|
@ -20,7 +20,7 @@ import org.l2jmobius.Config;
|
||||
import org.l2jmobius.gameserver.data.xml.ClassListData;
|
||||
import org.l2jmobius.gameserver.data.xml.SkillTreeData;
|
||||
import org.l2jmobius.gameserver.enums.IllegalActionPunishmentType;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.SkillLearn;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.actor.transform.Transform;
|
||||
|
@ -18,8 +18,8 @@ package handlers.admincommandhandlers;
|
||||
|
||||
import java.util.StringTokenizer;
|
||||
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.handler.IAdminCommandHandler;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage;
|
||||
import org.l2jmobius.gameserver.util.BuilderUtil;
|
||||
|
@ -18,8 +18,8 @@ package handlers.chathandlers;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.gameserver.enums.ChatType;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.handler.IChatHandler;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.network.SystemMessageId;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.CreatureSay;
|
||||
|
@ -18,8 +18,8 @@ package handlers.chathandlers;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.gameserver.enums.ChatType;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.handler.IChatHandler;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.network.SystemMessageId;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.CreatureSay;
|
||||
|
@ -20,11 +20,11 @@ import java.util.StringTokenizer;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.gameserver.enums.ChatType;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.handler.IChatHandler;
|
||||
import org.l2jmobius.gameserver.handler.IVoicedCommandHandler;
|
||||
import org.l2jmobius.gameserver.handler.VoicedCommandHandler;
|
||||
import org.l2jmobius.gameserver.model.BlockList;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.network.SystemMessageId;
|
||||
|
@ -18,9 +18,9 @@ package handlers.chathandlers;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.gameserver.enums.ChatType;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.handler.IChatHandler;
|
||||
import org.l2jmobius.gameserver.model.BlockList;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.network.SystemMessageId;
|
||||
|
@ -18,8 +18,8 @@ package handlers.chathandlers;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.gameserver.enums.ChatType;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.handler.IChatHandler;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.network.SystemMessageId;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.CreatureSay;
|
||||
|
@ -18,8 +18,8 @@ package handlers.chathandlers;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.gameserver.enums.ChatType;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.handler.IChatHandler;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.matching.MatchingRoom;
|
||||
import org.l2jmobius.gameserver.network.SystemMessageId;
|
||||
|
@ -18,8 +18,8 @@ package handlers.chathandlers;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.gameserver.enums.ChatType;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.handler.IChatHandler;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.network.SystemMessageId;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.CreatureSay;
|
||||
|
@ -18,8 +18,8 @@ package handlers.chathandlers;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.gameserver.enums.ChatType;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.handler.IChatHandler;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.network.SystemMessageId;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.CreatureSay;
|
||||
|
@ -18,9 +18,9 @@ package handlers.chathandlers;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.gameserver.enums.ChatType;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.handler.IChatHandler;
|
||||
import org.l2jmobius.gameserver.instancemanager.PetitionManager;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.network.SystemMessageId;
|
||||
|
||||
|
@ -18,10 +18,10 @@ package handlers.chathandlers;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.gameserver.enums.ChatType;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.handler.IChatHandler;
|
||||
import org.l2jmobius.gameserver.instancemanager.MapRegionManager;
|
||||
import org.l2jmobius.gameserver.model.BlockList;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.network.SystemMessageId;
|
||||
|
@ -18,10 +18,10 @@ package handlers.chathandlers;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.gameserver.enums.ChatType;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.handler.IChatHandler;
|
||||
import org.l2jmobius.gameserver.instancemanager.MapRegionManager;
|
||||
import org.l2jmobius.gameserver.model.BlockList;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.network.SystemMessageId;
|
||||
|
@ -19,10 +19,10 @@ package handlers.chathandlers;
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.gameserver.data.xml.FakePlayerData;
|
||||
import org.l2jmobius.gameserver.enums.ChatType;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.handler.IChatHandler;
|
||||
import org.l2jmobius.gameserver.instancemanager.FakePlayerChatManager;
|
||||
import org.l2jmobius.gameserver.model.BlockList;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.network.SystemMessageId;
|
||||
|
@ -23,8 +23,8 @@ import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.gameserver.enums.ChatType;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.handler.IChatHandler;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.network.SystemMessageId;
|
||||
|
@ -17,6 +17,7 @@
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.ai.CtrlIntention;
|
||||
import org.l2jmobius.gameserver.enums.FlyType;
|
||||
import org.l2jmobius.gameserver.geoengine.GeoEngine;
|
||||
import org.l2jmobius.gameserver.model.Location;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
@ -25,7 +26,6 @@ import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.item.instance.Item;
|
||||
import org.l2jmobius.gameserver.model.skill.Skill;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.FlyToLocation;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.FlyToLocation.FlyType;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.ValidateLocation;
|
||||
import org.l2jmobius.gameserver.util.Util;
|
||||
|
||||
|
@ -17,6 +17,7 @@
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.ai.CtrlIntention;
|
||||
import org.l2jmobius.gameserver.enums.FlyType;
|
||||
import org.l2jmobius.gameserver.model.Location;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
@ -24,7 +25,6 @@ import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.item.instance.Item;
|
||||
import org.l2jmobius.gameserver.model.skill.Skill;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.FlyToLocation;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.FlyToLocation.FlyType;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.ValidateLocation;
|
||||
|
||||
/**
|
||||
|
@ -16,6 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.enums.FlyType;
|
||||
import org.l2jmobius.gameserver.geoengine.GeoEngine;
|
||||
import org.l2jmobius.gameserver.model.Location;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
@ -24,7 +25,6 @@ import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.item.instance.Item;
|
||||
import org.l2jmobius.gameserver.model.skill.Skill;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.FlyToLocation;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.FlyToLocation.FlyType;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.ValidateLocation;
|
||||
|
||||
/**
|
||||
|
@ -25,6 +25,7 @@ import org.l2jmobius.gameserver.ai.CtrlEvent;
|
||||
import org.l2jmobius.gameserver.ai.CtrlIntention;
|
||||
import org.l2jmobius.gameserver.enums.CategoryType;
|
||||
import org.l2jmobius.gameserver.enums.ClassId;
|
||||
import org.l2jmobius.gameserver.enums.FlyType;
|
||||
import org.l2jmobius.gameserver.enums.Race;
|
||||
import org.l2jmobius.gameserver.geoengine.GeoEngine;
|
||||
import org.l2jmobius.gameserver.model.Location;
|
||||
@ -40,7 +41,6 @@ import org.l2jmobius.gameserver.model.skill.Skill;
|
||||
import org.l2jmobius.gameserver.model.stats.Formulas;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.ExAlterSkillRequest;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.FlyToLocation;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.FlyToLocation.FlyType;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.ValidateLocation;
|
||||
import org.l2jmobius.gameserver.util.Util;
|
||||
|
||||
|
@ -16,6 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.enums.FlyType;
|
||||
import org.l2jmobius.gameserver.geoengine.GeoEngine;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
@ -24,7 +25,6 @@ import org.l2jmobius.gameserver.model.item.instance.Item;
|
||||
import org.l2jmobius.gameserver.model.skill.Skill;
|
||||
import org.l2jmobius.gameserver.model.stats.Formulas;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.FlyToLocation;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.FlyToLocation.FlyType;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.ValidateLocation;
|
||||
|
||||
/**
|
||||
|
@ -17,6 +17,7 @@
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.ai.CtrlIntention;
|
||||
import org.l2jmobius.gameserver.enums.FlyType;
|
||||
import org.l2jmobius.gameserver.model.Party;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
@ -28,7 +29,6 @@ import org.l2jmobius.gameserver.model.interfaces.ILocational;
|
||||
import org.l2jmobius.gameserver.model.item.instance.Item;
|
||||
import org.l2jmobius.gameserver.model.skill.Skill;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.FlyToLocation;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.FlyToLocation.FlyType;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.ValidateLocation;
|
||||
|
||||
/**
|
||||
|
@ -17,6 +17,7 @@
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.ai.CtrlIntention;
|
||||
import org.l2jmobius.gameserver.enums.FlyType;
|
||||
import org.l2jmobius.gameserver.geoengine.GeoEngine;
|
||||
import org.l2jmobius.gameserver.model.Location;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
@ -27,7 +28,6 @@ import org.l2jmobius.gameserver.model.effects.EffectType;
|
||||
import org.l2jmobius.gameserver.model.item.instance.Item;
|
||||
import org.l2jmobius.gameserver.model.skill.Skill;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.FlyToLocation;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.FlyToLocation.FlyType;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.ValidateLocation;
|
||||
import org.l2jmobius.gameserver.util.Util;
|
||||
|
||||
|
@ -17,6 +17,7 @@
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.gameserver.ai.CtrlIntention;
|
||||
import org.l2jmobius.gameserver.enums.FlyType;
|
||||
import org.l2jmobius.gameserver.geoengine.GeoEngine;
|
||||
import org.l2jmobius.gameserver.model.Location;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
@ -26,7 +27,6 @@ import org.l2jmobius.gameserver.model.effects.EffectType;
|
||||
import org.l2jmobius.gameserver.model.item.instance.Item;
|
||||
import org.l2jmobius.gameserver.model.skill.Skill;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.FlyToLocation;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.FlyToLocation.FlyType;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.ValidateLocation;
|
||||
import org.l2jmobius.gameserver.util.Util;
|
||||
|
||||
|
@ -20,9 +20,9 @@ import java.util.List;
|
||||
|
||||
import org.l2jmobius.commons.util.CommonUtil;
|
||||
import org.l2jmobius.gameserver.enums.InstanceReenterType;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.instancemanager.InstanceManager;
|
||||
import org.l2jmobius.gameserver.model.Location;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.instancezone.Instance;
|
||||
|
@ -32,11 +32,11 @@ import org.l2jmobius.commons.util.Chronos;
|
||||
import org.l2jmobius.commons.util.Rnd;
|
||||
import org.l2jmobius.gameserver.enums.CategoryType;
|
||||
import org.l2jmobius.gameserver.enums.CeremonyOfChaosResult;
|
||||
import org.l2jmobius.gameserver.enums.PartyMessageType;
|
||||
import org.l2jmobius.gameserver.instancemanager.GlobalVariablesManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.InstanceManager;
|
||||
import org.l2jmobius.gameserver.model.Location;
|
||||
import org.l2jmobius.gameserver.model.Party;
|
||||
import org.l2jmobius.gameserver.model.Party.MessageType;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||
@ -341,7 +341,7 @@ public class CeremonyOfChaos extends AbstractNpcAI
|
||||
final Party party = player.getParty();
|
||||
if (party != null)
|
||||
{
|
||||
party.removePartyMember(player, MessageType.EXPELLED);
|
||||
party.removePartyMember(player, PartyMessageType.EXPELLED);
|
||||
}
|
||||
|
||||
// Cancel any started action
|
||||
|
@ -59,10 +59,7 @@ import org.l2jmobius.gameserver.util.Broadcast;
|
||||
public class Shutdown extends Thread
|
||||
{
|
||||
private static final Logger LOGGER = Logger.getLogger(Shutdown.class.getName());
|
||||
private static Shutdown _counterInstance = null;
|
||||
|
||||
private int _secondsShut;
|
||||
private int _shutdownMode;
|
||||
private static final int SIGTERM = 0;
|
||||
private static final int GM_SHUTDOWN = 1;
|
||||
private static final int GM_RESTART = 2;
|
||||
@ -75,6 +72,11 @@ public class Shutdown extends Thread
|
||||
"aborting"
|
||||
};
|
||||
|
||||
private static Shutdown _counterInstance = null;
|
||||
|
||||
private int _secondsShut;
|
||||
private int _shutdownMode;
|
||||
|
||||
/**
|
||||
* This function starts a shutdown count down from Telnet (Copied from Function startShutdown())
|
||||
* @param seconds seconds until shutdown
|
||||
|
@ -26,6 +26,7 @@ import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.database.DatabaseFactory;
|
||||
import org.l2jmobius.gameserver.communitybbs.TopicConstructorType;
|
||||
import org.l2jmobius.gameserver.communitybbs.Manager.ForumsBBSManager;
|
||||
import org.l2jmobius.gameserver.communitybbs.Manager.TopicBBSManager;
|
||||
|
||||
@ -121,7 +122,7 @@ public class Forum
|
||||
{
|
||||
while (rs.next())
|
||||
{
|
||||
final Topic t = new Topic(Topic.ConstructorType.RESTORE, rs.getInt("topic_id"), rs.getInt("topic_forum_id"), rs.getString("topic_name"), rs.getLong("topic_date"), rs.getString("topic_ownername"), rs.getInt("topic_ownerid"), rs.getInt("topic_type"), rs.getInt("topic_reply"));
|
||||
final Topic t = new Topic(TopicConstructorType.RESTORE, rs.getInt("topic_id"), rs.getInt("topic_forum_id"), rs.getString("topic_name"), rs.getLong("topic_date"), rs.getString("topic_ownername"), rs.getInt("topic_ownerid"), rs.getInt("topic_type"), rs.getInt("topic_reply"));
|
||||
_topic.put(t.getID(), t);
|
||||
if (t.getID() > TopicBBSManager.getInstance().getMaxID(this))
|
||||
{
|
||||
|
@ -22,6 +22,7 @@ import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.database.DatabaseFactory;
|
||||
import org.l2jmobius.gameserver.communitybbs.TopicConstructorType;
|
||||
import org.l2jmobius.gameserver.communitybbs.Manager.TopicBBSManager;
|
||||
|
||||
public class Topic
|
||||
@ -51,7 +52,7 @@ public class Topic
|
||||
* @param type
|
||||
* @param cReply
|
||||
*/
|
||||
public Topic(ConstructorType ct, int id, int fid, String name, long date, String oname, int oid, int type, int cReply)
|
||||
public Topic(TopicConstructorType ct, int id, int fid, String name, long date, String oname, int oid, int type, int cReply)
|
||||
{
|
||||
_id = id;
|
||||
_forumId = fid;
|
||||
@ -63,7 +64,7 @@ public class Topic
|
||||
_cReply = cReply;
|
||||
TopicBBSManager.getInstance().addTopic(this);
|
||||
|
||||
if (ct == ConstructorType.CREATE)
|
||||
if (ct == TopicConstructorType.CREATE)
|
||||
{
|
||||
insertindb();
|
||||
}
|
||||
@ -90,12 +91,6 @@ public class Topic
|
||||
}
|
||||
}
|
||||
|
||||
public enum ConstructorType
|
||||
{
|
||||
RESTORE,
|
||||
CREATE
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the topic Id
|
||||
*/
|
||||
|
@ -24,6 +24,7 @@ import java.util.Map;
|
||||
import java.util.StringTokenizer;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
import org.l2jmobius.gameserver.communitybbs.TopicConstructorType;
|
||||
import org.l2jmobius.gameserver.communitybbs.BB.Forum;
|
||||
import org.l2jmobius.gameserver.communitybbs.BB.Post;
|
||||
import org.l2jmobius.gameserver.communitybbs.BB.Topic;
|
||||
@ -87,7 +88,7 @@ public class TopicBBSManager extends BaseBBSManager
|
||||
else
|
||||
{
|
||||
f.vload();
|
||||
final Topic t = new Topic(Topic.ConstructorType.CREATE, getInstance().getMaxID(f) + 1, Integer.parseInt(ar2), ar5, Calendar.getInstance().getTimeInMillis(), player.getName(), player.getObjectId(), Topic.MEMO, 0);
|
||||
final Topic t = new Topic(TopicConstructorType.CREATE, getInstance().getMaxID(f) + 1, Integer.parseInt(ar2), ar5, Calendar.getInstance().getTimeInMillis(), player.getName(), player.getObjectId(), Topic.MEMO, 0);
|
||||
f.addTopic(t);
|
||||
getInstance().setMaxID(t.getID(), f);
|
||||
final Post p = new Post(player.getName(), player.getObjectId(), Calendar.getInstance().getTimeInMillis(), t.getID(), f.getID(), ar4);
|
||||
|
@ -0,0 +1,23 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.communitybbs;
|
||||
|
||||
public enum TopicConstructorType
|
||||
{
|
||||
RESTORE,
|
||||
CREATE
|
||||
}
|
@ -29,8 +29,8 @@ import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.database.DatabaseFactory;
|
||||
import org.l2jmobius.gameserver.enums.CrestType;
|
||||
import org.l2jmobius.gameserver.model.Crest;
|
||||
import org.l2jmobius.gameserver.model.Crest.CrestType;
|
||||
import org.l2jmobius.gameserver.model.clan.Clan;
|
||||
|
||||
/**
|
||||
|
@ -0,0 +1,48 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.enums;
|
||||
|
||||
public enum CrestType
|
||||
{
|
||||
PLEDGE(1),
|
||||
PLEDGE_LARGE(2),
|
||||
ALLY(3);
|
||||
|
||||
private final int _id;
|
||||
|
||||
CrestType(int id)
|
||||
{
|
||||
_id = id;
|
||||
}
|
||||
|
||||
public int getId()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static CrestType getById(int id)
|
||||
{
|
||||
for (CrestType crestType : values())
|
||||
{
|
||||
if (crestType.getId() == id)
|
||||
{
|
||||
return crestType;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
@ -0,0 +1,51 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.enums;
|
||||
|
||||
import org.l2jmobius.gameserver.model.interfaces.IIdentifiable;
|
||||
|
||||
public enum ExBrProductReplyType implements IIdentifiable
|
||||
{
|
||||
SUCCESS(1),
|
||||
LACK_OF_POINT(-1),
|
||||
INVALID_PRODUCT(-2),
|
||||
USER_CANCEL(-3),
|
||||
INVENTROY_OVERFLOW(-4),
|
||||
CLOSED_PRODUCT(-5),
|
||||
SERVER_ERROR(-6),
|
||||
BEFORE_SALE_DATE(-7),
|
||||
AFTER_SALE_DATE(-8),
|
||||
INVALID_USER(-9),
|
||||
INVALID_ITEM(-10),
|
||||
INVALID_USER_STATE(-11),
|
||||
NOT_DAY_OF_WEEK(-12),
|
||||
NOT_TIME_OF_DAY(-13),
|
||||
SOLD_OUT(-14);
|
||||
|
||||
private final int _id;
|
||||
|
||||
ExBrProductReplyType(int id)
|
||||
{
|
||||
_id = id;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getId()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.enums;
|
||||
|
||||
public enum FishingEndReason
|
||||
{
|
||||
LOSE(0),
|
||||
WIN(1),
|
||||
STOP(2);
|
||||
|
||||
private final int _reason;
|
||||
|
||||
FishingEndReason(int reason)
|
||||
{
|
||||
_reason = reason;
|
||||
}
|
||||
|
||||
public int getReason()
|
||||
{
|
||||
return _reason;
|
||||
}
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.enums;
|
||||
|
||||
public enum FishingEndType
|
||||
{
|
||||
PLAYER_STOP,
|
||||
PLAYER_CANCEL,
|
||||
ERROR;
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.enums;
|
||||
|
||||
public enum FlyType
|
||||
{
|
||||
THROW_UP,
|
||||
THROW_HORIZONTAL,
|
||||
DUMMY,
|
||||
CHARGE,
|
||||
PUSH_HORIZONTAL,
|
||||
JUMP_EFFECTED,
|
||||
NOT_USED,
|
||||
PUSH_DOWN_HORIZONTAL,
|
||||
WARP_BACK,
|
||||
WARP_FORWARD
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.enums;
|
||||
|
||||
/**
|
||||
* The message type send to the party members.
|
||||
*/
|
||||
public enum PartyMessageType
|
||||
{
|
||||
EXPELLED,
|
||||
LEFT,
|
||||
NONE,
|
||||
DISCONNECTED
|
||||
}
|
@ -14,7 +14,7 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model;
|
||||
package org.l2jmobius.gameserver.enums;
|
||||
|
||||
/**
|
||||
* @author UnAfraid
|
@ -17,6 +17,7 @@
|
||||
package org.l2jmobius.gameserver.model;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.gameserver.enums.CrestType;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.interfaces.IIdentifiable;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.AllyCrest;
|
||||
@ -28,37 +29,6 @@ import org.l2jmobius.gameserver.network.serverpackets.PledgeCrest;
|
||||
*/
|
||||
public class Crest implements IIdentifiable
|
||||
{
|
||||
public enum CrestType
|
||||
{
|
||||
PLEDGE(1),
|
||||
PLEDGE_LARGE(2),
|
||||
ALLY(3);
|
||||
|
||||
private final int _id;
|
||||
|
||||
CrestType(int id)
|
||||
{
|
||||
_id = id;
|
||||
}
|
||||
|
||||
public int getId()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static CrestType getById(int id)
|
||||
{
|
||||
for (CrestType crestType : values())
|
||||
{
|
||||
if (crestType.getId() == id)
|
||||
{
|
||||
return crestType;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
private final int _id;
|
||||
private final byte[] _data;
|
||||
private final CrestType _type;
|
||||
|
@ -29,8 +29,8 @@ import org.l2jmobius.commons.threads.ThreadPool;
|
||||
import org.l2jmobius.commons.util.Chronos;
|
||||
import org.l2jmobius.commons.util.Rnd;
|
||||
import org.l2jmobius.gameserver.data.xml.SkillData;
|
||||
import org.l2jmobius.gameserver.enums.PartyMessageType;
|
||||
import org.l2jmobius.gameserver.instancemanager.CursedWeaponsManager;
|
||||
import org.l2jmobius.gameserver.model.Party.MessageType;
|
||||
import org.l2jmobius.gameserver.model.actor.Attackable;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
@ -419,7 +419,7 @@ public class CursedWeapon implements INamable
|
||||
_player.setPkKills(0);
|
||||
if (_player.isInParty())
|
||||
{
|
||||
_player.getParty().removePartyMember(_player, MessageType.EXPELLED);
|
||||
_player.getParty().removePartyMember(_player, PartyMessageType.EXPELLED);
|
||||
}
|
||||
|
||||
// Disable All Skills
|
||||
|
@ -34,6 +34,7 @@ import org.l2jmobius.commons.threads.ThreadPool;
|
||||
import org.l2jmobius.commons.util.Rnd;
|
||||
import org.l2jmobius.gameserver.data.ItemTable;
|
||||
import org.l2jmobius.gameserver.enums.PartyDistributionType;
|
||||
import org.l2jmobius.gameserver.enums.PartyMessageType;
|
||||
import org.l2jmobius.gameserver.enums.StatusUpdateType;
|
||||
import org.l2jmobius.gameserver.instancemanager.DuelManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.PcCafePointsManager;
|
||||
@ -108,17 +109,6 @@ public class Party extends AbstractPlayerGroup
|
||||
2667
|
||||
};
|
||||
|
||||
/**
|
||||
* The message type send to the party members.
|
||||
*/
|
||||
public enum MessageType
|
||||
{
|
||||
EXPELLED,
|
||||
LEFT,
|
||||
NONE,
|
||||
DISCONNECTED
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct a new Party object with a single member - the leader.
|
||||
* @param leader the leader of this party
|
||||
@ -501,9 +491,9 @@ public class Party extends AbstractPlayerGroup
|
||||
/**
|
||||
* Removes a party member using its name.
|
||||
* @param name player the player to be removed from the party.
|
||||
* @param type the message type {@link MessageType}.
|
||||
* @param type the message type {@link PartyMessageType}.
|
||||
*/
|
||||
public void removePartyMember(String name, MessageType type)
|
||||
public void removePartyMember(String name, PartyMessageType type)
|
||||
{
|
||||
removePartyMember(getPlayerByName(name), type);
|
||||
}
|
||||
@ -511,14 +501,14 @@ public class Party extends AbstractPlayerGroup
|
||||
/**
|
||||
* Removes a party member instance.
|
||||
* @param player the player to be removed from the party.
|
||||
* @param type the message type {@link MessageType}.
|
||||
* @param type the message type {@link PartyMessageType}.
|
||||
*/
|
||||
public void removePartyMember(Player player, MessageType type)
|
||||
public void removePartyMember(Player player, PartyMessageType type)
|
||||
{
|
||||
if (_members.contains(player))
|
||||
{
|
||||
final boolean isLeader = isLeader(player);
|
||||
if (!_disbanding && ((_members.size() == 2) || (isLeader && !Config.ALT_LEAVE_PARTY_LEADER && (type != MessageType.DISCONNECTED))))
|
||||
if (!_disbanding && ((_members.size() == 2) || (isLeader && !Config.ALT_LEAVE_PARTY_LEADER && (type != PartyMessageType.DISCONNECTED))))
|
||||
{
|
||||
disbandParty();
|
||||
return;
|
||||
@ -550,14 +540,14 @@ public class Party extends AbstractPlayerGroup
|
||||
}
|
||||
|
||||
SystemMessage msg;
|
||||
if (type == MessageType.EXPELLED)
|
||||
if (type == PartyMessageType.EXPELLED)
|
||||
{
|
||||
player.sendPacket(SystemMessageId.YOU_HAVE_BEEN_EXPELLED_FROM_THE_PARTY);
|
||||
msg = new SystemMessage(SystemMessageId.C1_WAS_EXPELLED_FROM_THE_PARTY);
|
||||
msg.addString(player.getName());
|
||||
broadcastPacket(msg);
|
||||
}
|
||||
else if ((type == MessageType.LEFT) || (type == MessageType.DISCONNECTED))
|
||||
else if ((type == PartyMessageType.LEFT) || (type == PartyMessageType.DISCONNECTED))
|
||||
{
|
||||
player.sendPacket(SystemMessageId.YOU_HAVE_WITHDRAWN_FROM_THE_PARTY);
|
||||
msg = new SystemMessage(SystemMessageId.C1_HAS_LEFT_THE_PARTY);
|
||||
@ -583,7 +573,7 @@ public class Party extends AbstractPlayerGroup
|
||||
{
|
||||
player.sendPacket(ExCloseMPCC.STATIC_PACKET);
|
||||
}
|
||||
if (isLeader && (_members.size() > 1) && (Config.ALT_LEAVE_PARTY_LEADER || (type == MessageType.DISCONNECTED)))
|
||||
if (isLeader && (_members.size() > 1) && (Config.ALT_LEAVE_PARTY_LEADER || (type == PartyMessageType.DISCONNECTED)))
|
||||
{
|
||||
msg = new SystemMessage(SystemMessageId.C1_HAS_BECOME_THE_PARTY_LEADER);
|
||||
msg.addString(getLeader().getName());
|
||||
@ -644,7 +634,7 @@ public class Party extends AbstractPlayerGroup
|
||||
{
|
||||
if (member != null)
|
||||
{
|
||||
removePartyMember(member, MessageType.NONE);
|
||||
removePartyMember(member, PartyMessageType.NONE);
|
||||
}
|
||||
}
|
||||
World.getInstance().decrementParty();
|
||||
|
@ -20,6 +20,7 @@ import java.util.Map;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
import org.l2jmobius.gameserver.enums.InstanceType;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.handler.ActionHandler;
|
||||
import org.l2jmobius.gameserver.handler.ActionShiftHandler;
|
||||
import org.l2jmobius.gameserver.handler.IActionHandler;
|
||||
|
@ -57,6 +57,7 @@ import org.l2jmobius.gameserver.enums.BasicProperty;
|
||||
import org.l2jmobius.gameserver.enums.CategoryType;
|
||||
import org.l2jmobius.gameserver.enums.InstanceType;
|
||||
import org.l2jmobius.gameserver.enums.ItemSkillType;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.enums.Race;
|
||||
import org.l2jmobius.gameserver.enums.ShotType;
|
||||
import org.l2jmobius.gameserver.enums.SkillFinishType;
|
||||
@ -74,7 +75,6 @@ import org.l2jmobius.gameserver.model.EffectList;
|
||||
import org.l2jmobius.gameserver.model.Hit;
|
||||
import org.l2jmobius.gameserver.model.Location;
|
||||
import org.l2jmobius.gameserver.model.Party;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.Spawn;
|
||||
import org.l2jmobius.gameserver.model.TimeStamp;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
|
@ -94,8 +94,10 @@ import org.l2jmobius.gameserver.enums.ItemLocation;
|
||||
import org.l2jmobius.gameserver.enums.MountType;
|
||||
import org.l2jmobius.gameserver.enums.NextActionType;
|
||||
import org.l2jmobius.gameserver.enums.PartyDistributionType;
|
||||
import org.l2jmobius.gameserver.enums.PartyMessageType;
|
||||
import org.l2jmobius.gameserver.enums.PartySmallWindowUpdateType;
|
||||
import org.l2jmobius.gameserver.enums.PlayerAction;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.enums.PrivateStoreType;
|
||||
import org.l2jmobius.gameserver.enums.Race;
|
||||
import org.l2jmobius.gameserver.enums.Sex;
|
||||
@ -138,10 +140,8 @@ import org.l2jmobius.gameserver.model.Macro;
|
||||
import org.l2jmobius.gameserver.model.MacroList;
|
||||
import org.l2jmobius.gameserver.model.ManufactureItem;
|
||||
import org.l2jmobius.gameserver.model.Party;
|
||||
import org.l2jmobius.gameserver.model.Party.MessageType;
|
||||
import org.l2jmobius.gameserver.model.PetData;
|
||||
import org.l2jmobius.gameserver.model.PetLevelData;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.PremiumItem;
|
||||
import org.l2jmobius.gameserver.model.Radar;
|
||||
import org.l2jmobius.gameserver.model.RecipeList;
|
||||
@ -6228,7 +6228,7 @@ public class Player extends Playable
|
||||
{
|
||||
if (isInParty())
|
||||
{
|
||||
_party.removePartyMember(this, MessageType.DISCONNECTED);
|
||||
_party.removePartyMember(this, PartyMessageType.DISCONNECTED);
|
||||
_party = null;
|
||||
}
|
||||
}
|
||||
@ -9041,7 +9041,7 @@ public class Player extends Playable
|
||||
|
||||
if (_party != null)
|
||||
{
|
||||
_party.removePartyMember(this, MessageType.EXPELLED);
|
||||
_party.removePartyMember(this, PartyMessageType.EXPELLED);
|
||||
}
|
||||
|
||||
_olympiadGameId = id;
|
||||
|
@ -22,8 +22,8 @@ import java.util.logging.Level;
|
||||
import org.l2jmobius.commons.threads.ThreadPool;
|
||||
import org.l2jmobius.gameserver.data.xml.SkillData;
|
||||
import org.l2jmobius.gameserver.enums.InstanceType;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.instancemanager.ZoneManager;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
|
@ -27,25 +27,14 @@ import org.l2jmobius.gameserver.taskmanager.GameTimeTaskManager;
|
||||
*/
|
||||
public class ConditionGameTime extends Condition
|
||||
{
|
||||
/**
|
||||
* The Enum CheckGameTime.
|
||||
*/
|
||||
public enum CheckGameTime
|
||||
{
|
||||
NIGHT
|
||||
}
|
||||
|
||||
private final CheckGameTime _check;
|
||||
private final boolean _required;
|
||||
|
||||
/**
|
||||
* Instantiates a new condition game time.
|
||||
* @param check the check
|
||||
* @param required the required
|
||||
*/
|
||||
public ConditionGameTime(CheckGameTime check, boolean required)
|
||||
public ConditionGameTime(boolean required)
|
||||
{
|
||||
_check = check;
|
||||
_required = required;
|
||||
}
|
||||
|
||||
@ -56,13 +45,6 @@ public class ConditionGameTime extends Condition
|
||||
@Override
|
||||
public boolean testImpl(Creature effector, Creature effected, Skill skill, ItemTemplate item)
|
||||
{
|
||||
switch (_check)
|
||||
{
|
||||
case NIGHT:
|
||||
{
|
||||
return GameTimeTaskManager.getInstance().isNight() == _required;
|
||||
}
|
||||
}
|
||||
return !_required;
|
||||
return GameTimeTaskManager.getInstance().isNight() == _required;
|
||||
}
|
||||
}
|
||||
|
@ -16,10 +16,10 @@
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.events.impl.creature.player;
|
||||
|
||||
import org.l2jmobius.gameserver.enums.FishingEndReason;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.events.EventType;
|
||||
import org.l2jmobius.gameserver.model.events.impl.IBaseEvent;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.fishing.ExFishingEnd.FishingEndReason;
|
||||
|
||||
/**
|
||||
* @author UnAfraid
|
||||
|
@ -23,11 +23,13 @@ import org.l2jmobius.Config;
|
||||
import org.l2jmobius.commons.threads.ThreadPool;
|
||||
import org.l2jmobius.commons.util.Rnd;
|
||||
import org.l2jmobius.gameserver.data.xml.FishingData;
|
||||
import org.l2jmobius.gameserver.enums.FishingEndReason;
|
||||
import org.l2jmobius.gameserver.enums.FishingEndType;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.enums.ShotType;
|
||||
import org.l2jmobius.gameserver.geoengine.GeoEngine;
|
||||
import org.l2jmobius.gameserver.instancemanager.ZoneManager;
|
||||
import org.l2jmobius.gameserver.model.Location;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.events.EventDispatcher;
|
||||
import org.l2jmobius.gameserver.model.events.impl.creature.player.OnPlayerFishing;
|
||||
@ -45,8 +47,6 @@ import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.PlaySound;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.fishing.ExFishingEnd;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.fishing.ExFishingEnd.FishingEndReason;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.fishing.ExFishingEnd.FishingEndType;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.fishing.ExFishingStart;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.fishing.ExUserInfoFishing;
|
||||
import org.l2jmobius.gameserver.util.Util;
|
||||
|
@ -32,10 +32,10 @@ import org.l2jmobius.gameserver.enums.GroupType;
|
||||
import org.l2jmobius.gameserver.enums.InstanceReenterType;
|
||||
import org.l2jmobius.gameserver.enums.InstanceRemoveBuffType;
|
||||
import org.l2jmobius.gameserver.enums.InstanceTeleportType;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.instancemanager.InstanceManager;
|
||||
import org.l2jmobius.gameserver.model.AbstractPlayerGroup;
|
||||
import org.l2jmobius.gameserver.model.Location;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||
import org.l2jmobius.gameserver.model.actor.Playable;
|
||||
|
@ -32,8 +32,8 @@ import org.l2jmobius.gameserver.data.ItemTable;
|
||||
import org.l2jmobius.gameserver.enums.AttributeType;
|
||||
import org.l2jmobius.gameserver.enums.ItemGrade;
|
||||
import org.l2jmobius.gameserver.enums.ItemSkillType;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.ExtractableProduct;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.WorldObject;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
|
@ -40,10 +40,10 @@ import org.l2jmobius.gameserver.data.xml.AppearanceItemData;
|
||||
import org.l2jmobius.gameserver.data.xml.ArmorSetData;
|
||||
import org.l2jmobius.gameserver.enums.ItemLocation;
|
||||
import org.l2jmobius.gameserver.enums.ItemSkillType;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.enums.PrivateStoreType;
|
||||
import org.l2jmobius.gameserver.enums.SkillFinishType;
|
||||
import org.l2jmobius.gameserver.model.ArmorSet;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.VariationInstance;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
|
@ -23,12 +23,12 @@ import java.util.logging.Logger;
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.commons.util.Chronos;
|
||||
import org.l2jmobius.gameserver.ai.CtrlIntention;
|
||||
import org.l2jmobius.gameserver.enums.PartyMessageType;
|
||||
import org.l2jmobius.gameserver.instancemanager.AntiFeedManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.CastleManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.FortManager;
|
||||
import org.l2jmobius.gameserver.model.Location;
|
||||
import org.l2jmobius.gameserver.model.Party;
|
||||
import org.l2jmobius.gameserver.model.Party.MessageType;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.actor.Summon;
|
||||
@ -258,7 +258,7 @@ public abstract class AbstractOlympiadGame
|
||||
final Party party = player.getParty();
|
||||
if (party != null)
|
||||
{
|
||||
party.removePartyMember(player, MessageType.EXPELLED);
|
||||
party.removePartyMember(player, PartyMessageType.EXPELLED);
|
||||
}
|
||||
}
|
||||
// Remove Agathion
|
||||
|
@ -0,0 +1,32 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.olympiad;
|
||||
|
||||
enum OlympiadGameState
|
||||
{
|
||||
BEGIN,
|
||||
TELEPORT_TO_ARENA,
|
||||
GAME_STARTED,
|
||||
BATTLE_COUNTDOWN_FIRST,
|
||||
BATTLE_COUNTDOWN_SECOND,
|
||||
BATTLE_STARTED,
|
||||
BATTLE_IN_PROGRESS,
|
||||
GAME_STOPPED,
|
||||
TELEPORT_TO_TOWN,
|
||||
CLEANUP,
|
||||
IDLE
|
||||
}
|
@ -94,25 +94,10 @@ public class OlympiadGameTask implements Runnable
|
||||
|
||||
private final OlympiadStadium _stadium;
|
||||
private AbstractOlympiadGame _game;
|
||||
private GameState _state = GameState.IDLE;
|
||||
private OlympiadGameState _state = OlympiadGameState.IDLE;
|
||||
private boolean _needAnnounce = false;
|
||||
private int _countDown = 0;
|
||||
|
||||
private enum GameState
|
||||
{
|
||||
BEGIN,
|
||||
TELEPORT_TO_ARENA,
|
||||
GAME_STARTED,
|
||||
BATTLE_COUNTDOWN_FIRST,
|
||||
BATTLE_COUNTDOWN_SECOND,
|
||||
BATTLE_STARTED,
|
||||
BATTLE_IN_PROGRESS,
|
||||
GAME_STOPPED,
|
||||
TELEPORT_TO_TOWN,
|
||||
CLEANUP,
|
||||
IDLE
|
||||
}
|
||||
|
||||
public OlympiadGameTask(OlympiadStadium stadium)
|
||||
{
|
||||
_stadium = stadium;
|
||||
@ -121,22 +106,22 @@ public class OlympiadGameTask implements Runnable
|
||||
|
||||
public boolean isRunning()
|
||||
{
|
||||
return _state != GameState.IDLE;
|
||||
return _state != OlympiadGameState.IDLE;
|
||||
}
|
||||
|
||||
public boolean isGameStarted()
|
||||
{
|
||||
return (_state.ordinal() >= GameState.GAME_STARTED.ordinal()) && (_state.ordinal() <= GameState.CLEANUP.ordinal());
|
||||
return (_state.ordinal() >= OlympiadGameState.GAME_STARTED.ordinal()) && (_state.ordinal() <= OlympiadGameState.CLEANUP.ordinal());
|
||||
}
|
||||
|
||||
public boolean isBattleStarted()
|
||||
{
|
||||
return _state == GameState.BATTLE_IN_PROGRESS;
|
||||
return _state == OlympiadGameState.BATTLE_IN_PROGRESS;
|
||||
}
|
||||
|
||||
public boolean isBattleFinished()
|
||||
{
|
||||
return _state == GameState.TELEPORT_TO_TOWN;
|
||||
return _state == OlympiadGameState.TELEPORT_TO_TOWN;
|
||||
}
|
||||
|
||||
public boolean needAnnounce()
|
||||
@ -161,14 +146,14 @@ public class OlympiadGameTask implements Runnable
|
||||
|
||||
public void attachGame(AbstractOlympiadGame game)
|
||||
{
|
||||
if ((game != null) && (_state != GameState.IDLE))
|
||||
if ((game != null) && (_state != OlympiadGameState.IDLE))
|
||||
{
|
||||
LOGGER.warning("Attempt to overwrite non-finished game in state " + _state);
|
||||
return;
|
||||
}
|
||||
|
||||
_game = game;
|
||||
_state = GameState.BEGIN;
|
||||
_state = OlympiadGameState.BEGIN;
|
||||
_needAnnounce = false;
|
||||
ThreadPool.execute(this);
|
||||
}
|
||||
@ -184,7 +169,7 @@ public class OlympiadGameTask implements Runnable
|
||||
// Game created
|
||||
case BEGIN:
|
||||
{
|
||||
_state = GameState.TELEPORT_TO_ARENA;
|
||||
_state = OlympiadGameState.TELEPORT_TO_ARENA;
|
||||
_countDown = Config.ALT_OLY_WAIT_TIME;
|
||||
break;
|
||||
}
|
||||
@ -206,7 +191,7 @@ public class OlympiadGameTask implements Runnable
|
||||
delay = getDelay(TELEPORT_TO_ARENA_TIMES);
|
||||
if (_countDown <= 0)
|
||||
{
|
||||
_state = GameState.GAME_STARTED;
|
||||
_state = OlympiadGameState.GAME_STARTED;
|
||||
}
|
||||
break;
|
||||
}
|
||||
@ -215,11 +200,11 @@ public class OlympiadGameTask implements Runnable
|
||||
{
|
||||
if (!startGame())
|
||||
{
|
||||
_state = GameState.GAME_STOPPED;
|
||||
_state = OlympiadGameState.GAME_STOPPED;
|
||||
break;
|
||||
}
|
||||
|
||||
_state = GameState.BATTLE_COUNTDOWN_FIRST;
|
||||
_state = OlympiadGameState.BATTLE_COUNTDOWN_FIRST;
|
||||
_countDown = BATTLE_START_TIME_FIRST[0];
|
||||
_stadium.updateZoneInfoForObservers(); // TODO lion temp hack for remove old info from client about prevoius match
|
||||
delay = 5;
|
||||
@ -249,7 +234,7 @@ public class OlympiadGameTask implements Runnable
|
||||
_game.resetDamage();
|
||||
_stadium.openDoors();
|
||||
|
||||
_state = GameState.BATTLE_COUNTDOWN_SECOND;
|
||||
_state = OlympiadGameState.BATTLE_COUNTDOWN_SECOND;
|
||||
_countDown = BATTLE_START_TIME_SECOND[0];
|
||||
delay = getDelay(BATTLE_START_TIME_SECOND);
|
||||
}
|
||||
@ -268,7 +253,7 @@ public class OlympiadGameTask implements Runnable
|
||||
delay = getDelay(BATTLE_START_TIME_SECOND);
|
||||
if (_countDown <= 0)
|
||||
{
|
||||
_state = GameState.BATTLE_STARTED;
|
||||
_state = OlympiadGameState.BATTLE_STARTED;
|
||||
_game.removePlayersInvul();
|
||||
}
|
||||
break;
|
||||
@ -277,10 +262,10 @@ public class OlympiadGameTask implements Runnable
|
||||
case BATTLE_STARTED:
|
||||
{
|
||||
_countDown = 0;
|
||||
_state = GameState.BATTLE_IN_PROGRESS; // set state first, used in zone update
|
||||
_state = OlympiadGameState.BATTLE_IN_PROGRESS; // set state first, used in zone update
|
||||
if (!startBattle())
|
||||
{
|
||||
_state = GameState.GAME_STOPPED;
|
||||
_state = OlympiadGameState.GAME_STOPPED;
|
||||
}
|
||||
break;
|
||||
}
|
||||
@ -302,14 +287,14 @@ public class OlympiadGameTask implements Runnable
|
||||
|
||||
if (checkBattle() || (_countDown > Config.ALT_OLY_BATTLE))
|
||||
{
|
||||
_state = GameState.GAME_STOPPED;
|
||||
_state = OlympiadGameState.GAME_STOPPED;
|
||||
}
|
||||
break;
|
||||
}
|
||||
// End of the battle
|
||||
case GAME_STOPPED:
|
||||
{
|
||||
_state = GameState.TELEPORT_TO_TOWN;
|
||||
_state = OlympiadGameState.TELEPORT_TO_TOWN;
|
||||
_countDown = TELEPORT_TO_TOWN_TIMES[0];
|
||||
stopGame();
|
||||
delay = getDelay(TELEPORT_TO_TOWN_TIMES);
|
||||
@ -328,7 +313,7 @@ public class OlympiadGameTask implements Runnable
|
||||
delay = getDelay(TELEPORT_TO_TOWN_TIMES);
|
||||
if (_countDown <= 0)
|
||||
{
|
||||
_state = GameState.CLEANUP;
|
||||
_state = OlympiadGameState.CLEANUP;
|
||||
}
|
||||
break;
|
||||
}
|
||||
@ -336,7 +321,7 @@ public class OlympiadGameTask implements Runnable
|
||||
case CLEANUP:
|
||||
{
|
||||
cleanupGame();
|
||||
_state = GameState.IDLE;
|
||||
_state = OlympiadGameState.IDLE;
|
||||
_game = null;
|
||||
return;
|
||||
}
|
||||
@ -353,14 +338,14 @@ public class OlympiadGameTask implements Runnable
|
||||
case IDLE:
|
||||
{
|
||||
LOGGER.warning("Unable to return players back in town, exception: " + e.getMessage());
|
||||
_state = GameState.IDLE;
|
||||
_state = OlympiadGameState.IDLE;
|
||||
_game = null;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
LOGGER.log(Level.WARNING, "Exception in " + _state + ", trying to port players back: " + e.getMessage(), e);
|
||||
_state = GameState.GAME_STOPPED;
|
||||
_state = OlympiadGameState.GAME_STOPPED;
|
||||
ThreadPool.schedule(this, 1000);
|
||||
}
|
||||
}
|
||||
|
@ -36,13 +36,13 @@ import org.l2jmobius.gameserver.data.xml.CastleData;
|
||||
import org.l2jmobius.gameserver.data.xml.DoorData;
|
||||
import org.l2jmobius.gameserver.enums.CastleSide;
|
||||
import org.l2jmobius.gameserver.enums.MountType;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.enums.TaxType;
|
||||
import org.l2jmobius.gameserver.instancemanager.CastleManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.CastleManorManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.FortManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.SiegeManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.ZoneManager;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.Spawn;
|
||||
import org.l2jmobius.gameserver.model.TowerSpawn;
|
||||
import org.l2jmobius.gameserver.model.WorldObject;
|
||||
|
@ -53,7 +53,6 @@ import org.l2jmobius.gameserver.model.actor.instance.StaticObject;
|
||||
import org.l2jmobius.gameserver.model.clan.Clan;
|
||||
import org.l2jmobius.gameserver.model.itemcontainer.Inventory;
|
||||
import org.l2jmobius.gameserver.model.residences.AbstractResidence;
|
||||
import org.l2jmobius.gameserver.model.siege.FortUpdater.UpdaterType;
|
||||
import org.l2jmobius.gameserver.model.zone.type.FortZone;
|
||||
import org.l2jmobius.gameserver.model.zone.type.SiegeZone;
|
||||
import org.l2jmobius.gameserver.network.SystemMessageId;
|
||||
@ -588,15 +587,15 @@ public class Fort extends AbstractResidence
|
||||
initial = (Config.FS_UPDATE_FRQ * 60000) - initial;
|
||||
if ((Config.FS_MAX_OWN_TIME <= 0) || (getOwnedTime() < (Config.FS_MAX_OWN_TIME * 3600)))
|
||||
{
|
||||
_fortUpdater[0] = ThreadPool.scheduleAtFixedRate(new FortUpdater(this, clan, runCount, UpdaterType.PERIODIC_UPDATE), initial, Config.FS_UPDATE_FRQ * 60000); // Schedule owner tasks to start running
|
||||
_fortUpdater[0] = ThreadPool.scheduleAtFixedRate(new FortUpdater(this, clan, runCount, FortUpdaterType.PERIODIC_UPDATE), initial, Config.FS_UPDATE_FRQ * 60000); // Schedule owner tasks to start running
|
||||
if (Config.FS_MAX_OWN_TIME > 0)
|
||||
{
|
||||
_fortUpdater[1] = ThreadPool.scheduleAtFixedRate(new FortUpdater(this, clan, runCount, UpdaterType.MAX_OWN_TIME), 3600000, 3600000); // Schedule owner tasks to remove owener
|
||||
_fortUpdater[1] = ThreadPool.scheduleAtFixedRate(new FortUpdater(this, clan, runCount, FortUpdaterType.MAX_OWN_TIME), 3600000, 3600000); // Schedule owner tasks to remove owener
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
_fortUpdater[1] = ThreadPool.schedule(new FortUpdater(this, clan, 0, UpdaterType.MAX_OWN_TIME), 60000); // Schedule owner tasks to remove owner
|
||||
_fortUpdater[1] = ThreadPool.schedule(new FortUpdater(this, clan, 0, FortUpdaterType.MAX_OWN_TIME), 60000); // Schedule owner tasks to remove owner
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -822,10 +821,10 @@ public class Fort extends AbstractResidence
|
||||
{
|
||||
_fortUpdater[1].cancel(false);
|
||||
}
|
||||
_fortUpdater[0] = ThreadPool.scheduleAtFixedRate(new FortUpdater(this, clan, 0, UpdaterType.PERIODIC_UPDATE), Config.FS_UPDATE_FRQ * 60000, Config.FS_UPDATE_FRQ * 60000); // Schedule owner tasks to start running
|
||||
_fortUpdater[0] = ThreadPool.scheduleAtFixedRate(new FortUpdater(this, clan, 0, FortUpdaterType.PERIODIC_UPDATE), Config.FS_UPDATE_FRQ * 60000, Config.FS_UPDATE_FRQ * 60000); // Schedule owner tasks to start running
|
||||
if (Config.FS_MAX_OWN_TIME > 0)
|
||||
{
|
||||
_fortUpdater[1] = ThreadPool.scheduleAtFixedRate(new FortUpdater(this, clan, 0, UpdaterType.MAX_OWN_TIME), 3600000, 3600000); // Schedule owner tasks to remove owner
|
||||
_fortUpdater[1] = ThreadPool.scheduleAtFixedRate(new FortUpdater(this, clan, 0, FortUpdaterType.MAX_OWN_TIME), 3600000, 3600000); // Schedule owner tasks to remove owner
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -35,13 +35,13 @@ import org.l2jmobius.commons.threads.ThreadPool;
|
||||
import org.l2jmobius.gameserver.data.sql.ClanTable;
|
||||
import org.l2jmobius.gameserver.enums.ChatType;
|
||||
import org.l2jmobius.gameserver.enums.FortTeleportWhoType;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.enums.SiegeClanType;
|
||||
import org.l2jmobius.gameserver.enums.TeleportWhereType;
|
||||
import org.l2jmobius.gameserver.instancemanager.FortManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.FortSiegeManager;
|
||||
import org.l2jmobius.gameserver.model.CombatFlag;
|
||||
import org.l2jmobius.gameserver.model.FortSiegeSpawn;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.SiegeClan;
|
||||
import org.l2jmobius.gameserver.model.Spawn;
|
||||
import org.l2jmobius.gameserver.model.WorldObject;
|
||||
|
@ -34,15 +34,9 @@ public class FortUpdater implements Runnable
|
||||
private final Clan _clan;
|
||||
private final Fort _fort;
|
||||
private int _runCount;
|
||||
private final UpdaterType _updaterType;
|
||||
private final FortUpdaterType _updaterType;
|
||||
|
||||
public enum UpdaterType
|
||||
{
|
||||
MAX_OWN_TIME, // gives fort back to NPC clan
|
||||
PERIODIC_UPDATE // raise blood oath/supply level
|
||||
}
|
||||
|
||||
public FortUpdater(Fort fort, Clan clan, int runCount, UpdaterType ut)
|
||||
public FortUpdater(Fort fort, Clan clan, int runCount, FortUpdaterType ut)
|
||||
{
|
||||
_fort = fort;
|
||||
_clan = clan;
|
||||
|
@ -0,0 +1,23 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.gameserver.model.siege;
|
||||
|
||||
public enum FortUpdaterType
|
||||
{
|
||||
MAX_OWN_TIME, // gives fort back to NPC clan
|
||||
PERIODIC_UPDATE // raise blood oath/supply level
|
||||
}
|
@ -38,13 +38,13 @@ import org.l2jmobius.commons.util.Chronos;
|
||||
import org.l2jmobius.gameserver.cache.RelationCache;
|
||||
import org.l2jmobius.gameserver.data.sql.ClanTable;
|
||||
import org.l2jmobius.gameserver.data.xml.SiegeScheduleData;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.enums.SiegeClanType;
|
||||
import org.l2jmobius.gameserver.enums.SiegeTeleportWhoType;
|
||||
import org.l2jmobius.gameserver.enums.TeleportWhereType;
|
||||
import org.l2jmobius.gameserver.instancemanager.CastleManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.SiegeGuardManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.SiegeManager;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.SiegeClan;
|
||||
import org.l2jmobius.gameserver.model.SiegeScheduleDate;
|
||||
import org.l2jmobius.gameserver.model.Spawn;
|
||||
|
@ -38,13 +38,13 @@ import org.l2jmobius.gameserver.data.xml.SkillTreeData;
|
||||
import org.l2jmobius.gameserver.enums.AttributeType;
|
||||
import org.l2jmobius.gameserver.enums.BasicProperty;
|
||||
import org.l2jmobius.gameserver.enums.NextActionType;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.enums.ShotType;
|
||||
import org.l2jmobius.gameserver.enums.SkillFinishType;
|
||||
import org.l2jmobius.gameserver.handler.AffectScopeHandler;
|
||||
import org.l2jmobius.gameserver.handler.IAffectScopeHandler;
|
||||
import org.l2jmobius.gameserver.handler.ITargetTypeHandler;
|
||||
import org.l2jmobius.gameserver.handler.TargetHandler;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.WorldObject;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
|
@ -34,13 +34,14 @@ import org.l2jmobius.gameserver.ai.CtrlEvent;
|
||||
import org.l2jmobius.gameserver.ai.CtrlIntention;
|
||||
import org.l2jmobius.gameserver.data.ItemTable;
|
||||
import org.l2jmobius.gameserver.data.xml.ActionData;
|
||||
import org.l2jmobius.gameserver.enums.FlyType;
|
||||
import org.l2jmobius.gameserver.enums.ItemSkillType;
|
||||
import org.l2jmobius.gameserver.enums.NextActionType;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.enums.StatusUpdateType;
|
||||
import org.l2jmobius.gameserver.geoengine.GeoEngine;
|
||||
import org.l2jmobius.gameserver.instancemanager.QuestManager;
|
||||
import org.l2jmobius.gameserver.model.Location;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.WorldObject;
|
||||
import org.l2jmobius.gameserver.model.actor.Attackable;
|
||||
@ -70,7 +71,6 @@ import org.l2jmobius.gameserver.network.SystemMessageId;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.ExRotation;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.FlyToLocation;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.FlyToLocation.FlyType;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.MagicSkillCanceld;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.MagicSkillLaunched;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.MagicSkillUse;
|
||||
|
@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.model.stats;
|
||||
import java.util.OptionalDouble;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.Pet;
|
||||
import org.l2jmobius.gameserver.model.actor.transform.TransformType;
|
||||
|
@ -20,7 +20,7 @@ import java.lang.ref.WeakReference;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.commons.threads.ThreadPool;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.fishing.Fishing;
|
||||
|
@ -20,10 +20,10 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.l2jmobius.commons.threads.ThreadPool;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.enums.TeleportWhereType;
|
||||
import org.l2jmobius.gameserver.instancemanager.ZoneManager;
|
||||
import org.l2jmobius.gameserver.model.Location;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.Spawn;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
|
@ -18,7 +18,7 @@ package org.l2jmobius.gameserver.network.clientpackets;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.WorldObject;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
|
@ -17,8 +17,8 @@
|
||||
package org.l2jmobius.gameserver.network.clientpackets;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.enums.PrivateStoreType;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.WorldObject;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
|
@ -32,6 +32,7 @@ import org.l2jmobius.gameserver.data.xml.BeautyShopData;
|
||||
import org.l2jmobius.gameserver.data.xml.ClanHallData;
|
||||
import org.l2jmobius.gameserver.data.xml.SkillTreeData;
|
||||
import org.l2jmobius.gameserver.enums.ChatType;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.enums.Race;
|
||||
import org.l2jmobius.gameserver.enums.SubclassInfoType;
|
||||
import org.l2jmobius.gameserver.enums.TeleportWhereType;
|
||||
@ -45,7 +46,6 @@ import org.l2jmobius.gameserver.instancemanager.PetitionManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.PunishmentManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.ServerRestartManager;
|
||||
import org.l2jmobius.gameserver.instancemanager.SiegeManager;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.WorldObject;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
|
@ -24,6 +24,7 @@ import org.l2jmobius.commons.util.Chronos;
|
||||
import org.l2jmobius.gameserver.ai.CtrlIntention;
|
||||
import org.l2jmobius.gameserver.data.xml.DoorData;
|
||||
import org.l2jmobius.gameserver.enums.AdminTeleportType;
|
||||
import org.l2jmobius.gameserver.enums.FlyType;
|
||||
import org.l2jmobius.gameserver.enums.SayuneType;
|
||||
import org.l2jmobius.gameserver.model.Location;
|
||||
import org.l2jmobius.gameserver.model.SayuneEntry;
|
||||
@ -35,7 +36,6 @@ import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.SystemMessageId;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.ActionFailed;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.FlyToLocation;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.FlyToLocation.FlyType;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.MagicSkillLaunched;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.MagicSkillUse;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.StopMove;
|
||||
|
@ -18,8 +18,8 @@ package org.l2jmobius.gameserver.network.clientpackets;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.enums.PartyMessageType;
|
||||
import org.l2jmobius.gameserver.model.Party;
|
||||
import org.l2jmobius.gameserver.model.Party.MessageType;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.actor.request.PartyRequest;
|
||||
import org.l2jmobius.gameserver.model.matching.MatchingRoom;
|
||||
@ -101,12 +101,12 @@ public class RequestAnswerJoinParty implements IClientIncomingPacket
|
||||
|
||||
if (party.getMemberCount() == 1)
|
||||
{
|
||||
party.removePartyMember(requestor, MessageType.NONE);
|
||||
party.removePartyMember(requestor, PartyMessageType.NONE);
|
||||
}
|
||||
}
|
||||
else if (party.getMemberCount() == 1)
|
||||
{
|
||||
party.removePartyMember(requestor, MessageType.NONE);
|
||||
party.removePartyMember(requestor, PartyMessageType.NONE);
|
||||
}
|
||||
|
||||
party.setPendingInvitation(false);
|
||||
|
@ -22,10 +22,10 @@ import java.sql.PreparedStatement;
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.commons.database.DatabaseFactory;
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.enums.PrivateStoreType;
|
||||
import org.l2jmobius.gameserver.handler.AdminCommandHandler;
|
||||
import org.l2jmobius.gameserver.instancemanager.CursedWeaponsManager;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.WorldObject;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
|
@ -19,8 +19,8 @@ package org.l2jmobius.gameserver.network.clientpackets;
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.data.xml.AdminData;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.enums.PrivateStoreType;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.holders.SkillUseHolder;
|
||||
import org.l2jmobius.gameserver.model.item.ItemTemplate;
|
||||
|
@ -19,8 +19,8 @@ package org.l2jmobius.gameserver.network.clientpackets;
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.commons.util.Chronos;
|
||||
import org.l2jmobius.gameserver.data.sql.CrestTable;
|
||||
import org.l2jmobius.gameserver.enums.CrestType;
|
||||
import org.l2jmobius.gameserver.model.Crest;
|
||||
import org.l2jmobius.gameserver.model.Crest.CrestType;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.clan.Clan;
|
||||
import org.l2jmobius.gameserver.model.clan.ClanPrivilege;
|
||||
|
@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.network.clientpackets;
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.data.xml.HennaData;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.item.Henna;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
|
@ -17,7 +17,7 @@
|
||||
package org.l2jmobius.gameserver.network.clientpackets;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.Party.MessageType;
|
||||
import org.l2jmobius.gameserver.enums.PartyMessageType;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
|
||||
@ -46,7 +46,7 @@ public class RequestOustPartyMember implements IClientIncomingPacket
|
||||
|
||||
if (player.isInParty() && player.getParty().isLeader(player))
|
||||
{
|
||||
player.getParty().removePartyMember(_name, MessageType.EXPELLED);
|
||||
player.getParty().removePartyMember(_name, PartyMessageType.EXPELLED);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -19,8 +19,8 @@ package org.l2jmobius.gameserver.network.clientpackets;
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.data.sql.ClanTable;
|
||||
import org.l2jmobius.gameserver.data.sql.CrestTable;
|
||||
import org.l2jmobius.gameserver.enums.CrestType;
|
||||
import org.l2jmobius.gameserver.model.Crest;
|
||||
import org.l2jmobius.gameserver.model.Crest.CrestType;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.clan.Clan;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
|
@ -19,8 +19,8 @@ package org.l2jmobius.gameserver.network.clientpackets;
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.commons.util.Chronos;
|
||||
import org.l2jmobius.gameserver.data.sql.CrestTable;
|
||||
import org.l2jmobius.gameserver.enums.CrestType;
|
||||
import org.l2jmobius.gameserver.model.Crest;
|
||||
import org.l2jmobius.gameserver.model.Crest.CrestType;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.clan.Clan;
|
||||
import org.l2jmobius.gameserver.model.clan.ClanPrivilege;
|
||||
|
@ -19,7 +19,7 @@ package org.l2jmobius.gameserver.network.clientpackets;
|
||||
import java.util.List;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.item.EtcItem;
|
||||
import org.l2jmobius.gameserver.model.item.ItemTemplate;
|
||||
|
@ -17,8 +17,8 @@
|
||||
package org.l2jmobius.gameserver.network.clientpackets;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.gameserver.enums.PartyMessageType;
|
||||
import org.l2jmobius.gameserver.model.Party;
|
||||
import org.l2jmobius.gameserver.model.Party.MessageType;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.matching.MatchingRoom;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
@ -46,7 +46,7 @@ public class RequestWithDrawalParty implements IClientIncomingPacket
|
||||
final Party party = player.getParty();
|
||||
if (party != null)
|
||||
{
|
||||
party.removePartyMember(player, MessageType.LEFT);
|
||||
party.removePartyMember(player, PartyMessageType.LEFT);
|
||||
|
||||
final MatchingRoom room = player.getMatchingRoom();
|
||||
if (room != null)
|
||||
|
@ -21,11 +21,11 @@ import java.util.List;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.commons.util.Rnd;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.enums.PrivateStoreType;
|
||||
import org.l2jmobius.gameserver.enums.Race;
|
||||
import org.l2jmobius.gameserver.enums.TryMixCubeResultType;
|
||||
import org.l2jmobius.gameserver.enums.TryMixCubeType;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.holders.AlchemyResult;
|
||||
import org.l2jmobius.gameserver.model.holders.ItemHolder;
|
||||
|
@ -22,6 +22,7 @@ import org.l2jmobius.Config;
|
||||
import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.commons.util.Chronos;
|
||||
import org.l2jmobius.gameserver.data.xml.PrimeShopData;
|
||||
import org.l2jmobius.gameserver.enums.ExBrProductReplyType;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.actor.request.PrimeShopRequest;
|
||||
import org.l2jmobius.gameserver.model.itemcontainer.Inventory;
|
||||
@ -30,7 +31,6 @@ import org.l2jmobius.gameserver.model.primeshop.PrimeShopItem;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.clientpackets.IClientIncomingPacket;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.primeshop.ExBRBuyProduct;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.primeshop.ExBRBuyProduct.ExBrProductReplyType;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.primeshop.ExBRGamePoint;
|
||||
import org.l2jmobius.gameserver.util.Util;
|
||||
|
||||
|
@ -23,6 +23,7 @@ import org.l2jmobius.commons.network.PacketReader;
|
||||
import org.l2jmobius.commons.util.Chronos;
|
||||
import org.l2jmobius.gameserver.data.sql.CharNameTable;
|
||||
import org.l2jmobius.gameserver.data.xml.PrimeShopData;
|
||||
import org.l2jmobius.gameserver.enums.ExBrProductReplyType;
|
||||
import org.l2jmobius.gameserver.enums.MailType;
|
||||
import org.l2jmobius.gameserver.instancemanager.MailManager;
|
||||
import org.l2jmobius.gameserver.model.Message;
|
||||
@ -35,7 +36,6 @@ import org.l2jmobius.gameserver.model.primeshop.PrimeShopItem;
|
||||
import org.l2jmobius.gameserver.network.GameClient;
|
||||
import org.l2jmobius.gameserver.network.clientpackets.IClientIncomingPacket;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.primeshop.ExBRBuyProduct;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.primeshop.ExBRBuyProduct.ExBrProductReplyType;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.primeshop.ExBRGamePoint;
|
||||
import org.l2jmobius.gameserver.util.Util;
|
||||
|
||||
|
@ -17,6 +17,7 @@
|
||||
package org.l2jmobius.gameserver.network.serverpackets;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketWriter;
|
||||
import org.l2jmobius.gameserver.enums.FlyType;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.interfaces.ILocational;
|
||||
import org.l2jmobius.gameserver.network.OutgoingPackets;
|
||||
@ -38,20 +39,6 @@ public class FlyToLocation implements IClientOutgoingPacket
|
||||
private int _flyDelay;
|
||||
private int _animationSpeed;
|
||||
|
||||
public enum FlyType
|
||||
{
|
||||
THROW_UP,
|
||||
THROW_HORIZONTAL,
|
||||
DUMMY,
|
||||
CHARGE,
|
||||
PUSH_HORIZONTAL,
|
||||
JUMP_EFFECTED,
|
||||
NOT_USED,
|
||||
PUSH_DOWN_HORIZONTAL,
|
||||
WARP_BACK,
|
||||
WARP_FORWARD
|
||||
}
|
||||
|
||||
public FlyToLocation(Creature creature, int destX, int destY, int destZ, FlyType type)
|
||||
{
|
||||
_chaObjId = creature.getObjectId();
|
||||
|
@ -20,8 +20,8 @@ import java.util.Collection;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.commons.network.PacketWriter;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.instancemanager.MentorManager;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.model.item.instance.Item;
|
||||
import org.l2jmobius.gameserver.network.OutgoingPackets;
|
||||
|
@ -17,6 +17,7 @@
|
||||
package org.l2jmobius.gameserver.network.serverpackets.fishing;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketWriter;
|
||||
import org.l2jmobius.gameserver.enums.FishingEndReason;
|
||||
import org.l2jmobius.gameserver.model.actor.Player;
|
||||
import org.l2jmobius.gameserver.network.OutgoingPackets;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket;
|
||||
@ -26,32 +27,6 @@ import org.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket;
|
||||
*/
|
||||
public class ExFishingEnd implements IClientOutgoingPacket
|
||||
{
|
||||
public enum FishingEndReason
|
||||
{
|
||||
LOSE(0),
|
||||
WIN(1),
|
||||
STOP(2);
|
||||
|
||||
private final int _reason;
|
||||
|
||||
FishingEndReason(int reason)
|
||||
{
|
||||
_reason = reason;
|
||||
}
|
||||
|
||||
public int getReason()
|
||||
{
|
||||
return _reason;
|
||||
}
|
||||
}
|
||||
|
||||
public enum FishingEndType
|
||||
{
|
||||
PLAYER_STOP,
|
||||
PLAYER_CANCEL,
|
||||
ERROR;
|
||||
}
|
||||
|
||||
private final Player _player;
|
||||
private final FishingEndReason _reason;
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
package org.l2jmobius.gameserver.network.serverpackets.primeshop;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketWriter;
|
||||
import org.l2jmobius.gameserver.model.interfaces.IIdentifiable;
|
||||
import org.l2jmobius.gameserver.enums.ExBrProductReplyType;
|
||||
import org.l2jmobius.gameserver.network.OutgoingPackets;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket;
|
||||
|
||||
@ -26,38 +26,6 @@ import org.l2jmobius.gameserver.network.serverpackets.IClientOutgoingPacket;
|
||||
*/
|
||||
public class ExBRBuyProduct implements IClientOutgoingPacket
|
||||
{
|
||||
public enum ExBrProductReplyType implements IIdentifiable
|
||||
{
|
||||
SUCCESS(1),
|
||||
LACK_OF_POINT(-1),
|
||||
INVALID_PRODUCT(-2),
|
||||
USER_CANCEL(-3),
|
||||
INVENTROY_OVERFLOW(-4),
|
||||
CLOSED_PRODUCT(-5),
|
||||
SERVER_ERROR(-6),
|
||||
BEFORE_SALE_DATE(-7),
|
||||
AFTER_SALE_DATE(-8),
|
||||
INVALID_USER(-9),
|
||||
INVALID_ITEM(-10),
|
||||
INVALID_USER_STATE(-11),
|
||||
NOT_DAY_OF_WEEK(-12),
|
||||
NOT_TIME_OF_DAY(-13),
|
||||
SOLD_OUT(-14);
|
||||
|
||||
private final int _id;
|
||||
|
||||
ExBrProductReplyType(int id)
|
||||
{
|
||||
_id = id;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getId()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
}
|
||||
|
||||
private final int _reply;
|
||||
|
||||
public ExBRBuyProduct(ExBrProductReplyType type)
|
||||
|
@ -45,12 +45,6 @@ import org.l2jmobius.gameserver.model.conditions.ConditionCategoryType;
|
||||
import org.l2jmobius.gameserver.model.conditions.ConditionChangeWeapon;
|
||||
import org.l2jmobius.gameserver.model.conditions.ConditionGameChance;
|
||||
import org.l2jmobius.gameserver.model.conditions.ConditionGameTime;
|
||||
import org.l2jmobius.gameserver.model.conditions.ConditionGameTime.CheckGameTime;
|
||||
import org.l2jmobius.gameserver.model.item.ItemTemplate;
|
||||
import org.l2jmobius.gameserver.model.item.type.ArmorType;
|
||||
import org.l2jmobius.gameserver.model.item.type.WeaponType;
|
||||
import org.l2jmobius.gameserver.model.skill.AbnormalType;
|
||||
import org.l2jmobius.gameserver.model.skill.Skill;
|
||||
import org.l2jmobius.gameserver.model.conditions.ConditionLogicAnd;
|
||||
import org.l2jmobius.gameserver.model.conditions.ConditionLogicNot;
|
||||
import org.l2jmobius.gameserver.model.conditions.ConditionLogicOr;
|
||||
@ -139,6 +133,11 @@ import org.l2jmobius.gameserver.model.conditions.ConditionUsingItemType;
|
||||
import org.l2jmobius.gameserver.model.conditions.ConditionUsingSkill;
|
||||
import org.l2jmobius.gameserver.model.conditions.ConditionUsingSlotType;
|
||||
import org.l2jmobius.gameserver.model.conditions.ConditionWithSkill;
|
||||
import org.l2jmobius.gameserver.model.item.ItemTemplate;
|
||||
import org.l2jmobius.gameserver.model.item.type.ArmorType;
|
||||
import org.l2jmobius.gameserver.model.item.type.WeaponType;
|
||||
import org.l2jmobius.gameserver.model.skill.AbnormalType;
|
||||
import org.l2jmobius.gameserver.model.skill.Skill;
|
||||
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||
import org.l2jmobius.gameserver.model.stats.functions.FuncTemplate;
|
||||
|
||||
@ -1212,7 +1211,7 @@ public abstract class DocumentBase
|
||||
if ("night".equalsIgnoreCase(a.getNodeName()))
|
||||
{
|
||||
final boolean val = Boolean.parseBoolean(a.getNodeValue());
|
||||
cond = joinAnd(cond, new ConditionGameTime(CheckGameTime.NIGHT, val));
|
||||
cond = joinAnd(cond, new ConditionGameTime(val));
|
||||
}
|
||||
if ("chance".equalsIgnoreCase(a.getNodeName()))
|
||||
{
|
||||
|
@ -22,8 +22,8 @@ import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import org.l2jmobius.commons.util.Chronos;
|
||||
import org.l2jmobius.gameserver.enums.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.instancemanager.PunishmentManager;
|
||||
import org.l2jmobius.gameserver.model.PlayerCondOverride;
|
||||
import org.l2jmobius.gameserver.model.punishment.PunishmentAffect;
|
||||
import org.l2jmobius.gameserver.model.punishment.PunishmentTask;
|
||||
import org.l2jmobius.gameserver.model.punishment.PunishmentType;
|
||||
|
@ -45,9 +45,10 @@ import org.l2jmobius.commons.util.Chronos;
|
||||
import org.l2jmobius.commons.util.Rnd;
|
||||
import org.l2jmobius.commons.util.crypt.ScrambledKeyPair;
|
||||
import org.l2jmobius.loginserver.GameServerTable.GameServerInfo;
|
||||
import org.l2jmobius.loginserver.enums.LoginFailReason;
|
||||
import org.l2jmobius.loginserver.enums.LoginResult;
|
||||
import org.l2jmobius.loginserver.model.data.AccountInfo;
|
||||
import org.l2jmobius.loginserver.network.LoginClient;
|
||||
import org.l2jmobius.loginserver.network.serverpackets.LoginFail.LoginFailReason;
|
||||
|
||||
public class LoginController
|
||||
{
|
||||
@ -230,26 +231,26 @@ public class LoginController
|
||||
}
|
||||
}
|
||||
|
||||
public AuthLoginResult tryCheckinAccount(LoginClient client, InetAddress address, AccountInfo info)
|
||||
public LoginResult tryCheckinAccount(LoginClient client, InetAddress address, AccountInfo info)
|
||||
{
|
||||
if (info.getAccessLevel() < 0)
|
||||
{
|
||||
return AuthLoginResult.ACCOUNT_BANNED;
|
||||
return LoginResult.ACCOUNT_BANNED;
|
||||
}
|
||||
|
||||
AuthLoginResult ret = AuthLoginResult.INVALID_PASSWORD;
|
||||
LoginResult ret = LoginResult.INVALID_PASSWORD;
|
||||
// check auth
|
||||
if (canCheckin(client, address, info))
|
||||
{
|
||||
// login was successful, verify presence on Gameservers
|
||||
ret = AuthLoginResult.ALREADY_ON_GS;
|
||||
ret = LoginResult.ALREADY_ON_GS;
|
||||
if (!isAccountInAnyGameServer(info.getLogin()))
|
||||
{
|
||||
// account isnt on any GS verify LS itself
|
||||
ret = AuthLoginResult.ALREADY_ON_LS;
|
||||
ret = LoginResult.ALREADY_ON_LS;
|
||||
if (_loginServerClients.putIfAbsent(info.getLogin(), client) == null)
|
||||
{
|
||||
ret = AuthLoginResult.AUTH_SUCCESS;
|
||||
ret = LoginResult.AUTH_SUCCESS;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -631,13 +632,4 @@ public class LoginController
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public enum AuthLoginResult
|
||||
{
|
||||
INVALID_PASSWORD,
|
||||
ACCOUNT_BANNED,
|
||||
ALREADY_ON_LS,
|
||||
ALREADY_ON_GS,
|
||||
AUTH_SUCCESS
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,37 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.loginserver.enums;
|
||||
|
||||
public enum AccountKickedReason
|
||||
{
|
||||
REASON_DATA_STEALER(0x01),
|
||||
REASON_GENERIC_VIOLATION(0x08),
|
||||
REASON_7_DAYS_SUSPENDED(0x10),
|
||||
REASON_PERMANENTLY_BANNED(0x20);
|
||||
|
||||
private final int _code;
|
||||
|
||||
AccountKickedReason(int code)
|
||||
{
|
||||
_code = code;
|
||||
}
|
||||
|
||||
public int getCode()
|
||||
{
|
||||
return _code;
|
||||
}
|
||||
}
|
@ -0,0 +1,72 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.loginserver.enums;
|
||||
|
||||
public enum LoginFailReason
|
||||
{
|
||||
REASON_NO_MESSAGE(0x00),
|
||||
REASON_SYSTEM_ERROR_LOGIN_LATER(0x01),
|
||||
REASON_USER_OR_PASS_WRONG(0x02),
|
||||
REASON_ACCESS_FAILED_TRY_AGAIN_LATER(0x04),
|
||||
REASON_ACCOUNT_INFO_INCORRECT_CONTACT_SUPPORT(0x05),
|
||||
REASON_ACCOUNT_IN_USE(0x07),
|
||||
REASON_UNDER_18_YEARS_KR(0x0C),
|
||||
REASON_SERVER_OVERLOADED(0x0F),
|
||||
REASON_SERVER_MAINTENANCE(0x10),
|
||||
REASON_TEMP_PASS_EXPIRED(0x11),
|
||||
REASON_GAME_TIME_EXPIRED(0x12),
|
||||
REASON_NO_TIME_LEFT(0x13),
|
||||
REASON_SYSTEM_ERROR(0x14),
|
||||
REASON_ACCESS_FAILED(0x15),
|
||||
REASON_RESTRICTED_IP(0x16),
|
||||
REASON_WEEK_USAGE_FINISHED(0x1E),
|
||||
REASON_SECURITY_CARD_NUMBER_INVALID(0x1F),
|
||||
REASON_AGE_NOT_VERIFIED_CANT_LOG_BEETWEEN_10PM_6AM(0x20),
|
||||
REASON_SERVER_CANNOT_BE_ACCESSED_BY_YOUR_COUPON(0x21),
|
||||
REASON_DUAL_BOX(0x23),
|
||||
REASON_INACTIVE(0x24),
|
||||
REASON_USER_AGREEMENT_REJECTED_ON_WEBSITE(0x25),
|
||||
REASON_GUARDIAN_CONSENT_REQUIRED(0x26),
|
||||
REASON_USER_AGREEMENT_DECLINED_OR_WITHDRAWL_REQUEST(0x27),
|
||||
REASON_ACCOUNT_SUSPENDED_CALL(0x28),
|
||||
REASON_CHANGE_PASSWORD_AND_QUIZ_ON_WEBSITE(0x29),
|
||||
REASON_ALREADY_LOGGED_INTO_10_ACCOUNTS(0x2A),
|
||||
REASON_MASTER_ACCOUNT_RESTRICTED(0x2B),
|
||||
REASON_CERTIFICATION_FAILED(0x2E),
|
||||
REASON_TELEPHONE_CERTIFICATION_UNAVAILABLE(0x2F),
|
||||
REASON_TELEPHONE_SIGNALS_DELAYED(0x30),
|
||||
REASON_CERTIFICATION_FAILED_LINE_BUSY(0x31),
|
||||
REASON_CERTIFICATION_SERVICE_NUMBER_EXPIRED_OR_INCORRECT(0x32),
|
||||
REASON_CERTIFICATION_SERVICE_CURRENTLY_BEING_CHECKED(0x33),
|
||||
REASON_CERTIFICATION_SERVICE_CANT_BE_USED_HEAVY_VOLUME(0x34),
|
||||
REASON_CERTIFICATION_SERVICE_EXPIRED_GAMEPLAY_BLOCKED(0x35),
|
||||
REASON_CERTIFICATION_FAILED_3_TIMES_GAMEPLAY_BLOCKED_30_MIN(0x36),
|
||||
REASON_CERTIFICATION_DAILY_USE_EXCEEDED(0x37),
|
||||
REASON_CERTIFICATION_UNDERWAY_TRY_AGAIN_LATER(0x38);
|
||||
|
||||
private final int _code;
|
||||
|
||||
LoginFailReason(int code)
|
||||
{
|
||||
_code = code;
|
||||
}
|
||||
|
||||
public int getCode()
|
||||
{
|
||||
return _code;
|
||||
}
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.loginserver.enums;
|
||||
|
||||
public enum LoginResult
|
||||
{
|
||||
INVALID_PASSWORD,
|
||||
ACCOUNT_BANNED,
|
||||
ALREADY_ON_LS,
|
||||
ALREADY_ON_GS,
|
||||
AUTH_SUCCESS
|
||||
}
|
@ -0,0 +1,72 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.l2jmobius.loginserver.enums;
|
||||
|
||||
public enum PlayFailReason
|
||||
{
|
||||
REASON_NO_MESSAGE(0x00),
|
||||
REASON_SYSTEM_ERROR_LOGIN_LATER(0x01),
|
||||
REASON_USER_OR_PASS_WRONG(0x02),
|
||||
REASON_ACCESS_FAILED_TRY_AGAIN_LATER(0x04),
|
||||
REASON_ACCOUNT_INFO_INCORRECT_CONTACT_SUPPORT(0x05),
|
||||
REASON_ACCOUNT_IN_USE(0x07),
|
||||
REASON_UNDER_18_YEARS_KR(0x0C),
|
||||
REASON_SERVER_OVERLOADED(0x0F),
|
||||
REASON_SERVER_MAINTENANCE(0x10),
|
||||
REASON_TEMP_PASS_EXPIRED(0x11),
|
||||
REASON_GAME_TIME_EXPIRED(0x12),
|
||||
REASON_NO_TIME_LEFT(0x13),
|
||||
REASON_SYSTEM_ERROR(0x14),
|
||||
REASON_ACCESS_FAILED(0x15),
|
||||
REASON_RESTRICTED_IP(0x16),
|
||||
REASON_WEEK_USAGE_FINISHED(0x1E),
|
||||
REASON_SECURITY_CARD_NUMBER_INVALID(0x1F),
|
||||
REASON_AGE_NOT_VERIFIED_CANT_LOG_BEETWEEN_10PM_6AM(0x20),
|
||||
REASON_SERVER_CANNOT_BE_ACCESSED_BY_YOUR_COUPON(0x21),
|
||||
REASON_DUAL_BOX(0x23),
|
||||
REASON_INACTIVE(0x24),
|
||||
REASON_USER_AGREEMENT_REJECTED_ON_WEBSITE(0x25),
|
||||
REASON_GUARDIAN_CONSENT_REQUIRED(0x26),
|
||||
REASON_USER_AGREEMENT_DECLINED_OR_WITHDRAWL_REQUEST(0x27),
|
||||
REASON_ACCOUNT_SUSPENDED_CALL(0x28),
|
||||
REASON_CHANGE_PASSWORD_AND_QUIZ_ON_WEBSITE(0x29),
|
||||
REASON_ALREADY_LOGGED_INTO_10_ACCOUNTS(0x2A),
|
||||
REASON_MASTER_ACCOUNT_RESTRICTED(0x2B),
|
||||
REASON_CERTIFICATION_FAILED(0x2E),
|
||||
REASON_TELEPHONE_CERTIFICATION_UNAVAILABLE(0x2F),
|
||||
REASON_TELEPHONE_SIGNALS_DELAYED(0x30),
|
||||
REASON_CERTIFICATION_FAILED_LINE_BUSY(0x31),
|
||||
REASON_CERTIFICATION_SERVICE_NUMBER_EXPIRED_OR_INCORRECT(0x32),
|
||||
REASON_CERTIFICATION_SERVICE_CURRENTLY_BEING_CHECKED(0x33),
|
||||
REASON_CERTIFICATION_SERVICE_CANT_BE_USED_HEAVY_VOLUME(0x34),
|
||||
REASON_CERTIFICATION_SERVICE_EXPIRED_GAMEPLAY_BLOCKED(0x35),
|
||||
REASON_CERTIFICATION_FAILED_3_TIMES_GAMEPLAY_BLOCKED_30_MIN(0x36),
|
||||
REASON_CERTIFICATION_DAILY_USE_EXCEEDED(0x37),
|
||||
REASON_CERTIFICATION_UNDERWAY_TRY_AGAIN_LATER(0x38);
|
||||
|
||||
private final int _code;
|
||||
|
||||
PlayFailReason(int code)
|
||||
{
|
||||
_code = code;
|
||||
}
|
||||
|
||||
public int getCode()
|
||||
{
|
||||
return _code;
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user