Тема: Frintezza.java
Показать сообщение отдельно
Непрочитано 22.03.2012, 01:19   #3
Аватар для MrFresh
Пользователь

По умолчанию Re: Frintezza.java

Цитата:
Сообщение от pchayka Посмотреть сообщение
АИ босса никак не связано с правилами входа в данж
Да? А это наверное для отвода глаз:

Код:
		if (GrandBossManager.getInstance().getBossStatus(FRINTEZZA) == DORMANT)
		{
			if ((!player.isInParty() || !player.getParty().isLeader(player)) || (player.getParty().getCommandChannel() == null) || (player.getParty().getCommandChannel().getChannelLeader() != player))
				htmltext = "<html><body>No reaction. Contact must be initiated by the Command Channel Leader.</body></html>";
			else if (player.getInventory().getItemByItemId(8073) == null)
				htmltext = "<html><body>You dont have required item.</body></html>";
			else
			{
				player.destroyItemByItemId("Quest", 8073, 1, player, true);
				L2CommandChannel CC = player.getParty().getCommandChannel();
				GrandBossManager.getInstance().setBossStatus(FRINTEZZA, WAITING);
				startQuestTimer("close", 0, npc, null);
				startQuestTimer("room1_spawn", 5000, npc, null);
				startQuestTimer("room_final", 2100000, npc, null);
				startQuestTimer("frintezza_despawn", 60000, npc, null, true);
				_LastAction = System.currentTimeMillis();
				for (L2Party party : CC.getPartys())
				{
					if (party == null)
						continue;
					for (L2PcInstance member : party.getPartyMembers())
					{
						if (member == null || member.getLevel() < 74)
							continue;
						if (!member.isInsideRadius(npc, 700, false, false))
							continue;
						if (_PlayersInside.size() > 45)
						{
							member.sendMessage("The number of challenges have been full, so can not enter.");
							break;
						}
						_PlayersInside.add(member);
						_Zone.allowPlayerEntry(member, 300);
						member.teleToLocation(_invadeLoc[_LocCycle][0] + Rnd.get(50), _invadeLoc[_LocCycle][1] + Rnd.get(50), _invadeLoc[_LocCycle][2]);
					}
					if (_PlayersInside.size() > 45)
						break;
					_LocCycle++;
					if (_LocCycle >= 5)
						_LocCycle = 0;
				}
			}
		}
		else
			htmltext = "<html><body>Someone else is already inside the Magic Force Field. Try again later.</body></html>";
		return htmltext;
	}
__________________
MrFresh вне форума Ответить с цитированием