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 and welcome Server started 2026-01-05 Web site: https://l2dragonlands.eu Discrod: https://discord.gg/ngQUY8FB8G Rates >Xp x500 >Sp x500 >Drop x25 >Spoil x25 Enchant rates: Safe/max enchant +500  Blessed and simple scrolls max enchant (+200)  Enchant maneger to make +500.  In server items are progresed in tiers. Weapons: Starter > Vesper > Vorpal > Elegia > Ferrum. Armors: Starter > Moirai > Vesper > Vesper Noble > Vorpal > Elegia > Scarlet. Jewels: Starter > Vesper > Vorpal > Elegia > Ferrum. Cloaks: Pearl White > Pitch Black > Frintezza > Class Cloka > Hero > Scarlet. Acessories: Goblin Circlet 1/2lvl > Half Mask Mage 1/2lvl > Half Mask Fighter 1/2lvl > Flame of valakas > Gem Mask > Ferrum Helmet. Belt: Mithril Belt > Vitality Belt. Badges: For fighter and mage from 1lvl to 6lvl upgraded in order. Bracelets: Mithril > Shiny Fighter/Mage > 1/2lvl custom talismans in bracelest. Agathion: 7 tiers upgrade in order eatch one. Clan item shop/ New weapon Spadona upgradeble from 1lvl till 85lvl. Farm zones in order: >Giran Harbor > WasteLand > Gateway > Valley of Saints > Chromatic > Ruins of Despair > Soul Harbor > Dragon Valley. >LvL up zone >PvP zone Custom instance zone. Custom buff maneger it will grand big boost in stats. Lotery maneger to gamble. Extra features ALT+B: >Events  >Rankings  >Clan  >RB Status  >Updates and other Auto Event system: >Team VS Team event - Auto event  >Capture The Flag - Auto event Olympiad: >Retail olympiad game  >Competition period [2] week  >Olympiad start time [18:00] end [00:00]  >Maximum enchant in the Olympiad is +10, not custom items in olympiada only normal ones from shop.
    • L2 VOID - ADVERTISING BANNER   L2 FURY - ANIMATED BANNER   L2 HEROIC - ANIMATED BANNER   L2 WEED - ANIMATED BANNER   L2 REFORGE - ANIMATED LOGO   L2 WARZONE - ANIMATED LOGO   L2 ACME - SPLASH SCREEN   L2 DRUGS - ANIMATED BANNER   L2 GOLD - ADVERTISING BANNER   L2 AARON - ADVERTISING BANNER  
    • Download Here: https://sitehunterus.blogspot.com/2025/12/fashionnova-checker-multi-threaded-high.html VirusTotal https://www.virustotal.com/gui/file/c69e889b53354aecb2bf8ca50b59c9e410bb5a42da4711e80fe04af5f2b3e945?nocache=1 Visit my Blogger list to download 100% free software https://www.freetoolss.com/ https://blackhat8.blogspot.com/ https://hack-crack9.blogspot.com/ https://hackernoons.blogspot.com/ https://sharetools99.blogspot.com/
    • I am very satisfied, wonderful work and trustworthy, thank you for my logo.
  • 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..

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