Jump to content

Recommended Posts

Posted

This share works in all the packs l2j,l2jfree,l2jemu. If you have any error delete it..It's not

necessary in all the packs

 

Credits SpooKNoF

It's the only who made this and i don't want karma. I took the code from SpooKNoF for the share

 

 

Index: //java/com/l2dot/gameserver/network/serverpackets/DoorInfo.java

===================================================================

--- //java/com/l2dot/gameserver/network/serverpackets/DoorInfo.java (revision 47)

+++ //java/com/l2dot/gameserver/network/serverpackets/DoorInfo.java (revision 59)

@@ -20,5 +20,6 @@

 

import com.l2dot.gameserver.model.actor.instance.L2DoorInstance;

-

+ import com.l2dot.gameserver.model.actor.instance.L2StaticObjectInstance;

+ import com.l2dot.gameserver.network.serverpackets.StaticObject;

/**

 * 60

@@ -38,17 +39,46 @@

private static final String _S__60_DOORINFO = " 4c DoorInfo";

Index: //java/com/l2dot/gameserver/network/serverpackets/DoorInfo.java

 

 

private L2DoorInstance _door;

+ private final int _staticObjectId;

+    private final int _objectId;

+    private final int _type;

+    private final boolean _isTargetable;

+    private final boolean _isClosed;

+    private final boolean _isEnemyOf;

+    private final int _maxHp;

+    private final int _currentHp;

+    private final boolean _showHp;

+    private final int _damageGrade;

 

- public DoorInfo(L2DoorInstance door)

- {

- _door=door;

- }

+

+ public DoorInfo(L2DoorInstance door, boolean showHp)

+    {

+        _staticObjectId = door.getDoorId();

+        _objectId = door.getObjectId();

+        _type = 1;

+        _door=door;

+        _isTargetable = true;

+        _isClosed = !door.getOpen();

+        _isEnemyOf = door.isEnemyOf(_door);

+        _maxHp = door.getMaxHp();

+        _currentHp = (int) door.getCurrentHp();

+        _showHp = showHp;

+        _damageGrade = door.getDamage();

+    }

 

- @Override

- protected final void writeImpl()

- {

- writeC(0x4c);

- writeD(_door.getObjectId());

- writeD(_door.getDoorId());

- }

+    @Override

+    protected final void writeImpl()

+    {

+     writeC(0x4c);

+     writeD(_door.getObjectId());

+     writeD(_door.getDoorId());

+        writeD(_type);

+        writeD(_isTargetable ? 1 : 0);

+        writeD(_isClosed ? 1 : 0);

+        writeD(_door.isEnemyOf(getClient().getActiveChar()) ? 1 : 0);

+        writeD(_currentHp);

+        writeD(_maxHp);

+        writeD(_showHp ? 1 : 0);

+        writeD(_damageGrade);

+    }

 

/* (non-Javadoc)

@@ -62,2 +92,3 @@

 

}

+

 

 

 

 

 

 

Index: //java/com/l2dot/gameserver/network/clientpackets/RequestRecordInfo.java

===================================================================

--- //com/l2dot/gameserver/network/clientpackets/RequestRecordInfo.java (revision 47)

+++ /java/com/l2dot/gameserver/network/clientpackets/RequestRecordInfo.java (revision 61)

@@ -80,5 +80,5 @@

else if (object instanceof L2DoorInstance)

{

- _activeChar.sendPacket(new DoorInfo((L2DoorInstance) object));

+ _activeChar.sendPacket(new DoorInfo((L2DoorInstance) object, false));

_activeChar.sendPacket(new DoorStatusUpdate((L2DoorInstance) object));

}

 

 

 

 

Index: //java/com/l2dot/gameserver/model/actor/knownlist/PcKnownList.java

===================================================================

--- //java/com/l2dot/gameserver/model/actor/knownlist/PcKnownList.java (revision 47)

+++ //java/com/l2dot/gameserver/model/actor/knownlist/PcKnownList.java (revision 60)

@@ -114,5 +114,5 @@

            else if (object instanceof L2DoorInstance)

            {

-                getActiveChar().sendPacket(new DoorInfo((L2DoorInstance) object));

+             getActiveChar().sendPacket(new DoorInfo((L2DoorInstance) object, false));

                getActiveChar().sendPacket(new DoorStatusUpdate((L2DoorInstance) object));

            }

 

 

Posted

well , as zero* says this is spooknof's code. it shouldnt be in public. its stolen.i mean he gaved it to me , and someone stolen my assembla account for a while , and took dot's source and this code too. and some others.. -.-

 

whatever. thanks to spooknof for this.

 

and thanks zero for posting it

Posted

stef dont need to explain yourself...

 

Credits SpooKNoF

It's the only who made this and i don't want karma. I took the code from SpooKNoF for the share

 

only for interlude :)

and its the only one who made it? hes just one who made it work under that shitty interlude :)

 

anyway gg

Posted

ok realy nice zero but you have and other codes? this is prety nice and i i think the l2dot was the best why you stop working this?

 

 

where i add this?  private L2DoorInstance _door;

+    private final int _staticObjectId;

+      private final int _objectId;

+      private final int _type;

+      private final boolean _isTargetable;

+      private final boolean _isClosed;

+      private final boolean _isEnemyOf;

+      private final int _maxHp;

+      private final int _currentHp;

+      private final boolean _showHp;

+      private final int _damageGrade;

 

-  public DoorInfo(L2DoorInstance door)

-  {

-      _door=door;

-  }

+    public DoorInfo(L2DoorInstance door, boolean showHp)

+      {

+          _staticObjectId = door.getDoorId();

+          _objectId = door.getObjectId();

+          _type = 1;

+          _door=door;

+          _isTargetable = true;

+          _isClosed = !door.getOpen();

+          _isEnemyOf = door.isEnemyOf(_door);

+          _maxHp = door.getMaxHp();

+          _currentHp = (int) door.getCurrentHp();

+          _showHp = showHp;

+          _damageGrade = door.getDamage();

+      }

 

-  @Override

-  protected final void writeImpl()

-  {

-      writeC(0x4c);

-      writeD(_door.getObjectId());

-      writeD(_door.getDoorId());

-  }

+      @Override

+      protected final void writeImpl()

+      {

+          writeC(0x4c);

+          writeD(_door.getObjectId());

+          writeD(_door.getDoorId());

+          writeD(_type);

+          writeD(_isTargetable ? 1 : 0);

+          writeD(_isClosed ? 1 : 0);

+          writeD(_door.isEnemyOf(getClient().getActiveChar()) ? 1 : 0);

+          writeD(_currentHp);

+          writeD(_maxHp);

+          writeD(_showHp ? 1 : 0);

+          writeD(_damageGrade);

+      }

 

    /* (non-Javadoc)

@@ -62,2 +92,3 @@

 

}

+

Posted

ok realy nice zero but you have and other codes? this is prety nice and i i think the l2dot was the best why you stop working this?

 

 

where i add this?  private L2DoorInstance _door;

+    private final int _staticObjectId;

+      private final int _objectId;

+      private final int _type;

+      private final boolean _isTargetable;

+      private final boolean _isClosed;

+      private final boolean _isEnemyOf;

+      private final int _maxHp;

+      private final int _currentHp;

+      private final boolean _showHp;

+      private final int _damageGrade;

 

-  public DoorInfo(L2DoorInstance door)

-  {

-      _door=door;

-  }

+    public DoorInfo(L2DoorInstance door, boolean showHp)

+      {

+          _staticObjectId = door.getDoorId();

+          _objectId = door.getObjectId();

+          _type = 1;

+          _door=door;

+          _isTargetable = true;

+          _isClosed = !door.getOpen();

+          _isEnemyOf = door.isEnemyOf(_door);

+          _maxHp = door.getMaxHp();

+          _currentHp = (int) door.getCurrentHp();

+          _showHp = showHp;

+          _damageGrade = door.getDamage();

+      }

 

-  @Override

-  protected final void writeImpl()

-  {

-      writeC(0x4c);

-      writeD(_door.getObjectId());

-      writeD(_door.getDoorId());

-  }

+      @Override

+      protected final void writeImpl()

+      {

+          writeC(0x4c);

+          writeD(_door.getObjectId());

+          writeD(_door.getDoorId());

+          writeD(_type);

+          writeD(_isTargetable ? 1 : 0);

+          writeD(_isClosed ? 1 : 0);

+          writeD(_door.isEnemyOf(getClient().getActiveChar()) ? 1 : 0);

+          writeD(_currentHp);

+          writeD(_maxHp);

+          writeD(_showHp ? 1 : 0);

+          writeD(_damageGrade);

+      }

 

    /* (non-Javadoc)

@@ -62,2 +92,3 @@

 

}

+

 

 

loulou i think you are noob but ok... bfw http://my-trac.assembla.com/L2Dot/timeline where it is?

  • 1 month later...
Posted

Mages,vlepo oti ine sxetika palio to post,alla kapios pou kserei borei na mu apadisei pos duleyei ayto to pragma parapano?pou to vazo,ti kano?Kai an dn leiturgei,iparxei allos tropos na fixaro to bug me tis koloportes na dialiontai mono se siege?

Posted

Thank you for the script, but i get 1 error right here:

_isClosed = !door.getOpen();

What should i change !door.getOpen() too? I'm using L2Server Interludes top revision

 

EDIT:

Seems that changing _closed into int solved the problem, but i don't know if the doors going to work.

Posted

Thank you for the script, but i get 1 error right here:

_isClosed = !door.getOpen();

What should i change !door.getOpen() too? I'm using L2Server Interludes top revision

 

EDIT:

Seems that changing _closed into int solved the problem, but i don't know if the doors going to work.

 

I have the same error, could you post how it should look ?

Posted

Thank you for the script, but i get 1 error right here:

_isClosed = !door.getOpen();

What should i change !door.getOpen() too? I'm using L2Server Interludes top revision

 

EDIT:

Seems that changing _closed into int solved the problem, but i don't know if the doors going to work.

 

Read The share 1st :)

If you have any error delete it......

  • 3 weeks later...
  • 10 months later...
Posted

Sorry for "spamming" in this old thread, but i thought it was a great share and many peaple had a problem :D

 

Thank you for the script, but i get 1 error right here:

_isClosed = !door.getOpen();

What should i change !door.getOpen() too? I'm using L2Server Interludes top revision

 

EDIT:

Seems that changing _closed into int solved the problem, but i don't know if the doors going to work.

 

Since in l2doorinstance getOpen is int, and int as we know can't accept "!" the correct is the following.

_isClosed = door.getOpen() == 0;

I have the same error, could you post how it should look ?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • @ERROR501, I’ve been waiting for the “big update” since last October, and at this point, it’s starting to feel like an empty promise. You’re better off implementing your own minimum detection server-side instead of relying on AAC to fix their issues; despite what their website claims about blocking everything, it clearly falls short.
    • We are taking new orders. Kindly DM us on Telegram!
    • Hello everyone!  I’d like to share an experience that might serve as a lesson for anyone planning to work with third-party protection services—specifically, Active Anticheat. I know this might sound like a strange job request, but  our player base mostly consists of veteran of Lineage 2 players who are used to using bots as part of their gameplay experience. As server administrators, we decided to adapt to our users. That’s why we approached Active Anticheat with a proposal: Allow bot usage under certain conditions. We explained everything in detail, and they agreed.   📌 February – A Promising Start On February 16th, we contacted Active Anticheat to request a custom antibot system. The idea was to kick players using bots during specific times (like sieges), but allow them to log back in without bots afterward. After a few discussions, both sides agreed on the following solution: Bots allowed during regular days. During siege events, anyone using a bot would be automatically kicked. Kicked players could log back in without using bots. The deal was priced at $5,000, which we already paid on March 31st, 2025. Active Anticheat promised delivery by the end of April, or at the latest, by May. Screenshot:  Deal 1 Deal 2   🕐 May – The Delays Begin We followed up multiple times in May, only to finally hear back on May 26th: “It won’t be ready this month. But we’re working on a big update coming in June.” That update? Still nowhere to be seen, even as I’m writing this post. Screenshot:  Delayed   🔁 Plan B – L2Walker Rejected, Adrenaline Offered With our server launch schedule getting tighter, we needed an alternative. At the end of June, we asked Active Anticheat: “Can you at least allow L2Walker access to the server?” Their response on June 28th: “L2Walker can’t be allowed. But we can allow Adrenaline (free & paid version) and L2Helper for $2,000 + $300 (for a new license).” We agreed, hoping it would be a temporary fix while waiting for the promised “big update” (which we had already paid $5,000 for, remember?). Screenshot:  New Offer 1 New Offer 2 New Offer 3   ❌ AA Failed Their setup took about a week. We ran 2–3 rounds of testing using clean clients. The result? Adrenaline (both free and paid) couldn’t connect to our server. It couldn’t detect the Lineage 2 client, because the custom Active Anticheat protection was blocking it. We reached out to Active Anticheat for support, and their response? “You should contact Adrenaline support to enable free Adrenaline for your server. Adrenaline blocks it by default when Active Anticheat is detected.” Then we tested Premium Adrenaline. And it still didn’t work. Active Anticheat stood firm: “It’s not our fault. Adrenaline blocked us—not the other way around.” Screenshot: Failed 1 Failed 2   💸 The Bitter Reality Today, we’re still waiting for answers. No reply. No fix. No update. No refund. We’ve spent a total of $7,300 and received nothing functional in return. And this, despite their full agreement with our initial plan.  
  • Topics

×
×
  • 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