Where can I change the required amount of players? I have configured 2 people via the L2Config. But when I port in immediately get ported out. And about Baium zone, idk if its an instance. I can get ported in every minute and can wakeup baium everytime. Infinity baiums can be done. Its just takes my blooded fabric and lets me port in, how do I change these?
-Can't walk while talking to NPCs
-I want to disable attacking of NPCs -Can't go alone into seed of destruction
-Can warp through everything
I already change the required amount of players but I still can't get in
/* * Copyright (C) 2004-2013 L2J DataPack
*
* This file is part of L2J DataPack.
*
* L2J DataPack 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.
*
* L2J DataPack 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 instances.SeedOfDestruction;import java.io.File;import java.util.Calendar;import java.util.HashMap;import java.util.List;import java.util.Map;import java.util.concurrent.locks.Lock;import java.util.concurrent.locks.ReentrantLock;import java.util.logging.Level;import javax.xml.parsers.DocumentBuilderFactory;import javolution.util.FastList;import javolution.util.FastMap;import org.w3c.dom.Document;import org.w3c.dom.NamedNodeMap;import org.w3c.dom.Node;import com.l2jserver.Config;import com.l2jserver.gameserver.GeoData;import com.l2jserver.gameserver.ai.CtrlIntention;import com.l2jserver.gameserver.instancemanager.GraciaSeedsManager;import com.l2jserver.gameserver.instancemanager.InstanceManager;import com.l2jserver.gameserver.model.L2CharPosition;import com.l2jserver.gameserver.model.L2CommandChannel;import com.l2jserver.gameserver.model.L2Object.InstanceType;import com.l2jserver.gameserver.model.L2Party;import com.l2jserver.gameserver.model.L2Territory;import com.l2jserver.gameserver.model.L2World;import com.l2jserver.gameserver.model.Location;import com.l2jserver.gameserver.model.actor.L2Attackable;import com.l2jserver.gameserver.model.actor.L2Character;import com.l2jserver.gameserver.model.actor.L2Npc;import com.l2jserver.gameserver.model.actor.L2Trap;import com.l2jserver.gameserver.model.actor.instance.L2DoorInstance;import com.l2jserver.gameserver.model.actor.instance.L2MonsterInstance;import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;import com.l2jserver.gameserver.model.holders.SkillHolder;import com.l2jserver.gameserver.model.instancezone.InstanceWorld;import com.l2jserver.gameserver.model.quest.Quest;import com.l2jserver.gameserver.model.quest.QuestState;import com.l2jserver.gameserver.model.skills.L2Skill;import com.l2jserver.gameserver.network.NpcStringId;import com.l2jserver.gameserver.network.SystemMessageId;import com.l2jserver.gameserver.network.serverpackets.ExShowScreenMessage;import com.l2jserver.gameserver.network.serverpackets.SystemMessage;import com.l2jserver.gameserver.util.Util;/**
* Seed of Destruction instance zone.<br>
* TODO:
* <ul>
* <li>No random mob spawns after mob kill.</li>
* <li>Implement Seed of Destruction Defense state and one party instances.</li>
* <li>Use proper zone spawn system.</li>
* </ul>
* Please maintain consistency between the Seed scripts.
* @author Gigiikun
*/publicclassStage1extendsQuest{protectedclass SOD1World extendsInstanceWorld{publicMap<L2Npc,Boolean> npcList =newFastMap<>();publicint deviceSpawnedMobCount =0;publicLocklock=newReentrantLock();}protectedstaticclassSODSpawn{publicboolean isZone =false;publicboolean isNeededNextFlag =false;publicint npcId;publicint x =0;publicint y =0;publicint z =0;publicint h =0;publicint zone =0;publicint count =0;}privatestaticfinalString qn ="SoDStage1";privatestaticfinalint INSTANCEID =110;// this is the client numberprivatestaticfinalint MIN_PLAYERS =1;privatestaticfinalint MAX_PLAYERS =1;privatestaticfinalint MAX_DEVICESPAWNEDMOBCOUNT =100;// prevent too much mob spawnprivatefinalMap<Integer, L2Territory> _spawnZoneList =newHashMap<>();privatefinalMap<Integer,List<SODSpawn>> _spawnList =newHashMap<>();privatefinalList<Integer> _mustKillMobsId =newFastList<>();// teleportsprivatestaticfinalLocation ENTER_TELEPORT_1 =newLocation(-242759,219981,-9986);privatestaticfinalLocation ENTER_TELEPORT_2 =newLocation(-245800,220488,-12112);privatestaticfinalLocation CENTER_TELEPORT =newLocation(-245802,220528,-12104);// Traps/SkillsprivatestaticfinalSkillHolder TRAP_HOLD =newSkillHolder(4186,9);// 18720-18728privatestaticfinalSkillHolder TRAP_STUN =newSkillHolder(4072,10);// 18729-18736privatestaticfinalSkillHolder TRAP_DAMAGE =newSkillHolder(5340,4);// 18737-18770privatestaticfinalSkillHolder TRAP_SPAWN =newSkillHolder(10002,1);// 18771-18774 : handled in this scriptprivatestaticfinalint[] TRAP_18771_NPCS ={22541,22544,22541,22544};privatestaticfinalint[] TRAP_OTHER_NPCS ={22546,22546,22538,22537};// NPCsprivatestaticfinalint ALENOS =32526;privatestaticfinalint TELEPORT =32601;// mobsprivatestaticfinalint OBELISK =18776;privatestaticfinalint POWERFUL_DEVICE =18777;privatestaticfinalint THRONE_POWERFUL_DEVICE =18778;privatestaticfinalint SPAWN_DEVICE =18696;privatestaticfinalint TIAT =29163;privatestaticfinalint TIAT_GUARD =29162;privatestaticfinalint TIAT_GUARD_NUMBER =5;privatestaticfinalint TIAT_VIDEO_NPC =29169;privatestaticfinal L2CharPosition MOVE_TO_TIAT =new L2CharPosition(-250403,207273,-11952,16384);privatestaticfinal L2CharPosition MOVE_TO_DOOR =new L2CharPosition(-251432,214905,-12088,16384);// TODO: handle this betterprivatestaticfinalint[] SPAWN_MOB_IDS ={22536,22537,22538,22539,22540,22541,22542,22543,22544,22547,22550,22551,22552,22596};// Doors/Walls/Zonesprivatestaticfinalint[] ATTACKABLE_DOORS ={12240005,12240006,12240007,12240008,12240009,12240010,12240013,12240014,12240015,12240016,12240017,12240018,12240021,12240022,12240023,12240024,12240025,12240026,12240028,12240029,12240030};privatestaticfinalint[] ENTRANCE_ROOM_DOORS ={12240001,12240002};privatestaticfinalint[] SQUARE_DOORS ={12240003,12240004,12240011,12240012,12240019,12240020};privatestaticfinalint SCOUTPASS_DOOR =12240027;privatestaticfinalint FORTRESS_DOOR =12240030;privatestaticfinalint THRONE_DOOR =12240031;// spawns// Initialization at 6:30 am on Wednesday and Saturdayprivatestaticfinalint RESET_HOUR =6;privatestaticfinalint RESET_MIN =30;privatestaticfinalint RESET_DAY_1 =4;privatestaticfinalint RESET_DAY_2 =7;privatevoid load(){int spawnCount =0;try{DocumentBuilderFactory factory =DocumentBuilderFactory.newInstance();
factory.setValidating(false);
factory.setIgnoringComments(true);File file =newFile(Config.DATAPACK_ROOT +"/data/spawnZones/seed_of_destruction.xml");if(!file.exists()){
_log.severe("[Seed of Destruction] Missing seed_of_destruction.xml. The quest wont work without it!");return;}Document doc = factory.newDocumentBuilder().parse(file);Node first = doc.getFirstChild();if((first !=null)&&"list".equalsIgnoreCase(first.getNodeName())){for(Node n = first.getFirstChild(); n !=null; n = n.getNextSibling()){if("npc".equalsIgnoreCase(n.getNodeName())){for(Node d = n.getFirstChild(); d !=null; d = d.getNextSibling()){if("spawn".equalsIgnoreCase(d.getNodeName())){NamedNodeMap attrs = d.getAttributes();Node att = attrs.getNamedItem("npcId");if(att ==null){
_log.severe("[Seed of Destruction] Missing npcId in npc List, skipping");continue;}int npcId =Integer.parseInt(attrs.getNamedItem("npcId").getNodeValue());
att = attrs.getNamedItem("flag");if(att ==null){
_log.severe("[Seed of Destruction] Missing flag in npc List npcId: "+ npcId +", skipping");continue;}int flag =Integer.parseInt(attrs.getNamedItem("flag").getNodeValue());if(!_spawnList.containsKey(flag)){
_spawnList.put(flag,newFastList<SODSpawn>());}for(Node cd = d.getFirstChild(); cd !=null; cd = cd.getNextSibling()){if("loc".equalsIgnoreCase(cd.getNodeName())){
attrs = cd.getAttributes();SODSpawn spw =newSODSpawn();
spw.npcId = npcId;
att = attrs.getNamedItem("x");if(att !=null){
spw.x =Integer.parseInt(att.getNodeValue());}else{continue;}
att = attrs.getNamedItem("y");if(att !=null){
spw.y =Integer.parseInt(att.getNodeValue());}else{continue;}
att = attrs.getNamedItem("z");if(att !=null){
spw.z =Integer.parseInt(att.getNodeValue());}else{continue;}
att = attrs.getNamedItem("heading");if(att !=null){
spw.h =Integer.parseInt(att.getNodeValue());}else{continue;}
att = attrs.getNamedItem("mustKill");if(att !=null){
spw.isNeededNextFlag =Boolean.parseBoolean(att.getNodeValue());}if(spw.isNeededNextFlag){
_mustKillMobsId.add(npcId);}
_spawnList.get(flag).add(spw);
spawnCount++;}elseif("zone".equalsIgnoreCase(cd.getNodeName())){
attrs = cd.getAttributes();SODSpawn spw =newSODSpawn();
spw.npcId = npcId;
spw.isZone =true;
att = attrs.getNamedItem("id");if(att !=null){
spw.zone =Integer.parseInt(att.getNodeValue());}else{continue;}
att = attrs.getNamedItem("count");if(att !=null){
spw.count =Integer.parseInt(att.getNodeValue());}else{continue;}
att = attrs.getNamedItem("mustKill");if(att !=null){
spw.isNeededNextFlag =Boolean.parseBoolean(att.getNodeValue());}if(spw.isNeededNextFlag){
_mustKillMobsId.add(npcId);}
_spawnList.get(flag).add(spw);
spawnCount++;}}}}}elseif("spawnZones".equalsIgnoreCase(n.getNodeName())){for(Node d = n.getFirstChild(); d !=null; d = d.getNextSibling()){if("zone".equalsIgnoreCase(d.getNodeName())){NamedNodeMap attrs = d.getAttributes();Node att = attrs.getNamedItem("id");if(att ==null){
_log.severe("[Seed of Destruction] Missing id in spawnZones List, skipping");continue;}int id =Integer.parseInt(att.getNodeValue());
att = attrs.getNamedItem("minZ");if(att ==null){
_log.severe("[Seed of Destruction] Missing minZ in spawnZones List id: "+ id +", skipping");continue;}int minz =Integer.parseInt(att.getNodeValue());
att = attrs.getNamedItem("maxZ");if(att ==null){
_log.severe("[Seed of Destruction] Missing maxZ in spawnZones List id: "+ id +", skipping");continue;}int maxz =Integer.parseInt(att.getNodeValue());
L2Territory ter =new L2Territory(id);for(Node cd = d.getFirstChild(); cd !=null; cd = cd.getNextSibling()){if("point".equalsIgnoreCase(cd.getNodeName())){
attrs = cd.getAttributes();int x, y;
att = attrs.getNamedItem("x");if(att !=null){
x =Integer.parseInt(att.getNodeValue());}else{continue;}
att = attrs.getNamedItem("y");if(att !=null){
y =Integer.parseInt(att.getNodeValue());}else{continue;}
ter.add(x, y, minz, maxz,0);}}
_spawnZoneList.put(id, ter);}}}}}}catch(Exception e){
_log.log(Level.WARNING,"[Seed of Destruction] Could not parse data.xml file: "+ e.getMessage(), e);}if(Config.DEBUG){
_log.info("[Seed of Destruction] Loaded "+ spawnCount +" spawns data.");
_log.info("[Seed of Destruction] Loaded "+ _spawnZoneList.size()+" spawn zones data.");}}privateboolean checkConditions(L2PcInstance player){final L2Party party = player.getParty();if(party ==null){
player.sendPacket(SystemMessageId.NOT_IN_PARTY_CANT_ENTER);returnfalse;}final L2CommandChannel channel = player.getParty().getCommandChannel();if(channel ==null){
player.sendPacket(SystemMessageId.NOT_IN_COMMAND_CHANNEL_CANT_ENTER);returnfalse;}elseif(channel.getLeader()!= player){
player.sendPacket(SystemMessageId.ONLY_PARTY_LEADER_CAN_ENTER);returnfalse;}elseif((channel.getMemberCount()< MIN_PLAYERS)||(channel.getMemberCount()> MAX_PLAYERS)){
player.sendPacket(SystemMessageId.PARTY_EXCEEDED_THE_LIMIT_CANT_ENTER);returnfalse;}for(L2PcInstance partyMember : channel.getMembers()){if(partyMember.getLevel()<75){SystemMessage sm =SystemMessage.getSystemMessage(SystemMessageId.C1_LEVEL_REQUIREMENT_NOT_SUFFICIENT);
sm.addPcName(partyMember);
party.broadcastPacket(sm);returnfalse;}if(!Util.checkIfInRange(1000, player, partyMember,false)){SystemMessage sm =SystemMessage.getSystemMessage(SystemMessageId.C1_IS_IN_LOCATION_THAT_CANNOT_BE_ENTERED);
sm.addPcName(partyMember);
party.broadcastPacket(sm);returnfalse;}Long reentertime =InstanceManager.getInstance().getInstanceTime(partyMember.getObjectId(), INSTANCEID);if(System.currentTimeMillis()< reentertime){SystemMessage sm =SystemMessage.getSystemMessage(SystemMessageId.C1_MAY_NOT_REENTER_YET);
sm.addPcName(partyMember);
party.broadcastPacket(sm);returnfalse;}}returntrue;}protectedint enterInstance(L2PcInstance player,Stringtemplate,Location loc){int instanceId =0;// check for existing instances for this playerInstanceWorld world =InstanceManager.getInstance().getPlayerWorld(player);// existing instanceif(world !=null){if(!(world instanceof SOD1World)){
player.sendPacket(SystemMessageId.ALREADY_ENTERED_ANOTHER_INSTANCE_CANT_ENTER);return0;}
teleportPlayer(player, loc, world.getInstanceId(),false);return world.getInstanceId();}// New instanceif(!checkConditions(player)){return0;}
instanceId =InstanceManager.getInstance().createDynamicInstance(template);
world =new SOD1World();
world.setTemplateId(INSTANCEID);
world.setInstanceId(instanceId);
world.setStatus(0);InstanceManager.getInstance().addWorld(world);
spawnState((SOD1World) world);for(L2DoorInstance door :InstanceManager.getInstance().getInstance(instanceId).getDoors()){if(Util.contains(ATTACKABLE_DOORS, door.getDoorId())){
door.setIsAttackableDoor(true);}}
_log.info("Seed of Destruction started "+template+" Instance: "+ instanceId +" created by player: "+ player.getName());// teleport playersif((player.getParty()==null)||(player.getParty().getCommandChannel()==null)){
teleportPlayer(player, loc, instanceId,false);
world.addAllowed(player.getObjectId());}else{for(L2PcInstance channelMember : player.getParty().getCommandChannel().getMembers()){
teleportPlayer(channelMember, loc, instanceId,false);
world.addAllowed(channelMember.getObjectId());}}return instanceId;}protectedboolean checkKillProgress(L2Npc mob, SOD1World world){if(world.npcList.containsKey(mob)){
world.npcList.put(mob,true);}for(boolean isDead : world.npcList.values()){if(!isDead){returnfalse;}}returntrue;}privatevoid spawnFlaggedNPCs(SOD1World world,int flag){if(world.lock.tryLock()){try{for(SODSpawn spw : _spawnList.get(flag)){if(spw.isZone){for(int i =0; i < spw.count; i++){if(_spawnZoneList.containsKey(spw.zone)){int[] point = _spawnZoneList.get(spw.zone).getRandomPoint();
spawn(world, spw.npcId, point[0], point[1],GeoData.getInstance().getSpawnHeight(point[0], point[1], point[2], point[3],null), getRandom(65535), spw.isNeededNextFlag);}else{
_log.info("[Seed of Destruction] Missing zone: "+ spw.zone);}}}else{
spawn(world, spw.npcId, spw.x, spw.y, spw.z, spw.h, spw.isNeededNextFlag);}}}finally{
world.lock.unlock();}}}protectedboolean spawnState(SOD1World world){if(world.lock.tryLock()){try{
world.npcList.clear();switch(world.getStatus()){case0:
spawnFlaggedNPCs(world,0);break;case1:ExShowScreenMessage message1 =newExShowScreenMessage(NpcStringId.THE_ENEMIES_HAVE_ATTACKED_EVERYONE_COME_OUT_AND_FIGHT_URGH,5,1);
sendScreenMessage(world, message1);for(int i : ENTRANCE_ROOM_DOORS){
openDoor(i, world.getInstanceId());}
spawnFlaggedNPCs(world,1);break;case2:case3:// handled elsewherereturntrue;case4:ExShowScreenMessage message2 =newExShowScreenMessage(NpcStringId.OBELISK_HAS_COLLAPSED_DONT_LET_THE_ENEMIES_JUMP_AROUND_WILDLY_ANYMORE,5,1);
sendScreenMessage(world, message2);for(int i : SQUARE_DOORS){
openDoor(i, world.getInstanceId());}
spawnFlaggedNPCs(world,4);break;case5:
openDoor(SCOUTPASS_DOOR, world.getInstanceId());
spawnFlaggedNPCs(world,3);
spawnFlaggedNPCs(world,5);break;case6:
openDoor(THRONE_DOOR, world.getInstanceId());break;case7:
spawnFlaggedNPCs(world,7);break;case8:ExShowScreenMessage message4 =newExShowScreenMessage(NpcStringId.COME_OUT_WARRIORS_PROTECT_SEED_OF_DESTRUCTION,5,1);
sendScreenMessage(world, message4);
world.deviceSpawnedMobCount =0;
spawnFlaggedNPCs(world,8);break;case9:// instance endbreak;}
world.incStatus();returntrue;}finally{
world.lock.unlock();}}returnfalse;}protectedvoid spawn(SOD1World world,int npcId,int x,int y,int z,int h,boolean addToKillTable){// trapsif((npcId >=18720)&&(npcId <=18774)){
L2Skill skill =null;if(npcId <=18728){
skill = TRAP_HOLD.getSkill();}elseif(npcId <=18736){
skill = TRAP_STUN.getSkill();}elseif(npcId <=18770){
skill = TRAP_DAMAGE.getSkill();}else{
skill = TRAP_SPAWN.getSkill();}
addTrap(npcId, x, y, z, h, skill, world.getInstanceId());return;}
L2Npc npc = addSpawn(npcId, x, y, z, h,false,0,false, world.getInstanceId());if(addToKillTable){
world.npcList.put(npc,false);}
npc.setIsNoRndWalk(true);if(npc.isInstanceType(InstanceType.L2Attackable)){((L2Attackable) npc).setSeeThroughSilentMove(true);}if(npcId == TIAT_VIDEO_NPC){
startQuestTimer("DoorCheck",10000, npc,null);}elseif(npcId == SPAWN_DEVICE){
npc.disableCoreAI(true);
startQuestTimer("Spawn",10000, npc,null,true);}elseif(npcId == TIAT){for(int i =0; i < TIAT_GUARD_NUMBER; i++){
addMinion((L2MonsterInstance) npc, TIAT_GUARD);}}}protectedvoid setInstanceTimeRestrictions(SOD1World world){Calendar reenter =Calendar.getInstance();
reenter.set(Calendar.MINUTE, RESET_MIN);
reenter.set(Calendar.HOUR_OF_DAY, RESET_HOUR);// if time is >= RESET_HOUR - roll to the next dayif(reenter.getTimeInMillis()<=System.currentTimeMillis()){
reenter.add(Calendar.DAY_OF_MONTH,1);}if(reenter.get(Calendar.DAY_OF_WEEK)<= RESET_DAY_1){while(reenter.get(Calendar.DAY_OF_WEEK)!= RESET_DAY_1){
reenter.add(Calendar.DAY_OF_MONTH,1);}}else{while(reenter.get(Calendar.DAY_OF_WEEK)!= RESET_DAY_2){
reenter.add(Calendar.DAY_OF_MONTH,1);}}SystemMessage sm =SystemMessage.getSystemMessage(SystemMessageId.INSTANT_ZONE_S1_RESTRICTED);
sm.addInstanceName(INSTANCEID);// set instance reenter time for all allowed playersfor(int objectId : world.getAllowed()){
L2PcInstance player = L2World.getInstance().getPlayer(objectId);InstanceManager.getInstance().setInstanceTime(objectId, INSTANCEID, reenter.getTimeInMillis());if((player !=null)&& player.isOnline()){
player.sendPacket(sm);}}}privatevoid sendScreenMessage(SOD1World world,ExShowScreenMessage message){for(int objId : world.getAllowed()){
L2PcInstance player = L2World.getInstance().getPlayer(objId);if(player !=null){
player.sendPacket(message);}}}@OverridepublicString onSpawn(L2Npc npc){if(npc.getNpcId()== TIAT_GUARD){
startQuestTimer("GuardThink",2500+ getRandom(-200,200), npc,null,true);}else{
npc.disableCoreAI(true);}returnsuper.onSpawn(npc);}@OverridepublicString onAggroRangeEnter(L2Npc npc, L2PcInstance player,boolean isSummon){if((isSummon ==false)&&(player !=null)){InstanceWorld tmpworld =InstanceManager.getInstance().getWorld(player.getInstanceId());if(tmpworld instanceof SOD1World){
SOD1World world =(SOD1World) tmpworld;if(world.getStatus()==7){if(spawnState(world)){for(int objId : world.getAllowed()){
L2PcInstance pl = L2World.getInstance().getPlayer(objId);if(pl !=null){
pl.showQuestMovie(5);}}
npc.deleteMe();}}}}returnnull;}@OverridepublicString onAttack(L2Npc npc, L2PcInstance attacker,int damage,boolean isSummon, L2Skill skill){InstanceWorld tmpworld =InstanceManager.getInstance().getWorld(npc.getInstanceId());if(tmpworld instanceof SOD1World){
SOD1World world =(SOD1World) tmpworld;if((world.getStatus()==2)&&(npc.getNpcId()== OBELISK)){
world.setStatus(4);
spawnFlaggedNPCs(world,3);}elseif((world.getStatus()==3)&&(npc.getNpcId()== OBELISK)){
world.setStatus(4);
spawnFlaggedNPCs(world,2);}elseif((world.getStatus()<=8)&&(npc.getNpcId()== TIAT)){if(npc.getCurrentHp()<(npc.getMaxHp()/2)){if(spawnState(world)){
startQuestTimer("TiatFullHp",3000, npc,null);
setInstanceTimeRestrictions(world);}}}}returnnull;}@OverridepublicString onAdvEvent(Stringevent, L2Npc npc, L2PcInstance player){InstanceWorld tmpworld =InstanceManager.getInstance().getWorld(npc.getInstanceId());if(tmpworld instanceof SOD1World){
SOD1World world =(SOD1World) tmpworld;if(event.equalsIgnoreCase("Spawn")){
L2PcInstance target = L2World.getInstance().getPlayer(world.getAllowed().get(getRandom(world.getAllowed().size())));if((world.deviceSpawnedMobCount < MAX_DEVICESPAWNEDMOBCOUNT)&&(target !=null)&&(target.getInstanceId()== npc.getInstanceId())&&!target.isDead()){
L2Attackable mob =(L2Attackable) addSpawn(SPAWN_MOB_IDS[getRandom(SPAWN_MOB_IDS.length)], npc.getSpawn().getLocx(), npc.getSpawn().getLocy(), npc.getSpawn().getLocz(), npc.getSpawn().getHeading(),false,0,false, world.getInstanceId());
world.deviceSpawnedMobCount++;
mob.setSeeThroughSilentMove(true);
mob.setRunning();if(world.getStatus()>=7){
mob.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MOVE_TO_TIAT);}else{
mob.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, MOVE_TO_DOOR);}}}elseif(event.equalsIgnoreCase("DoorCheck")){
L2DoorInstance tmp = getDoor(FORTRESS_DOOR, npc.getInstanceId());if(tmp.getCurrentHp()< tmp.getMaxHp()){
world.deviceSpawnedMobCount =0;
spawnFlaggedNPCs(world,6);ExShowScreenMessage message3 =newExShowScreenMessage(NpcStringId.ENEMIES_ARE_TRYING_TO_DESTROY_THE_FORTRESS_EVERYONE_DEFEND_THE_FORTRESS,5,1);
sendScreenMessage(world, message3);}else{
startQuestTimer("DoorCheck",10000, npc,null);}}elseif(event.equalsIgnoreCase("TiatFullHp")){if(!npc.isStunned()&&!npc.isInvul()){
npc.setCurrentHp(npc.getMaxHp());}}elseif(event.equalsIgnoreCase("BodyGuardThink")){
L2Character mostHate =((L2Attackable) npc).getMostHated();if(mostHate !=null){double dist =Util.calculateDistance(mostHate.getXdestination(), mostHate.getYdestination(), npc.getSpawn().getLocx(), npc.getSpawn().getLocy());if(dist >900){((L2Attackable) npc).reduceHate(mostHate,((L2Attackable) npc).getHating(mostHate));}
mostHate =((L2Attackable) npc).getMostHated();if((mostHate !=null)||(((L2Attackable) npc).getHating(mostHate)<5)){((L2Attackable) npc).returnHome();}}}}return"";}@OverridepublicString onKill(L2Npc npc, L2PcInstance player,boolean isSummon){if(npc.getNpcId()== SPAWN_DEVICE){
cancelQuestTimer("Spawn", npc,null);return"";}InstanceWorld tmpworld =InstanceManager.getInstance().getWorld(npc.getInstanceId());if(tmpworld instanceof SOD1World){
SOD1World world =(SOD1World) tmpworld;if(world.getStatus()==1){if(checkKillProgress(npc, world)){
spawnState(world);}}elseif(world.getStatus()==2){if(checkKillProgress(npc, world)){
world.incStatus();}}elseif((world.getStatus()==4)&&(npc.getNpcId()== OBELISK)){
spawnState(world);}elseif((world.getStatus()==5)&&(npc.getNpcId()== POWERFUL_DEVICE)){if(checkKillProgress(npc, world)){
spawnState(world);}}elseif((world.getStatus()==6)&&(npc.getNpcId()== THRONE_POWERFUL_DEVICE)){if(checkKillProgress(npc, world)){
spawnState(world);}}elseif(world.getStatus()>=7){if(npc.getNpcId()== TIAT){
world.incStatus();for(int objId : world.getAllowed()){
L2PcInstance pl = L2World.getInstance().getPlayer(objId);if(pl !=null){
pl.showQuestMovie(6);}}for(L2Npc mob :InstanceManager.getInstance().getInstance(world.getInstanceId()).getNpcs()){
mob.deleteMe();}GraciaSeedsManager.getInstance().increaseSoDTiatKilled();}elseif(npc.getNpcId()== TIAT_GUARD){
addMinion(((L2MonsterInstance) npc).getLeader(), TIAT_GUARD);}}}return"";}@OverridepublicString onTalk(L2Npc npc, L2PcInstance player){int npcId = npc.getNpcId();QuestState st = player.getQuestState(qn);if(st ==null){
st = newQuestState(player);}if(npcId == ALENOS){InstanceWorld world =InstanceManager.getInstance().getPlayerWorld(player);if((GraciaSeedsManager.getInstance().getSoDState()==1)||((world !=null)&&(world instanceof SOD1World))){
enterInstance(player,"SeedOfDestructionStage1.xml", ENTER_TELEPORT_1);}elseif(GraciaSeedsManager.getInstance().getSoDState()==2){
teleportPlayer(player, ENTER_TELEPORT_2,0,false);}}elseif(npcId == TELEPORT){
teleportPlayer(player, CENTER_TELEPORT, player.getInstanceId(),false);}return"";}@OverridepublicString onTrapAction(L2Trap trap, L2Character trigger,TrapAction action){InstanceWorld tmpworld =InstanceManager.getInstance().getWorld(trap.getInstanceId());if(tmpworld instanceof SOD1World){
SOD1World world =(SOD1World) tmpworld;switch(action){case TRAP_TRIGGERED:if(trap.getNpcId()==18771){for(int npcId : TRAP_18771_NPCS){
addSpawn(npcId, trap.getX(), trap.getY(), trap.getZ(), trap.getHeading(),true,0,true, world.getInstanceId());}}else{for(int npcId : TRAP_OTHER_NPCS){
addSpawn(npcId, trap.getX(), trap.getY(), trap.getZ(), trap.getHeading(),true,0,true, world.getInstanceId());}}break;}}returnnull;}publicStage1(int questId,String name,String descr){super(questId, name, descr);
load();
addStartNpc(ALENOS);
addTalkId(ALENOS);
addStartNpc(TELEPORT);
addTalkId(TELEPORT);
addAttackId(OBELISK);
addSpawnId(OBELISK);
addKillId(OBELISK);
addSpawnId(POWERFUL_DEVICE);
addKillId(POWERFUL_DEVICE);
addSpawnId(THRONE_POWERFUL_DEVICE);
addKillId(THRONE_POWERFUL_DEVICE);
addAttackId(TIAT);
addKillId(TIAT);
addKillId(SPAWN_DEVICE);
addSpawnId(TIAT_GUARD);
addKillId(TIAT_GUARD);
addAggroRangeEnterId(TIAT_VIDEO_NPC);// registering spawn traps which handled in this scriptfor(int i =18771; i <=18774; i++){
addTrapActionId(i);}for(int mobId : _mustKillMobsId){
addKillId(mobId);}}publicstaticvoid main(String[] args){// now call the constructor (starts up the)newStage1(-1, qn,"instances");}}
obviously this comes down to the quality of the service you are buying, i dont understand if you are not happy in the first place why are you fustrated? just go get another service, we are discussing basic IQ.
if you are selling something, you have to have both updated, right? people see forum first, not website.
if you are selling something, you have to have both updated, right? people see forum first, not website.
⏳ L2Elixir Open Beta goes live in less than 4 hours!
This Saturday, November 15th at 21:00 (UTC +2), the gates open for our biggest testing phase!
🔥 Don’t miss the first 30 minutes — exclusive rewards await!
A special NPC, “The Judge”, will appear in Giran, offering unique bonuses to early participants:
🏅 Open Beta Rewards:
- The first 2 players who talk to The Judge → Premium Account for Launch
- Another 2 random players who interact → Premium Account
- Everyone who speaks to the NPC within the first 30 minutes → Legendary Starter Pack for all characters on launch day (Nov 28th, 2025)
📌 The NPC will spawn exactly at 21:00 (UTC+2).
⏱️ Follow the countdown on our website — the hype is real!
Create your account & download the Updater to be ready!
🔗 https://l2elixir.org/connect/
💬 Discord: https://discord.gg/5ydPHvhbxs
Question
II337
I got some questions :
Question about Beleth Instance.
Where can I change the required amount of players?
I have configured 2 people via the L2Config.
But when I port in immediately get ported out.
And about Baium zone, idk if its an instance.
I can get ported in every minute and can wakeup baium
everytime. Infinity baiums can be done. Its just takes
my blooded fabric and lets me port in, how do I change these?
-Can't walk while talking to NPCs
-I want to disable attacking of NPCs
-Can't go alone into seed of destruction
-Can warp through everything
I already change the required amount of players but I still can't get in
Edited by II3375 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now