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..
Question
stepas30
Hi. J look for code Queen Ant protection. When player lvl 49+ go do q.ant zone, then his teleported to outdoor nest. Enter only players lvl 40 - 49 . I found the following codes but it does not work maybe you could help
### Eclipse Workspace Patch 1.0 #P L2jFrozen_GameServer Index: head-src/com/l2jfrozen/gameserver/model/zone/type/L2BossZone.java =================================================================== --- head-src/com/l2jfrozen/gameserver/model/zone/type/L2BossZone.java (revision 1113) +++ head-src/com/l2jfrozen/gameserver/model/zone/type/L2BossZone.java (working copy) @@ -137,6 +137,13 @@ return; } + if (!player.isGM() && (player.getLevel() < 40 || player.getLevel() > 49) && getId() == 12019) + { + player.sendMessage("Only players with level 40-49 can enter on Queen Ant zone!"); + player.teleToLocation(MapRegionTable.TeleportWhereType.Town); + return; + } + // if player has been (previously) cleared by npc/ai for entry and the zone is // set to receive players (aka not waiting for boss to respawn) if (_playersAllowed.contains(character.getObjectId())) [code]9 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