Jump to content
  • 0

Question

Posted

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

  • 0
Posted (edited)

Give a try here

                if (getId() == 12019 && (!player.isGM() && player.getLevel() > 49))
                {
                    player.sendMessage("Only players with level 40-49 can enter on Queen Ant zone!");
                    player.teleToLocation(MapRegionTable.TeleportWhereType.Town);
                    return;
                }
Edited by 'Baggos'
  • 0
Posted

 

if (getId() == 12014)
{
if (player.getLevel() < 40 || player.getLevel() < 49)
{
player.sendMessage("Only players with level 40-49 can enter on Queen Ant zone!");
player.teleToLocation(MapRegionTable.TeleportWhereType.Town);
return;
} 
}
  • 0
Posted

if (getId() == 12014)
{
if (player.getLevel() < 40 || player.getLevel() < 49)
{
player.sendMessage("Only players with level 40-49 can enter on Queen Ant zone!");
player.teleToLocation(MapRegionTable.TeleportWhereType.Town);
return;
} 
}

I forgot for low from 40 level.

You have a mistake...

 

if (player.getLevel() < 40 || player.getLevel() < 49)

 

Now only players with 49+ level goes there.. :P

 

Also, what if is:

if (getId() == 12019 && (!player.isGM() && player.getLevel() < 40) && player.getLevel() > 49)
{

or

if (getId() == 12014)
{
if (player.getLevel() < 40 || player.getLevel() < 49)
{

?

  • 0
Posted (edited)

I forgot for low from 40 level.

You have a mistake...

Now only players with 49+ level goes there.. :P

 

Also, what if is:

if (getId() == 12019 && (!player.isGM() && player.getLevel() < 40) && player.getLevel() > 49)
{

or

if (getId() == 12014)
{
if (player.getLevel() < 40 || player.getLevel() < 49)
{

?

didnt read replies indeed i got error 

wtf

 

edited, i am so damn high today

 

yes indeed i was wrong n lvl 49

 

also i dont read replies

 

 

edit too 

 

i just like to read the 1st statement if it is the id true 

then if the rest is true , continue procedure, coding styles :d

Edited by Ayami-
  • 0
Posted (edited)

Sit to see if we were right though. :P

To see what he will say when connected..

 

 

 

 


edited, i am so damn high today

I want and i to be high...  a good cigarette. haha

Edited by 'Baggos'

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


  • Posts

    • Expanding the dominion, the magical Scroll of Escape   The months passed and Orcis dominance over Aden was absolute. Everyone respected his leadership and authority. Now many of his highly ranked soldiers have learned the boat dance of invulnerability but the army had trouble mastering it.    The orc ordered his most loyal engineer, that stranger who his name we still query, to find a way to teach the dance to the solders to turn them into super-soldiers. The stranger searched and search ed and searched, but he could not make the dance easier. For a soldier, with his heavy armor and slow movement was confined to the limits that this shell provided.   But sometimes, the truth hides in simpler things. One day, after testing the dance on the boat many times, the stranger decided to call it a day. But he was too tired to walk back to the city from the Giran Harbor. So he opened his back and used a scroll of escape while still on the boat.  He visited the weapons store, then the church and later decided to go to the west gate of Giran, to do some light sparring with the random villagers.    To his surprise, he could not fight the villagers. Whenever they tried to swing on him, their sword bounced away. And so it came to the strnager, that its not the dance that makes Einhasad bless him with immortality. It's not gods themselves, but an inherent flaw of the mortal world.    And so ... he went to the king, with a bright idea, and a bunch of Scrolls of Escape in hand.   Master I know of a way. And I know of a thousand other ways to trick the gods and gain immortality without dancing infront of them. For it is not the blessing of Einhasad that gives us the gift.    The gods have erred, the world is flawed and only a redesign of the nature's principles can now stop us ...     Epilogue Years ago, there have been stories of people spontaneously blessed by Einhasad. People who would walk on Primeval Isle or in Sieges and be immortal. The elders of the world, the wise ones, never took notice, never acted. For years and years, the ancient magic went unnoticed, but the stranger, figured it out. There's no magic. There never was. And the only reason why the wise ones never figured it out, was cause they had their "telescopes" pointed to the wrong direction. For it's the insignificant, the in-exceptional places, where "magic begins" (If you find my stories interesting, the next story will be about a Canvas in School of Dark Arts that overflows with Ink)
    • I just found it funny that you reversed the reverse engineer champions. They won't like this for sure.    Anyway, the project vision is very good it is aligned with what the players need and want something that both e-global and l2reborn has failed to provide. These are stable projects, they are not good "games". And players play "games" they don't play "projects".  When no good "games" exist, they flock towards good "projects". Lineage 2 private scene has produced decent projects the last years, but no decent "game". I hope you are the first ones to do so.   Generally there are two axis that Lineage 2 needs to evolve on. Modern gaming concepts and the need to respect the aging player's time. So far, most projects treat these aspects as taboo, they seem so afraid to deviate from what they call "true" Lineage 2. But the reality is that times change, you can't stay static forever, you have to evolve. NCSoft failed,they are not paving the way no more. It is us now, the collective community that have to pave our own pathways. WoW has went the same way, private projects took initiative because the company (while not failed) could not steer the game towards what players want and need in 2026.    For that reason I believe your project is going towards the right direction. The four keystones listed in the vision is what I believe is the community really needs but clearly doesn't understand it wants, because noone so far has give them a glimspe of what is beyond their retail-like garden.    I personally don't respect projects like reborn and e-global. As "games", they are simply trash, regardless of their high professionalism as endeavors. They lack innovation, they lack creativity, they are simply good software products,     
  • Topics

×
×
  • Create New...

Important Information

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..