Jump to content
  • 0

party gatekeeper problem


Question

Posted

hello all..i have this party gatekeeper code https://pastebin.com/kQ86TWmB 
but when i am paste the code on my l2jfrozen it makes zones.htm not to work..you can hit other players when you are intown ..... 
the problem comes from that part of code....if someone can fix the problem it would be appreciated!! thanks in advance.

 

--- head-src/com/l2jfrozen/gameserver/model/zone/L2ZoneManager.java (revision 1132)
+++ head-src/com/l2jfrozen/gameserver/model/zone/L2ZoneManager.java (working copy)
@@ -34,7 +34,7 @@
 public class L2ZoneManager
 {
    private final Logger LOGGER = Logger.getLogger(L2ZoneManager.class);
-   private final FastList<L2ZoneType> _zones;
+   private static FastList<L2ZoneType> _zones;
   
    /**
     * The Constructor creates an initial zone list use registerNewZone() / unregisterZone() to change the zone list
@@ -112,7 +112,7 @@
    /**
     * @return
     */
-   public FastList<L2ZoneType> getZones()
+   public static FastList<L2ZoneType> getZones()
    {
        return _zones;
    }
 
index: head-src/com/l2jfrozen/gameserver/model/L2WorldRegion.java
===================================================================
 
    public boolean checkEffectRangeInsidePeaceZone(final L2Skill skill, final int x, final int y, final int z)
    {
if (_zoneManager != null)
    {
    final int range = skill.getEffectRange();
    final int up = y + range;
    final int down = y - range;
    final int left = x + range;
    final int right = x - range;
           
-for (final L2ZoneType e : _zoneManager.getZones())
+for (final L2ZoneType e : L2ZoneManager.getZones())

5 answers to this question

Recommended Posts

  • 0
Posted

it gives me error on partyteleportinstance.java if i dont edit them...i deleted the part of partyteleportinstance.java that shows inside party zone how many party or players are and it solved.!

  • 0
Posted
9 hours ago, MoNsT3ReN4RgY said:

it gives me error on partyteleportinstance.java if i dont edit them...i deleted the part of partyteleportinstance.java that shows inside party zone how many party or players are and it solved.!

 

Simply call getInstance() from L2ZoneManager... See all existing uses of the method to figure out.

  • Upvote 1

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


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock