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 ?

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

    • Hello i need one developer for make one l2 server
    • Wholesale buyers - special terms!   Looking for a profitable bulk deal? We’ll let you choose numbers from our pool - and find the ones that fit your needs perfectly.   Message us here 👉 [https://t.me/vibe_sms_admin] - we’ll discuss, agree on the price, and offer a discount if needed!   Our website: https://vibe-sms.net/ Our Telegram channel: https://t.me/vibe_sms
    • 🎉 **OPENING — Lineage 2 x17 MULTIPROF COMFORT SERVER!** 🔥 **October 31, 2025 at 20:00 (MSK)** (OBT starts **October 27, 2025 at 20:00**) 💎 **Multeria** invites you to join the brand-new **Multiprof server** — built with care, balance, and community feedback in mind! ⚔️ **COMFORT RATES:** • EXP ×17 (with PA ×25.5) • SP ×8.5 (with PA ×17) • Drop / Spoil ×1 (with PA ×2.5) • Adena ×1 (with PA ×2) 🚀 **WHAT’S NEW:** • New max level — **100** • **100% Craft System** for armor, weapons, belts (incl. Power Belt), bracelets & talismans • New epic accessory — **Frintezza’s Necklace** • **Mass skills cooldown reduced ×10** (Defense Instinct, Magic Impulse, Fanatic, etc.) • Fair play — HWID limits on global instances and rebirth-based party checks • **New 90+ dungeons** (60/120 min time limits) • **New PvP zones:** Varka, FoG, LoA, Stakato (battle zones active) • **Extra game window** available for in-game currency (Gold Einhasad) 💬 Everything you love about Lineage 2 — **balance, comfort, and fairness**. 🔗 More info: https://hf.multeria.world/
    • Hello everyone, we now have Adena for these projects: l2rebon signature x1 - 1kk = $0.8 l2reborn x10 - 500kk = $3.5 E-Global x Lu4 - 1kk = $1.8 ElmoreLab x5 - 1kk = $1.7 DISCORD - GODDARDSHOP
  • 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