Перейти к содержанию
Авторизация  
darkvicin

Ребят Выручайте Пож... Компиляция Enterwold

Рекомендуемые сообщения

декомпилил интерворлд исправил все ошибки кроме

сenterworld.java:120: error: incompatible types

/* 131 */ private static FastList listeners = new FastLi

st().shared();

^

required: FastList

found: Collection

1 error

 

 

и сам код

/* */ package com.l2jserver.gameserver.network.clientpackets;

/* */

/* */ import com.l2jserver.Config;

/* */ import com.l2jserver.gameserver.Announcements;

/* */ import com.l2jserver.gameserver.GameServerRestart;

/* */ import com.l2jserver.gameserver.LoginServerThread;

/* */ import com.l2jserver.gameserver.SevenSigns;

/* */ import com.l2jserver.gameserver.TaskPriority;

/* */ import com.l2jserver.gameserver.cache.HtmCache;

/* */ import com.l2jserver.gameserver.communitybbs.Managers.RegionBBSManager;

/* */ import com.l2jserver.gameserver.datatables.AdminTable;

/* */ import com.l2jserver.gameserver.datatables.SkillTable;

/* */ import com.l2jserver.gameserver.datatables.SkillTable.FrequentSkill;

/* */ import com.l2jserver.gameserver.datatables.SkillTreesData;

/* */ import com.l2jserver.gameserver.instancemanager.BotManager;

/* */ import com.l2jserver.gameserver.instancemanager.CHSiegeManager;

/* */ import com.l2jserver.gameserver.instancemanager.CastleManager;

/* */ import com.l2jserver.gameserver.instancemanager.ClanHallManager;

/* */ import com.l2jserver.gameserver.instancemanager.CoupleManager;

/* */ import com.l2jserver.gameserver.instancemanager.CursedWeaponsManager;

/* */ import com.l2jserver.gameserver.instancemanager.DimensionalRiftManager;

/* */ import com.l2jserver.gameserver.instancemanager.FortManager;

/* */ import com.l2jserver.gameserver.instancemanager.FortSiegeManager;

/* */ import com.l2jserver.gameserver.instancemanager.InstanceManager;

/* */ import com.l2jserver.gameserver.instancemanager.MailManager;

/* */ import com.l2jserver.gameserver.instancemanager.MapRegionManager;

/* */ import com.l2jserver.gameserver.instancemanager.MapRegionManager.TeleportWhereType;

/* */ import com.l2jserver.gameserver.instancemanager.PetitionManager;

/* */ import com.l2jserver.gameserver.instancemanager.QuestManager;

/* */ import com.l2jserver.gameserver.instancemanager.SiegeManager;

/* */ import com.l2jserver.gameserver.instancemanager.TerritoryWarManager;

/* */ import com.l2jserver.gameserver.instancemanager.rank_system.rankpvpsystem.RankPvpSystem;

/* */ import com.l2jserver.gameserver.instancemanager.rank_system.rankpvpsystem.RankPvpSystemConfig;

/* */ import com.l2jserver.gameserver.instancemanager.rank_system.rankpvpsystem.PvpTable;

/* */ import com.l2jserver.gameserver.instancemanager.rank_system.rankpvpsystem.PvpStats;

/* */ import com.l2jserver.gameserver.model.CursedWeapon;

/* */ import com.l2jserver.gameserver.model.L2Clan;

/* */ import com.l2jserver.gameserver.model.L2ClanMember;

/* */ import com.l2jserver.gameserver.model.L2Object;

/* */ import com.l2jserver.gameserver.model.L2World;

/* */ import com.l2jserver.gameserver.model.MacroList;

/* */ import com.l2jserver.gameserver.model.PcCondOverride;

/* */ import com.l2jserver.gameserver.model.actor.IpCatcher;

/* */ import com.l2jserver.gameserver.model.actor.appearance.PcAppearance;

/* */ import com.l2jserver.gameserver.model.actor.instance.L2ClassMasterInstance;

/* */ import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;

/* */ import com.l2jserver.gameserver.model.actor.instance.L2PcInstance.PunishLevel;

/* */ import com.l2jserver.gameserver.model.actor.instance.PcAdmin;

/* */ import com.l2jserver.gameserver.model.entity.Castle;

/* */ import com.l2jserver.gameserver.model.entity.Couple;

/* */ import com.l2jserver.gameserver.model.entity.Fort;

/* */ import com.l2jserver.gameserver.model.entity.FortSiege;

/* */ import com.l2jserver.gameserver.model.entity.Instance;

/* */ import com.l2jserver.gameserver.model.entity.L2Event;

/* */ import com.l2jserver.gameserver.model.entity.PkHunterEventConditions;

/* */ import com.l2jserver.gameserver.model.entity.Siege;

/* */ import com.l2jserver.gameserver.model.entity.TvTEvent;

/* */ import com.l2jserver.gameserver.model.entity.clanhall.AuctionableHall;

/* */ import com.l2jserver.gameserver.model.entity.clanhall.SiegableHall;

/* */ import com.l2jserver.gameserver.model.itemcontainer.PcInventory;

/* */ import com.l2jserver.gameserver.model.itemcontainer.PcWarehouse;

/* */ import com.l2jserver.gameserver.model.items.L2Weapon;

/* */ import com.l2jserver.gameserver.model.items.instance.L2ItemInstance;

/* */ import com.l2jserver.gameserver.model.quest.Quest;

/* */ import com.l2jserver.gameserver.model.quest.QuestState;

/* */ import com.l2jserver.gameserver.model.zone.ZoneId;

/* */ import com.l2jserver.gameserver.network.L2GameClient;

/* */ import com.l2jserver.gameserver.network.SystemMessageId;

/* */ import com.l2jserver.gameserver.network.communityserver.CommunityServerThread;

/* */ import com.l2jserver.gameserver.network.communityserver.writepackets.WorldInfo;

/* */ import com.l2jserver.gameserver.network.serverpackets.CreatureSay;

/* */ import com.l2jserver.gameserver.network.serverpackets.Die;

/* */ import com.l2jserver.gameserver.network.serverpackets.EtcStatusUpdate;

/* */ import com.l2jserver.gameserver.network.serverpackets.ExAutoSoulShot;

/* */ import com.l2jserver.gameserver.network.serverpackets.ExBasicActionList;

/* */ import com.l2jserver.gameserver.network.serverpackets.ExBrPremiumState;

/* */ import com.l2jserver.gameserver.network.serverpackets.ExGetBookMarkInfoPacket;

/* */ import com.l2jserver.gameserver.network.serverpackets.ExNevitAdventEffect;

/* */ import com.l2jserver.gameserver.network.serverpackets.ExNevitAdventPointInfoPacket;

/* */ import com.l2jserver.gameserver.network.serverpackets.ExNevitAdventTimeChange;

/* */ import com.l2jserver.gameserver.network.serverpackets.ExNoticePostArrived;

/* */ import com.l2jserver.gameserver.network.serverpackets.ExNotifyPremiumItem;

/* */ import com.l2jserver.gameserver.network.serverpackets.ExPCCafePointInfo;

/* */ import com.l2jserver.gameserver.network.serverpackets.ExRedSky;

/* */ import com.l2jserver.gameserver.network.serverpackets.ExShowScreenMessage;

/* */ import com.l2jserver.gameserver.network.serverpackets.ExStorageMaxCount;

/* */ import com.l2jserver.gameserver.network.serverpackets.ExVoteSystemInfo;

/* */ import com.l2jserver.gameserver.network.serverpackets.FriendList;

/* */ import com.l2jserver.gameserver.network.serverpackets.HennaInfo;

/* */ import com.l2jserver.gameserver.network.serverpackets.ItemList;

/* */ import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage;

/* */ import com.l2jserver.gameserver.network.serverpackets.PlaySound;

/* */ import com.l2jserver.gameserver.network.serverpackets.PledgeShowMemberListAll;

/* */ import com.l2jserver.gameserver.network.serverpackets.PledgeShowMemberListUpdate;

/* */ import com.l2jserver.gameserver.network.serverpackets.PledgeSkillList;

/* */ import com.l2jserver.gameserver.network.serverpackets.PledgeStatusChanged;

/* */ import com.l2jserver.gameserver.network.serverpackets.PremiumState;

/* */ import com.l2jserver.gameserver.network.serverpackets.QuestList;

/* */ import com.l2jserver.gameserver.network.serverpackets.ShortCutInit;

/* */ import com.l2jserver.gameserver.network.serverpackets.SkillCoolTime;

/* */ import com.l2jserver.gameserver.network.serverpackets.SystemMessage;

/* */ import com.l2jserver.gameserver.network.serverpackets.UserInfo;

 

/* */ import com.l2jserver.gameserver.scripting.scriptengine.listeners.player.PlayerSpawnListener;

/* */ import com.l2jserver.gameserver.util.Broadcast;

/* */ import com.l2jserver.gameserver.util.Util;

/* */ import java.text.SimpleDateFormat;

/* */ import java.util.Calendar;

/* */ import java.util.Date;

/* */ import java.util.Iterator;

/* */ import java.util.List;

/* */ import java.util.Map;

/* */ import java.util.logging.Logger;

/* */ import javolution.util.FastList;

/* */ import javolution.util.FastMap;

/* */

/* */ public class EnterWorld extends L2GameClientPacket

/* */ {

/* */ private static final String _C__11_ENTERWORLD = "[C] 11 EnterWorld";

 

/* 131*/ private static FastList<PlayerSpawnListener> listeners = new FastList().shared();

 

/* */ long _daysleft;

 

/* 134 */ SimpleDateFormat df = new SimpleDateFormat("dd MM yyyy");

/* */

/* 136 */ private final int[][] tracert = new int[5][4];

/* */

/* */ public TaskPriority getPriority()

/* */ {

/* 140 */ return TaskPriority.PR_URGENT;

/* */ }

/* */

/* */ protected void readImpl()

/* */ {

/* 146 */ readB(new byte[32]);

/* 147 */ readD();

/* 148 */ readD();

/* 149 */ readD();

/* 150 */ readD();

/* 151 */ readB(new byte[32]);

/* 152 */ readD();

/* 153 */ for (int i = 0; i < 5; i++)

/* */ {

/* 155 */ for (int o = 0; o < 4; o++)

/* */ {

/* 157 */ tracert[o] = readC();

/* */ }

/* */ }

/* */ }

/* */

/* */ protected void runImpl()

/* */ {

/* 165 */ L2PcInstance activeChar = ((L2GameClient)getClient()).getActiveChar();

/* */

/* 167 */ if (activeChar == null)

/* */ {

/* 169 */ _log.warning("EnterWorld failed! activeChar returned 'null'.");

/* 170 */ ((L2GameClient)getClient()).closeNow();

/* 171 */ return;

/* */ }

/* */

/* 174 */ String[] adress = new String[5];

/* 175 */ for (int i = 0; i < 5; i++)

/* */ {

/* 177 */ adress = tracert[0] + "." + tracert[1] + "." + tracert[2] + "." + tracert[3];

/* */ }

/* */

/* 180 */ LoginServerThread.getInstance().sendClientTracert(activeChar.getAccountName(), adress);

/* */

/* 182 */ ((L2GameClient)getClient()).setClientTracert(tracert);

/* */

/* 185 */ if (Config.RESTORE_PLAYER_INSTANCE)

/* */ {

/* 187 */ activeChar.setInstanceId(InstanceManager.getInstance().getPlayerInstance(activeChar.getObjectId()));

/* */ }

/* */ else

/* */ {

/* 191 */ int instanceId = InstanceManager.getInstance().getPlayerInstance(activeChar.getObjectId());

/* 192 */ if (instanceId > 0)

/* */ {

/* 194 */ InstanceManager.getInstance().getInstance(instanceId).removePlayer(Integer.valueOf(activeChar.getObjectId()));

/* */ }

/* */ }

/* */

/* 198 */ if (L2World.getInstance().findObject(activeChar.getObjectId()) != null)

/* */ {

/* 200 */ if (Config.DEBUG)

/* */ {

/* 202 */ _log.warning("User already exists in Object ID map! User " + activeChar.getName() + " is a character clone.");

/* */ }

/* */ }

/* */

/* 206 */ if (activeChar.getPremiumService() == 1)

/* */ {

/* 208 */ activeChar.sendPacket(new ExBrPremiumState(activeChar.getObjectId(), 1));

/* */ }

/* */ else

/* */ {

/* 212 */ activeChar.sendPacket(new ExBrPremiumState(activeChar.getObjectId(), 0));

/* */ }

/* */

/* 216 */ if (activeChar.isGM())

/* */ {

/* 218 */ if (Config.ENABLE_SAFE_ADMIN_PROTECTION)

/* */ {

/* 220 */ if (Config.SAFE_ADMIN_NAMES.contains(activeChar.getName()))

/* */ {

/* 222 */ activeChar.getPcAdmin().setIsSafeAdmin(true);

/* 223 */ if (Config.SAFE_ADMIN_SHOW_ADMIN_ENTER)

/* */ {

/* 225 */ _log.info("Admin: " + activeChar.getName() + "(" + activeChar.getObjectId() + ") Acabou de Logar.");

/* */ }

/* */ }

/* */ else

/* */ {

/* 230 */ activeChar.getPcAdmin().punishUnSafeAdmin();

/* 231 */ _log.warning("ATENCAO: FALSO ADMIN: " + activeChar.getName() + "(" + activeChar.getObjectId() + ") foi punido ao tentar logar.");

/* */ }

/* */ }

/* */

/* 235 */ if ((Config.GM_STARTUP_INVULNERABLE) && (AdminTable.getInstance().hasAccess("admin_invul", activeChar.getAccessLevel())))

/* */ {

/* 237 */ activeChar.setIsInvul(true);

/* */ }

/* */

/* 240 */ if ((Config.GM_STARTUP_INVISIBLE) && (AdminTable.getInstance().hasAccess("admin_invisible", activeChar.getAccessLevel())))

/* */ {

/* 242 */ activeChar.getAppearance().setInvisible();

/* */ }

/* */

/* 245 */ if ((Config.GM_STARTUP_SILENCE) && (AdminTable.getInstance().hasAccess("admin_silence", activeChar.getAccessLevel())))

/* */ {

/* 247 */ activeChar.setSilenceMode(true);

/* */ }

/* */

/* 250 */ if ((Config.GM_STARTUP_DIET_MODE) && (AdminTable.getInstance().hasAccess("admin_diet", activeChar.getAccessLevel())))

/* */ {

/* 252 */ activeChar.setDietMode(true);

/* 253 */ activeChar.refreshOverloaded();

/* */ }

/* */

/* 256 */ if ((Config.GM_STARTUP_AUTO_LIST) && (AdminTable.getInstance().hasAccess("admin_gmliston", activeChar.getAccessLevel())))

/* */ {

/* 258 */ AdminTable.getInstance().addGm(activeChar, false);

/* */ }

/* */ else

/* */ {

/* 262 */ AdminTable.getInstance().addGm(activeChar, true);

/* */ }

/* */

/* 265 */ if (Config.GM_GIVE_SPECIAL_SKILLS)

/* */ {

/* 267 */ SkillTreesData.getInstance().addSkills(activeChar, false);

/* */ }

/* */

/* 270 */ if (Config.GM_GIVE_SPECIAL_AURA_SKILLS)

/* */ {

/* 272 */ SkillTreesData.getInstance().addSkills(activeChar, true);

/* */ }

/* */

/* */ }

/* 277 */ else if ((activeChar.getKarma() >= 500000) && (!activeChar.isCursedWeaponEquipped()) && (Config.ENABLE_PKHUNTEREVENT))

/* */ {

/* 279 */ PkHunterEventConditions.endCoward(activeChar);

/* */ }

/* */

/* 284 */ if (activeChar.getCurrentHp() < 0.5D)

/* */ {

/* 286 */ activeChar.setIsDead(true);

/* */

/* 289 */ ExRedSky packet = new ExRedSky(7);

/* 290 */ sendPacket(packet);

/* */

/* 292 */ PlaySound death_music = new PlaySound(1, "Game_Over", 0, 0, 0, 0, 0);

/* 293 */ sendPacket(death_music);

/* */ }

/* */

/* 296 */ boolean showClanNotice = false;

/* */

/* 299 */ if (activeChar.getClan() != null)

/* */ {

/* 301 */ activeChar.sendPacket(new PledgeSkillList(activeChar.getClan()));

/* */

/* 303 */ notifyClanMembers(activeChar);

/* */

/* 305 */ notifySponsorOrApprentice(activeChar);

/* */

/* 307 */ AuctionableHall clanHall = ClanHallManager.getInstance().getClanHallByOwner(activeChar.getClan());

/* */

/* 309 */ if (clanHall != null)

/* */ {

/* 311 */ if (!clanHall.getPaid())

/* */ {

/* 313 */ activeChar.sendPacket(SystemMessageId.PAYMENT_FOR_YOUR_CLAN_HALL_HAS_NOT_BEEN_MADE_PLEASE_MAKE_PAYMENT_TO_YOUR_CLAN_WAREHOUSE_BY_S1_TOMORROW);

/* */ }

/* */ }

/* */

/* 317 */ for (Siege siege : SiegeManager.getInstance().getSieges())

/* */ {

/* 319 */ if (!siege.getIsInProgress())

/* */ {

/* */ continue;

/* */ }

/* */

/* 324 */ if (siege.checkIsAttacker(activeChar.getClan()))

/* */ {

/* 326 */ activeChar.setSiegeState((byte) 1);

/* 327 */ activeChar.setSiegeSide(siege.getCastle().getCastleId());

/* */ }

/* 330 */ else if (siege.checkIsDefender(activeChar.getClan()))

/* */ {

/* 332 */ activeChar.setSiegeState((byte) 2);

/* 333 */ activeChar.setSiegeSide(siege.getCastle().getCastleId());

/* */ }

/* */ }

/* */

/* 337 */ for (FortSiege siege : FortSiegeManager.getInstance().getSieges())

/* */ {

/* 339 */ if (!siege.getIsInProgress())

/* */ {

/* */ continue;

/* */ }

/* */

/* 344 */ if (siege.checkIsAttacker(activeChar.getClan()))

/* */ {

/* 346 */ activeChar.setSiegeState((byte) 1);

/* 347 */ activeChar.setSiegeSide(siege.getFort().getFortId());

/* */ }

/* 350 */ else if (siege.checkIsDefender(activeChar.getClan()))

/* */ {

/* 352 */ activeChar.setSiegeState((byte) 2);

/* 353 */ activeChar.setSiegeSide(siege.getFort().getFortId());

/* */ }

/* */ }

/* */

/* 357 */ for (SiegableHall hall : CHSiegeManager.getInstance().getConquerableHalls().values())

/* */ {

/* 359 */ if (!hall.isInSiege())

/* */ {

/* */ continue;

/* */ }

/* */

/* 364 */ if (hall.isRegistered(activeChar.getClan()))

/* */ {

/* 366 */ activeChar.setSiegeState((byte) 1);

/* 367 */ activeChar.setSiegeSide(hall.getId());

/* 368 */ activeChar.setIsInHideoutSiege(true);

/* */ }

/* */ }

/* */

/* 372 */ sendPacket(new PledgeShowMemberListAll(activeChar.getClan(), activeChar));

/* 373 */ sendPacket(new PledgeStatusChanged(activeChar.getClan()));

/* */

/* 376 */ if (activeChar.getClan().getCastleId() > 0)

/* */ {

/* 378 */ CastleManager.getInstance().getCastleByOwner(activeChar.getClan()).giveResidentialSkills(activeChar);

/* */ }

/* */

/* 381 */ if (activeChar.getClan().getFortId() > 0)

/* */ {

/* 383 */ FortManager.getInstance().getFortByOwner(activeChar.getClan()).giveResidentialSkills(activeChar);

/* */ }

/* */

/* 386 */ showClanNotice = activeChar.getClan().isNoticeEnabled();

/* */ }

/* */

/* 389 */ if (TerritoryWarManager.getInstance().getRegisteredTerritoryId(activeChar) > 0)

/* */ {

/* 391 */ if (TerritoryWarManager.getInstance().isTWInProgress())

/* */ {

/* 393 */ activeChar.setSiegeState((byte) 1);

/* */ }

/* 395 */ activeChar.setSiegeSide(TerritoryWarManager.getInstance().getRegisteredTerritoryId(activeChar));

/* */ }

/* */

/* 399 */ if ((SevenSigns.getInstance().isSealValidationPeriod()) && (SevenSigns.getInstance().getSealOwner(3) != 0))

/* */ {

/* 401 */ int cabal = SevenSigns.getInstance().getPlayerCabal(activeChar.getObjectId());

/* 402 */ if (cabal != 0)

/* */ {

/* 404 */ if (cabal == SevenSigns.getInstance().getSealOwner(3))

/* */ {

/* 406 */ activeChar.addSkill(SkillTable.FrequentSkill.THE_VICTOR_OF_WAR.getSkill());

/* */ }

/* */ else

/* */ {

/* 410 */ activeChar.addSkill(SkillTable.FrequentSkill.THE_VANQUISHED_OF_WAR.getSkill());

/* */ }

/* */ }

/* */ }

/* */ else

/* */ {

/* 416 */ activeChar.removeSkill(SkillTable.FrequentSkill.THE_VICTOR_OF_WAR.getSkill());

/* 417 */ activeChar.removeSkill(SkillTable.FrequentSkill.THE_VANQUISHED_OF_WAR.getSkill());

/* */ }

/* */

/* 420 */ if ((Config.ENABLE_VITALITY) && (Config.RECOVER_VITALITY_ON_RECONNECT))

/* */ {

/* 422 */ float points = Config.RATE_RECOVERY_ON_RECONNECT * (float)(System.currentTimeMillis() - activeChar.getLastAccess()) / 60000.0F;

/* 423 */ if (points > 0.0F)

/* */ {

/* 425 */ activeChar.updateVitalityPoints(points, false, true);

/* */ }

/* */

/* */ }

/* */

/* 430 */ if (activeChar.isAio())

/* */ {

/* 432 */ onEnterAio(activeChar);

/* */ }

/* */

/* 435 */ if ((Config.ALLOW_AIO_NCOLOR) && (activeChar.isAio()))

/* */ {

/* 437 */ activeChar.getAppearance().setNameColor(Config.AIO_NCOLOR);

/* */ }

/* */

/* 440 */ if ((Config.ALLOW_AIO_TCOLOR) && (activeChar.isAio()))

/* */ {

/* 442 */ activeChar.getAppearance().setTitleColor(Config.AIO_TCOLOR);

/* */ }

/* */

/* 446 */ if (activeChar.isVip())

/* */ {

/* 448 */ onEnterVip(activeChar);

/* */ }

/* */

/* 451 */ if ((Config.ALLOW_VIP_NCOLOR) && (activeChar.isVip()))

/* */ {

/* 453 */ activeChar.getAppearance().setNameColor(Config.VIP_NCOLOR);

/* */ }

/* */

/* 456 */ if ((Config.ALLOW_VIP_TCOLOR) && (activeChar.isVip()))

/* */ {

/* 458 */ activeChar.getAppearance().setTitleColor(Config.VIP_TCOLOR);

/* */ }

/* */

/* 461 */ activeChar.checkRecoBonusTask();

/* */

/* 463 */ activeChar.broadcastUserInfo();

/* */

/* 466 */ activeChar.getMacros().sendUpdate();

/* */

/* 469 */ sendPacket(new ItemList(activeChar, false));

/* */

/* 472 */ activeChar.queryGameGuard();

/* */

/* 475 */ sendPacket(new ExGetBookMarkInfoPacket(activeChar));

/* */

/* 478 */ sendPacket(new ShortCutInit(activeChar));

/* */

/* 481 */ activeChar.sendPacket(ExBasicActionList.getStaticPacket(activeChar));

/* */

/* 484 */ activeChar.sendSkillList();

/* */

/* 487 */ activeChar.sendPacket(new HennaInfo(activeChar));

/* */

/* 489 */ Quest.playerEnter(activeChar);

/* */

/* 491 */ if (!Config.DISABLE_TUTORIAL)

/* */ {

/* 493 */ loadTutorial(activeChar);

/* */ }

/* */

/* 496 */ for (Quest quest : QuestManager.getInstance().getAllManagedScripts())

/* */ {

/* 498 */ if ((quest != null) && (quest.getOnEnterWorld()))

/* */ {

/* 500 */ quest.notifyEnterWorld(activeChar);

/* */ }

/* */ }

/* 503 */ activeChar.sendPacket(new QuestList());

/* */

/* 505 */ if (Config.PLAYER_SPAWN_PROTECTION > 0)

/* */ {

/* 507 */ activeChar.setProtection(true);

/* */ }

/* */

/* 510 */ BotManager.getInstance().onEnter(activeChar);

/* 511 */ activeChar.spawnMe(activeChar.getX(), activeChar.getY(), activeChar.getZ());

/* */

/* 513 */ activeChar.getInventory().applyItemSkills();

/* */

/* 515 */ if (L2Event.isParticipant(activeChar))

/* */ {

/* 517 */ L2Event.restorePlayerEventStatus(activeChar);

/* */ }

/* */

/* 521 */ if (Config.ALLOW_WEDDING)

/* */ {

/* 523 */ engage(activeChar);

/* 524 */ notifyPartner(activeChar, activeChar.getPartnerId());

/* */ }

/* */

/* 527 */ IpCatcher ipc = new IpCatcher();

/* 528 */ if (ipc.isCatched(activeChar)) {

/* 529 */ activeChar.logout();

/* */ }

/* 531 */ if (activeChar.isCursedWeaponEquipped())

/* */ {

/* 533 */ CursedWeaponsManager.getInstance().getCursedWeapon(activeChar.getCursedWeaponEquippedId()).cursedOnLogin();

/* */ }

/* */

/* 536 */ activeChar.updateEffectIcons();

/* */

/* 538 */ activeChar.sendPacket(new EtcStatusUpdate(activeChar));

/* */

/* 541 */ activeChar.sendPacket(new ExStorageMaxCount(activeChar));

/* */

/* 543 */ sendPacket(new FriendList(activeChar));

/* */

/* 545 */ SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.FRIEND_S1_HAS_LOGGED_IN);

/* 546 */ sm.addString(activeChar.getName());

/* 547 */ for (Iterator i$ = activeChar.getFriendList().iterator(); i$.hasNext(); ) { int id = ((Integer)i$.next()).intValue();

/* */

/* 549 */ L2Object obj = L2World.getInstance().findObject(id);

/* 550 */ if (obj != null)

/* */ {

/* 552 */ obj.sendPacket(sm);

/* */ }

/* */ }

/* */

/* 556 */ if ((RankPvpSystemConfig.NICK_COLOR_ENABLED) || (RankPvpSystemConfig.TITLE_COLOR_ENABLED))

/* */ {

/* 559 */

PvpStats activeCharPvpStats = PvpTable.getInstance().getPvpStats(activeChar.getObjectId());

/* */

/* 561 */ if (RankPvpSystemConfig.NICK_COLOR_ENABLED)

/* */ {

/* 563 */ activeChar.getAppearance().setNameColor(activeCharPvpStats.getRank().getNickColor());

/* 564 */ activeChar.sendPacket(new UserInfo(activeChar));

/* 565 */ activeChar.broadcastUserInfo();

/* */ }

/* */

/* 568 */ if (RankPvpSystemConfig.TITLE_COLOR_ENABLED)

/* */ {

/* 570 */ activeChar.getAppearance().setTitleColor(activeCharPvpStats.getRank().getTitleColor());

/* 571 */ activeChar.broadcastTitleInfo();

/* */ }

/* */ }

/* */

/* 575 */ if (Config.ANNOUNCE_HERO_LOGIN)

/* */ {

/* 577 */ if (activeChar.isHero())

/* */ {

/* 579 */ Broadcast.toAllOnlinePlayers(new CreatureSay(1, 20, "Hero System", "Hero " + activeChar.getName() + " has been logged in."));

/* */ }

/* */ }

/* */

/* 583 */ if (Config.ANNOUNCE_CASTLE_LORDS)

/* */ {

/* 585 */ notifyCastleOwner(activeChar);

/* */ }

/* */

/* 588 */ if (Config.ANNOUNCE_AIO_LOGIN)

/* */ {

/* 590 */ if (activeChar.isAio())

/* */ {

/* 592 */ Announcements.getInstance().announceToAll("Aio: " + activeChar.getName() + " has been logged.");

/* */ }

/* */ }

/* */

/* 596 */ if (Config.ANNOUNCE_VIP_LOGIN)

/* */ {

/* 598 */ if (activeChar.isVip())

/* */ {

/* 600 */ Announcements.getInstance().announceToAll("Vip: " + activeChar.getName() + " has been logged.");

/* */ }

/* */ }

/* */

/* 604 */ if (Config.ANNOUNCE_GM_LOGIN)

/* */ {

/* 606 */ if (activeChar.isGM())

/* */ {

/* 608 */ Announcements.getInstance().announceToAll("The Admin/GM " + activeChar.getName() + " Has Logged in");

/* */ }

/* */ }

/* */

/* 612 */ if (Config.PC_BANG_ENABLED)

/* */ {

/* 614 */ if (activeChar.getPcBangPoints() > 0)

/* */ {

/* 616 */ activeChar.sendPacket(new ExPCCafePointInfo(activeChar.getPcBangPoints(), 0, false, false, 1));

/* */ }

/* */ else

/* */ {

/* 620 */ activeChar.sendPacket(new ExPCCafePointInfo());

/* */ }

/* */ }

/* */

/* 624 */ if (Config.AUTO_RESTART_ENABLE)

/* */ {

/* 626 */ CreatureSay msg3 = new CreatureSay(2, 20, "[iNFOR]", "Next Restart at " + GameServerRestart.getInstance().getRestartNextTime() + " hs.");

/* 627 */ activeChar.sendPacket(msg3);

/* */ }

/* */

/* 630 */ activeChar.sendPacket(SystemMessageId.WELCOME_TO_LINEAGE);

/* */

/* 632 */ activeChar.sendMessage("");

/* */

/* 634 */ if (Config.ENABLE_ANTI_OVER_ENCHANT)

/* */ {

/* 636 */ for (L2ItemInstance i : activeChar.getInventory().getItems())

/* */ {

/* 638 */ if (activeChar.isGM())

/* */ continue;

/* 640 */ if (!i.isEquipable())

/* */ continue;

/* 642 */ if ((i.getEnchantLevel() <= Config.ENCHANT_MAX_WEAPON) && (i.getEnchantLevel() <= Config.ENCHANT_MAX_ARMOR) && (i.getEnchantLevel() <= Config.ENCHANT_MAX_JEWELRY)) {

/* */ continue;

/* */ }

/* 645 */ activeChar.getInventory().destroyItem(null, i, activeChar, null);

/* */

/* 647 */ activeChar.sendMessage("[server]:You have Items over enchanted you will be kikked!");

/* */

/* 649 */ activeChar.setPunishLevel(L2PcInstance.PunishLevel.JAIL, 1200);

/* */

/* 651 */ Util.handleIllegalPlayerAction(activeChar, "Player " + activeChar.getName() + " have item Overenchanted ", Config.DEFAULT_PUNISH);

/* */

/* 653 */ _log.info("#### WARNING ####");

/* 654 */ _log.info(i + " item has been removed from player.");

/* */ }

/* */

/* */ }

/* */

/* 661 */ SevenSigns.getInstance().sendCurrentPeriodMsg(activeChar);

/* 662 */ Announcements.getInstance().showAnnouncements(activeChar);

/* */

/* 664 */ if (showClanNotice)

/* */ {

/* 666 */ NpcHtmlMessage notice = new NpcHtmlMessage(1);

/* 667 */ notice.setFile(activeChar.getHtmlPrefix(), "data/html/clanNotice.htm");

/* 668 */ notice.replace("%clan_name%", activeChar.getClan().getName());

/* 669 */ notice.replace("%notice_text%", activeChar.getClan().getNotice());

/* 670 */ notice.disableValidation();

/* 671 */ sendPacket(notice);

/* */ }

/* 673 */ else if (Config.SERVER_NEWS)

/* */ {

/* 675 */ String serverNews = HtmCache.getInstance().getHtm(activeChar.getHtmlPrefix(), "data/html/servnews.htm");

/* 676 */ if (serverNews != null)

/* */ {

/* 678 */ sendPacket(new NpcHtmlMessage(1, serverNews));

/* */ }

/* */ }

/* */

/* 682 */ if (Config.CUSTOM_WELCOME_PM)

/* */ {

/* 684 */ if (Config.SHOW_PM1)

/* */ {

/* 686 */ CreatureSay na = new CreatureSay(0, 2, Config.PM_FROM, Config.PMTEXT1);

/* 687 */ activeChar.sendPacket(na);

/* */ }

/* 689 */ if (Config.SHOW_PM2)

/* */ {

/* 691 */ CreatureSay nb = new CreatureSay(0, 2, Config.PM_FROM, Config.PMTEXT2);

/* 692 */ activeChar.sendPacket(nb);

/* */ }

/* 694 */ if (Config.SHOW_PM3)

/* */ {

/* 696 */ CreatureSay nc = new CreatureSay(0, 2, Config.PM_FROM, Config.PMTEXT3);

/* 697 */ activeChar.sendPacket(nc);

/* */ }

/* */ }

/* */

/* 701 */ if (Config.PETITIONING_ALLOWED)

/* */ {

/* 703 */ PetitionManager.getInstance().checkPetitionMessages(activeChar);

/* */ }

/* */

/* 706 */ if (activeChar.isAlikeDead())

/* */ {

/* 709 */ sendPacket(new Die(activeChar));

/* */ }

/* */

/* 712 */ activeChar.onPlayerEnter();

/* */

/* 714 */ sendPacket(new SkillCoolTime(activeChar));

/* 715 */ sendPacket(new ExVoteSystemInfo(activeChar));

/* 716 */ sendPacket(new ExNevitAdventEffect(0));

/* 717 */ sendPacket(new ExNevitAdventPointInfoPacket(activeChar));

/* 718 */ sendPacket(new ExNevitAdventTimeChange(activeChar.getAdventTime(), false));

/* */

/* 720 */ for (L2ItemInstance i : activeChar.getInventory().getItems())

/* */ {

/* 722 */ if (i.isTimeLimitedItem())

/* */ {

/* 724 */ i.scheduleLifeTimeTask();

/* */ }

/* 726 */ if ((!i.isShadowItem()) || (!i.isEquipped()))

/* */ continue;

/* 728 */ i.decreaseMana(false);

/* */ }

/* */

/* 732 */ for (L2ItemInstance i : activeChar.getWarehouse().getItems())

/* */ {

/* 734 */ if (!i.isTimeLimitedItem())

/* */ continue;

/* 736 */ i.scheduleLifeTimeTask();

/* */ }

/* */

/* 740 */ if (DimensionalRiftManager.getInstance().checkIfInRiftZone(activeChar.getX(), activeChar.getY(), activeChar.getZ(), false))

/* */ {

/* 742 */ DimensionalRiftManager.getInstance().teleportToWaitingRoom(activeChar);

/* */ }

/* */

/* 745 */ if (activeChar.getClanJoinExpiryTime() > System.currentTimeMillis())

/* */ {

/* 747 */ activeChar.sendPacket(SystemMessageId.CLAN_MEMBERSHIP_TERMINATED);

/* */ }

/* */

/* 751 */ if (activeChar.getInventory().getItemByItemId(9819) != null)

/* */ {

/* 753 */ Fort fort = FortManager.getInstance().getFort(activeChar);

/* */

/* 755 */ if (fort != null)

/* */ {

/* 757 */ FortSiegeManager.getInstance().dropCombatFlag(activeChar, fort.getFortId());

/* */ }

/* */ else

/* */ {

/* 761 */ int slot = activeChar.getInventory().getSlotFromItem(activeChar.getInventory().getItemByItemId(9819));

/* 762 */ activeChar.getInventory().unEquipItemInBodySlot(slot);

/* 763 */ activeChar.destroyItem("CombatFlag", activeChar.getInventory().getItemByItemId(9819), null, true);

/* */ }

/* */

/* */ }

/* */

/* 769 */ if ((!activeChar.canOverrideCond(PcCondOverride.ZONE_CONDITIONS)) && (activeChar.isInsideZone(ZoneId.SIEGE)) && ((!activeChar.isInSiege()) || (activeChar.getSiegeState() < 2)))

/* */ {

/* 771 */ activeChar.teleToLocation(MapRegionManager.TeleportWhereType.Town);

/* */ }

/* */

/* 774 */ if (Config.ALLOW_MAIL)

/* */ {

/* 776 */ if (MailManager.getInstance().hasUnreadPost(activeChar))

/* */ {

/* 778 */ sendPacket(ExNoticePostArrived.valueOf(false));

/* */ }

/* */ }

/* */

/* 782 */ RegionBBSManager.getInstance().changeCommunityBoard();

/* 783 */ CommunityServerThread.getInstance().sendPacket(new WorldInfo(activeChar, null, WorldInfo.TYPE_UPDATE_PLAYER_STATUS));

/* */

/* 785 */ TvTEvent.onLogin(activeChar);

/* */

/* 787 */ if (Config.WELCOME_MESSAGE_ENABLED)

/* */ {

/* 789 */ activeChar.sendPacket(new ExShowScreenMessage(Config.WELCOME_MESSAGE_TEXT, Config.WELCOME_MESSAGE_TIME));

/* */ }

/* */

/* 792 */ L2ClassMasterInstance.showQuestionMark(activeChar);

/* */

/* 794 */ int birthday = activeChar.checkBirthDay();

/* 795 */ if (birthday == 0)

/* */ {

/* 797 */ activeChar.sendPacket(SystemMessageId.YOUR_BIRTHDAY_GIFT_HAS_ARRIVED);

/* */ }

/* 800 */ else if (birthday != -1)

/* */ {

/* 802 */ sm = SystemMessage.getSystemMessage(SystemMessageId.THERE_ARE_S1_DAYS_UNTIL_YOUR_CHARACTERS_BIRTHDAY);

/* 803 */ sm.addString(Integer.toString(birthday));

/* 804 */ activeChar.sendPacket(sm);

/* */ }

/* */

/* 807 */ if (!activeChar.getPremiumItemList().isEmpty())

/* */ {

/* 809 */ activeChar.sendPacket(ExNotifyPremiumItem.STATIC_PACKET);

/* */ }

/* */

/* 812 */ if (Config.AUTO_ACTIVATE_SHOTS)

/* */ {

/* 814 */ verifyAndLoadShots(activeChar);

/* */ }

/* */

/* 817 */ for (PlayerSpawnListener listener : listeners)

/* */ {

/* 819 */ listener.onSpawn(activeChar);

/* */ }

/* */ }

/* */

/* */ private void onEnterAio(L2PcInstance activeChar)

/* */ {

/* 828 */ long now = Calendar.getInstance().getTimeInMillis();

/* 829 */ long endDay = activeChar.getAioEndTime();

/* 830 */ if (now > endDay)

/* */ {

/* 832 */ activeChar.setAio(false);

/* 833 */ activeChar.setAioEndTime(0L);

/* 834 */ activeChar.lostAioSkills();

/* 835 */ activeChar.removeExpAndSp(6299994999L, 366666666);

/* 836 */ if (Config.ALLOW_AIO_ITEM)

/* */ {

/* 838 */ activeChar.getInventory().destroyItemByItemId("", Config.AIO_ITEMID, 1L, activeChar, null);

/* 839 */ activeChar.getWarehouse().destroyItemByItemId("", Config.AIO_ITEMID, 1L, activeChar, null);

/* */ }

/* 841 */ activeChar.sendPacket(new CreatureSay(0, 17, "Server Infor", "Your AIO period ends."));

/* */ }

/* */ else

/* */ {

/* 845 */ Date dt = new Date(endDay);

/* 846 */ _daysleft = ((endDay - now) / 86400000L);

/* 847 */ if (_daysleft > 30L) {

/* 848 */ activeChar.sendMessage("AIO period ends in " + df.format(dt) + ".");

/* 849 */ } else if (_daysleft > 0L) {

/* 850 */ activeChar.sendMessage("Left " + (int)_daysleft + " days for AIO period ends");

/* 851 */ } else if (_daysleft < 1L)

/* */ {

/* 853 */ long hour = (endDay - now) / 3600000L;

/* 854 */ activeChar.sendMessage("Left " + (int)hour + " hours to AIO period ends");

/* */ }

/* */ }

/* */ }

/* */

/* */ private void onEnterVip(L2PcInstance activeChar)

/* */ {

/* 861 */ long now = Calendar.getInstance().getTimeInMillis();

/* 862 */ long endDay = activeChar.getVipEndTime();

/* 863 */ if (now > endDay)

/* */ {

/* 865 */ activeChar.setVip(false);

/* 866 */ activeChar.setVipEndTime(0L);

/* 867 */ activeChar.sendMessage("Removed your Vip stats... period ends ");

/* */ }

/* */ else

/* */ {

/* 871 */ Date dt = new Date(endDay);

/* 872 */ _daysleft = ((endDay - now) / 86400000L);

/* 873 */ if (_daysleft > 30L) {

/* 874 */ activeChar.sendMessage("Vip period ends in " + df.format(dt) + ". enjoy the Game");

/* 875 */ } else if (_daysleft > 0L) {

/* 876 */ activeChar.sendMessage("left " + (int)_daysleft + " days for Vip period ends");

/* 877 */ } else if (_daysleft < 1L)

/* */ {

/* 879 */ long hour = (endDay - now) / 3600000L;

/* 880 */ activeChar.sendMessage("left " + (int)hour + " hours to Vip period ends");

/* */ }

/* */ }

/* */ }

/* */

/* */ private void engage(L2PcInstance cha)

/* */ {

/* 887 */ int _chaid = cha.getObjectId();

/* */

/* 889 */ for (Couple cl : CoupleManager.getInstance().getCouples())

/* */ {

/* 891 */ if ((cl.getPlayer1Id() == _chaid) || (cl.getPlayer2Id() == _chaid))

/* */ {

/* 893 */ if (cl.getMaried())

/* */ {

/* 895 */ cha.setMarried(true);

/* */ }

/* */

/* 898 */ cha.setCoupleId(cl.getId());

/* */

/* 900 */ if (cl.getPlayer1Id() == _chaid)

/* */ {

/* 902 */ cha.setPartnerId(cl.getPlayer2Id());

/* */ }

/* */ else

/* */ {

/* 906 */ cha.setPartnerId(cl.getPlayer1Id());

/* */ }

/* */ }

/* */ }

/* */ }

/* */

/* */ private void notifyPartner(L2PcInstance cha, int partnerId)

/* */ {

/* 918 */ if (cha.getPartnerId() != 0)

/* */ {

/* 920 */ int objId = cha.getPartnerId();

/* */ try

/* */ {

/* 924 */ L2PcInstance partner = L2World.getInstance().getPlayer(objId);

/* */

/* 926 */ if (partner != null)

/* */ {

/* 928 */ partner.sendMessage("Your Partner has logged in.");

/* */ }

/* */

/* 931 */ partner = null;

/* */ }

/* */ catch (ClassCastException cce)

/* */ {

/* 935 */ _log.warning("Wedding Error: ID " + objId + " is now owned by a(n) " + L2World.getInstance().findObject(objId).getClass().getSimpleName());

/* */ }

/* */ }

/* */ }

/* */

/* */ private void notifyClanMembers(L2PcInstance activeChar)

/* */ {

/* 945 */ L2Clan clan = activeChar.getClan();

/* */

/* 948 */ if (clan != null)

/* */ {

/* 950 */ clan.getClanMember(activeChar.getObjectId()).setPlayerInstance(activeChar);

/* 951 */ SystemMessage msg = SystemMessage.getSystemMessage(SystemMessageId.CLAN_MEMBER_S1_LOGGED_IN);

/* 952 */ msg.addString(activeChar.getName());

/* 953 */ clan.broadcastToOtherOnlineMembers(msg, activeChar);

/* 954 */ msg = null;

/* 955 */ clan.broadcastToOtherOnlineMembers(new PledgeShowMemberListUpdate(activeChar), activeChar);

/* */ }

/* */ }

/* */

/* */ private void notifySponsorOrApprentice(L2PcInstance activeChar)

/* */ {

/* 964 */ if (activeChar.getSponsor() != 0)

/* */ {

/* 966 */ L2PcInstance sponsor = L2World.getInstance().getPlayer(activeChar.getSponsor());

/* */

/* 968 */ if (sponsor != null)

/* */ {

/* 970 */ SystemMessage msg = SystemMessage.getSystemMessage(SystemMessageId.YOUR_APPRENTICE_S1_HAS_LOGGED_IN);

/* 971 */ msg.addString(activeChar.getName());

/* 972 */ sponsor.sendPacket(msg);

/* */ }

/* */ }

/* 975 */ else if (activeChar.getApprentice() != 0)

/* */ {

/* 977 */ L2PcInstance apprentice = L2World.getInstance().getPlayer(activeChar.getApprentice());

/* */

/* 979 */ if (apprentice != null)

/* */ {

/* 981 */ SystemMessage msg = SystemMessage.getSystemMessage(SystemMessageId.YOUR_SPONSOR_C1_HAS_LOGGED_IN);

/* 982 */ msg.addString(activeChar.getName());

/* 983 */ apprentice.sendPacket(msg);

/* */ }

/* */ }

/* */ }

/* */

/* */ private void loadTutorial(L2PcInstance player)

/* */ {

/* 990 */ QuestState qs = player.getQuestState("255_Tutorial");

/* */

/* 992 */ if (qs != null)

/* */ {

/* 994 */ qs.getQuest().notifyEvent("UC", null, player);

/* */ }

/* */ }

/* */

/* */ private void verifyAndLoadShots(L2PcInstance activeChar)

/* */ {

/* 1004 */ int soulId = -1;

/* 1005 */ int spiritId = -1;

/* 1006 */ int bspiritId = -1;

/* */

/* 1008 */ if ((!activeChar.isDead()) && (activeChar.getActiveWeaponItem() != null))

/* */ {

/* 1010 */ switch (activeChar.getActiveWeaponItem().getCrystalType())

/* */ {

/* */ case 0:

/* 1013 */ soulId = 1835;

/* 1014 */ spiritId = 2509;

/* 1015 */ bspiritId = 3947;

/* 1016 */ break;

/* */ case 1:

/* 1018 */ soulId = 1463;

/* 1019 */ spiritId = 2510;

/* 1020 */ bspiritId = 3948;

/* 1021 */ break;

/* */ case 2:

/* 1023 */ soulId = 1464;

/* 1024 */ spiritId = 2511;

/* 1025 */ bspiritId = 3949;

/* 1026 */ break;

/* */ case 3:

/* 1028 */ soulId = 1465;

/* 1029 */ spiritId = 2512;

/* 1030 */ bspiritId = 3950;

/* 1031 */ break;

/* */ case 4:

/* 1033 */ soulId = 1466;

/* 1034 */ spiritId = 2513;

/* 1035 */ bspiritId = 3951;

/* 1036 */ break;

/* */ case 5:

/* */ case 6:

/* */ case 7:

/* 1040 */ soulId = 1467;

/* 1041 */ spiritId = 2514;

/* 1042 */ bspiritId = 3952;

/* */ }

/* */

/* 1046 */ if ((soulId > -1) && (activeChar.getInventory().getInventoryItemCount(soulId, -1) > Config.AUTO_ACTIVATE_SHOTS_MIN))

/* */ {

/* 1048 */ activeChar.addAutoSoulShot(soulId);

/* 1049 */ activeChar.sendPacket(new ExAutoSoulShot(soulId, 1));

/* */

/* 1051 */ SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.USE_OF_S1_WILL_BE_AUTO);

/* 1052 */ sm.addItemName(activeChar.getInventory().getItemByItemId(soulId));

/* 1053 */ activeChar.sendPacket(sm);

/* */ }

/* */

/* 1056 */ if ((bspiritId > -1) && (activeChar.getInventory().getInventoryItemCount(bspiritId, -1) > Config.AUTO_ACTIVATE_SHOTS_MIN))

/* */ {

/* 1058 */ activeChar.addAutoSoulShot(bspiritId);

/* 1059 */ activeChar.sendPacket(new ExAutoSoulShot(bspiritId, 1));

/* */

/* 1061 */ SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.USE_OF_S1_WILL_BE_AUTO);

/* 1062 */ sm.addItemName(activeChar.getInventory().getItemByItemId(bspiritId));

/* 1063 */ activeChar.sendPacket(sm);

/* */ }

/* 1065 */ else if ((spiritId > -1) && (activeChar.getInventory().getInventoryItemCount(spiritId, -1) > Config.AUTO_ACTIVATE_SHOTS_MIN))

/* */ {

/* 1067 */ activeChar.addAutoSoulShot(spiritId);

/* 1068 */ activeChar.sendPacket(new ExAutoSoulShot(spiritId, 1));

/* */

/* 1070 */ SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.USE_OF_S1_WILL_BE_AUTO);

/* 1071 */ sm.addItemName(activeChar.getInventory().getItemByItemId(spiritId));

/* 1072 */ activeChar.sendPacket(sm);

/* */ }

/* */ }

/* */ }

/* */

/* */ public String getType()

/* */ {

/* 1080 */ return "[C] 11 EnterWorld";

/* */ }

/* */

/* */ protected boolean triggersOnActionRequest()

/* */ {

/* 1086 */ return false;

/* */ }

/* */

/* */ public static void addSpawnListener(PlayerSpawnListener listener)

/* */ {

/* 1096 */ if (!listeners.contains(listener))

/* */ {

/* 1098 */ listeners.add(listener);

/* */ }

/* */ }

/* */

/* */ public static void removeSpawnListener(PlayerSpawnListener listener)

/* */ {

/* 1108 */ listeners.remove(listener);

/* */ }

/* */

/* */ private void PremiumServiceIcon(L2PcInstance activeChar)

/* */ {

/* 1114 */ if (activeChar.getPremiumService() == 1)

/* */ {

/* 1116 */ activeChar.sendPacket(new PremiumState(activeChar.getObjectId(), 1));

/* 1117 */ activeChar.sendMessage("Premium account: now active");

/* */ }

/* */ }

/* */

/* */ private void notifyCastleOwner(L2PcInstance activeChar)

/* */ {

/* 1123 */ L2Clan clan = activeChar.getClan();

/* */

/* 1125 */ if (clan != null)

/* */ {

/* 1127 */ if (clan.getCastleId() > 0)

/* */ {

/* 1129 */ Castle castle = CastleManager.getInstance().getCastleById(clan.getCastleId());

/* 1130 */ if ((castle != null) && (activeChar.getObjectId() == clan.getLeaderId()))

/* */ {

/* 1132 */ Broadcast.toAllOnlinePlayers(new CreatureSay(1, 20, "Castle System", "Lord " + activeChar.getName() + " Ruler Of " + castle.getName() + " Castle is Now Online!"));

/* */ }

/* */ }

/* */ }

/* */ }

/* */ }

 

/

 

 

выручайте советом что не так с кодом или с головой?)

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты
Гость
Эта тема закрыта для публикации ответов.
Авторизация  

  • Последние посетители   0 пользователей онлайн

    Ни одного зарегистрированного пользователя не просматривает данную страницу

×
×
  • Создать...