Resolved Create full instance via EXT?

fa1thDEV

Baron
Customer
  1. This is my general idea:

    Without affect the lvl zone/retail zone:
    create a instance with pvp flag, if you are +61, you can enter to the pvp zone, if you no are 61-80, you get back to normal zone, in the pvp zone appear 24 hours and next day, open other zone

    the problem, is the next:

    I am a new player and I want to go to Cruma Tower to level up, but there is a PvP zone in Cruma Tower, so through an instance, new players will not encounter top players but I want make it via EXT, why make a flag zone via zone is global and not only for instance...

    I create this code:


    Java:
    package instances;
    
    import l2.gameserver.listener.zone.OnZoneEnterLeaveListener;
    import l2.gameserver.model.Creature;
    import l2.gameserver.model.Player;
    import l2.gameserver.model.Zone;
    import l2.gameserver.model.entity.Reflection;
    
    public class CrumaTowerPvP extends Reflection {
    
        private ZoneListener _zoneListener = new ZoneListener();
    
        @Override
        protected void onCreate() {
            super.onCreate();
            getZone("[cruma_tower_pvp_zone]").addListener(_zoneListener);
        }
    
        @Override
        public void onPlayerEnter(Player player) {
            super.onPlayerEnter(player);
            player.startPvPFlag(null);
            player.sendMessage("You have entered the PvP zone! Be careful.");
        }
    
        @Override
        public void onPlayerExit(Player player) {
            super.onPlayerExit(player);
            player.stopPvPFlag();
            player.sendMessage("You have left the PvP zone.");
        }
        
        public class ZoneListener implements OnZoneEnterLeaveListener {
            @Override
            public void onZoneEnter(Zone zone, Creature actor) {
                if (actor.isPlayer()) {
                    Player player = (Player) actor;
                    player.startPvPFlag(null);
                }
            }
    
            @Override
            public void onZoneLeave(Zone zone, Creature actor) {
                if (actor.isPlayer()) {
                    Player player = (Player) actor;
                    player.stopPvPFlag();
                }
            }
        }
    }

    Someone can help me?, thx!








 
is it necessary that you make it a pvp zone?
I think you can just restrict access to the tower for players above 61, so everyone else enters the normal tower. Then through your instance manager, usable only by 61+, you do player.setPvpFlag when they enter, and you remove it when they exit. If they are perma-flagged in the instance, it's like a pvp zone, or almost. Will this work?
 
is it necessary that you make it a pvp zone?
I think you can just restrict access to the tower for players above 61, so everyone else enters the normal tower. Then through your instance manager, usable only by 61+, you do player.setPvpFlag when they enter, and you remove it when they exit. If they are perma-flagged in the instance, it's like a pvp zone, or almost. Will this work?
I want avoid a global flag zone, why this affect the news players leveling
 
If i understood your question correctly, you shouldn't need to create any zone.
Low level players will enter cruma tower in the normal way, with all the mobs lv 40 and so on.
High level players cannot enter cruma tower in the normal way, but you can allow them to enter it as an instance, without any mobs, just for pvp. In that case you set their pvp flag and if it doesn't expire you're good to go.
 
Let me see if I understand: you want players level 61+ in the same area to be flagged, like in a PvP instance, and players level 60- not to be?
 
If i understood your question correctly, you shouldn't need to create any zone.
Low level players will enter cruma tower in the normal way, with all the mobs lv 40 and so on.
High level players cannot enter cruma tower in the normal way, but you can allow them to enter it as an instance, without any mobs, just for pvp. In that case you set their pvp flag and if it doesn't expire you're good to go.
If that’s the case, wouldn’t it just be a matter of creating an instance in Cruma limited to level 61+?
 
If i understood your question correctly, you shouldn't need to create any zone.
Low level players will enter cruma tower in the normal way, with all the mobs lv 40 and so on.
High level players cannot enter cruma tower in the normal way, but you can allow them to enter it as an instance, without any mobs, just for pvp. In that case you set their pvp flag and if it doesn't expire you're good to go.
Yes, but I don't get the with the code, My server explode all time xDD
 
what do you mean by "explode"? XD
describe what's happening
1- If I create a PvP zone, it would be GLOBAL and not for the instance
2- If I create the instance, there is no parameter that makes it FLAG/PvP_zone (Deazer did not implement it)
3- What I am looking for is that if the user is new and goes to a low-level zone, it is not a flag zone and they cannot see the others
4- In the instance, they will be in PvP mode with a level limit without affecting the flag zone, and this would separate new players from those who are already fighting
5- I wanted to do it using an extender, but the server starts up, but when I enter the game, the screen does not load. If I remove the ext, it loads normally

I have seen that MrTitan has achieved this without the need for zones, simply by teleporting the user to the zone (with instance) and completing the missions there, or if it is a PvP zone
 
Back
Top