Jump to content

Question

Posted

Hi, i try addapt Frintezza for aCis and have error when trying enter. Only pick quest item, if try again enter give message : "Someone else is already inside the Magic Force Field. Try again later."

 

its screen of error in GS:

http://imgur.com/90mCMFf

 

its part of code (onTalk string):

	@Override
	public String onTalk (L2Npc npc, L2PcInstance player)
	{
		if (npc.getNpcId() == CUBE)
		{
			int x = 150037 + Rnd.get(500);
			int y = -57720 + Rnd.get(500);
			player.teleToLocation(x, y, -2976,0);
			return null;
		}

		String htmltext = "";
		if (GrandBossManager.getInstance().getBossStatus(FRINTEZZA) == DEAD)
		{
			htmltext = "<html><body>There is nothing beyond the Magic Force Field. Come back later.<br>(You may not enter because Frintezza is not inside the Imperial Tomb.)</body></html>";
		}
		else 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.getParty().getCommandChannel().getPartys().size() < Config.FRINTEZZA_MIN_PARTIES || player.getParty().getCommandChannel().getPartys().size() > Config.FRINTEZZA_MAX_PARTIES)
			{
				htmltext = "<html><body>Your command channel needs to have at least "+Config.FRINTEZZA_MIN_PARTIES+" parties and a maximum of "+Config.FRINTEZZA_MAX_PARTIES+".</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,false);
				startQuestTimer("room1_spawn", 5000, npc, null,false);
				startQuestTimer("room_final", 2100000, npc, null,false);
				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);
						_frintezzaLair.allowPlayerEntry(member, 300);
						member.teleToLocation(_invadeLoc[_LocCycle][0] + Rnd.get(50), _invadeLoc[_LocCycle][1] + Rnd.get(50), _invadeLoc[_LocCycle][2],0);
					}
					if (_PlayersInside.size() > 45)
						break;

					_LocCycle++;
					if (_LocCycle >= 6)
						_LocCycle = 1;
				}
			}
		}
		else
			htmltext = "<html><body>Someone else is already inside the Magic Force Field. Try again later.</body></html>";

		return htmltext;
	}

Pls help.

3 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.


  • Posts

    • Same glitch or "technique" was working on Interlude L2Pride aswell.. only few knew about it!
    • 🌟 Need fast setup and guaranteed warranty? All products are fully tested and delivered instantly 24/7.
    • 7 DAYS TO CLOSED BETA!   WARFRONT Closed Beta begins in just 7 days!    If you're planning to participate and haven't registered yet, please make sure you [b]register now[/b]. If you're coming with friends or your clan, please make sure they register too — registration only takes a few seconds.   https://l2warfront.com/   Over the next couple of days I will begin sending emails to registered players containing: Account registration/access link WARFRONT Game Client WARFRONT Launcher Final Closed Beta instructions Important: Special Closed Beta participant rewards will also be distributed using the email address you registered with, so please make sure you've registered with a valid email you can access.   Closed Beta: 3 October 2026 — 19:00 GMT+0 We're almost there. 7 days. Angels vs Demons. See you on the battlefield.
    • No problem — it will decrypt AA (any chronicles). Text telegram
    • As the title says, we are an International group of players that currently play on Exiliumworld for arround 5 years now and we plan to keep on playing here long term now on. Exiliumworld its a server created on Fafurion client, with new skills added for each class and a completely different gameplay. All classes are good and do great damage, there are new exciting features and party compositions that are incredibly great to be played.   While most of us are Romanians, we also have people from different countrys so English is the main language we use on PvP/TW/Sieges or whenever objective pops on. Our  community runs on Discord, we try to keep it very simple in terms of rules : We dont flame each other, we try to respect each member of this group and overall we mentain a good atmosphere inside the group by always laughing, being positive in any situation and helping each other out with whatever it's needed.   If you also wish to be a part  of our community and play on a server that is opened for over a decade and continues running smooth, always gets updates and fixes, contact me in private on Discord because i won't be active in here. About what classes you can play, we will discuss more details like that when we get in contact. Have a great day, guys and remember : Having a good, stable server and a group of players that respect you and help you whenever you are in need might be the perfect environment for you to grow as a player and also as human being!    CONTACT  DISCORD : pqtestpq_97112 (Me) ash3s8354 (Leader) xmariusx (Subleader)   Whoever you choose to talk to, you will meet a friendly person ready to answer your all questions about our group, server features or explain you all the insights of the server.  P.S. : Don't hesitate to contact us. We also recruit CPs or group of players, not only single players. Have a nice day!   #SABOTAGEclan  
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..