Jump to content
  • 0

Problem with TvT


Question

7 answers to this question

Recommended Posts

  • 0
Posted

Yes, your pack developers can help you.. First try to submit this bug to those who created this pack

 

In fact i search just the file that manage the teleport to village after event. If i find the file, i think i will be able to solve the problem.

I use L2J ( Freya )

Sorry for my english if i made a mistake

  • 0
Posted

In fact i search just the file that manage the teleport to village after event. If i find the file, i think i will be able to solve the problem.

 

There isn't special file to teleport after TvT :P.

 

Where Tvt ends, add some codes to port back all participants. Check how the "admin_recall" is made, and apply it on a "for" loop.

 

for tvt_members
    port somewhere

 

If you want an hint, your tvt's end surely got a custom message "tvt is ended blabla". Just make a search via eclipse in your project with this custom message, you will find the good place where to port back players.

  • 0
Posted

if you are using freya, go to your configs file on the gameserver side and find the info about the TVT, make sure you have all the setting right. if 1 little thing is wrong you will get errors or the event will not work right. I got errors as well here. fixed now and working great.

  • 0
Posted

	public static void stopFight()
{
	// Set state INACTIVATING
	setState(EventState.INACTIVATING);
	//Unspawn event npc
	unSpawnNpc();
	// Opens all doors specified in configs for tvt
	openDoors(Config.TVT_DOORS_IDS_TO_CLOSE);
	// Closes all doors specified in Configs for tvt
	closeDoors(Config.TVT_DOORS_IDS_TO_OPEN);

	// Iterate over all teams
	for (TvTEventTeam team : _teams)
	{
		for (L2PcInstance playerInstance : team.getParticipatedPlayers().values())
		{
			// Check for nullpointer
			if (playerInstance != null)
			{
				new TvTEventTeleporter(playerInstance, Config.TVT_EVENT_PARTICIPATION_NPC_COORDINATES, false, false);
			}
		}
	}

	// Cleanup of teams
	_teams[0].cleanMe();
	_teams[1].cleanMe();
	// Set state INACTIVE
	setState(EventState.INACTIVE);
	AntiFeedManager.getInstance().clear(AntiFeedManager.TVT_ID);
}

 

i found it ^^ and i solved the problem =) Thx for your help =)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock