Jump to content
  • 0

[HELP] Cancel Boss Quests


Question

Posted

Hello,

I was wondering how can i close some of the Epic Bosses quest (Baium,Antharas,Valakas etc... server side) so players can enter the zone without the quest items?

As GM state i can enter but with normal character i get teleported back to nearest town. Is it java side? Or i just have to delete something from _init_py ?

 

Thanks for support!

5 answers to this question

Recommended Posts

  • 0
Posted

go to

 

gameserver\model\zone\type

 

open l2bosszone.java

 

and replace all code with this one:

 

/*
* 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 net.sf.l2j.gameserver.model.zone.type;

import net.sf.l2j.gameserver.model.L2Character;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
import net.sf.l2j.gameserver.model.zone.L2ZoneType;


/**
* @author DaRkRaGe
*/
public class L2BossZone extends L2ZoneType
{
private String _zoneName;

public L2BossZone(int id)
{
	super(id);
}


@Override
/*
 * Boss zones have special behaviors for player characters. Players are automatically teleported out when the attempt to enter these zones, except if the time at which they enter the zone is prior to the entry expiration time set for that player. Entry expiration times are set by any one of the following: 1) A player logs out while in a zone (Expiration gets set to logoutTime + _timeInvade) 2)
 * An external source (such as a quest or AI of NPC) set up the player for entry. There exists one more case in which the player will be allowed to enter. That is if the server recently rebooted (boot-up time more recent than currentTime - _timeInvade) AND the player was in the zone prior to reboot.
 */
protected void onEnter(L2Character character)
{

		if (character instanceof L2PcInstance)
		{

			L2PcInstance player = (L2PcInstance) character;
			player.setInsideZone(L2Character.ZONE_NOSUMMONFRIEND, true);

		}
}

@Override
protected void onExit(L2Character character)
{

		if (character instanceof L2PcInstance)
		{
			L2PcInstance player = (L2PcInstance) character;
			player.setInsideZone(L2Character.ZONE_NOSUMMONFRIEND, false);
		}



}


@Override
public void onDieInside(L2Character character)
{
}

@Override
public void onReviveInside(L2Character character)
{
}




}

 

 

and disable all boss from scripts.cfg.. Then you enter to bosszone, player wont be teleported to nearest town...

 

Or you can (i thing it could help), go to data/zones/zones.xml and delete raidboss zones

 

 

  • 0
Posted

Thanks vagos123 for reply but i don't want the RaidBoss i want the zone...

 

Thanks bauwbas for reply i will try both ways one of them should work...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...