Jump to content

[Share]Doors Status Hp and castle walls{IL}


Recommended Posts

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));

            }

 

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

 

}

+

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

  • 1 month later...

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 ?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

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 ?

Link to comment
Share on other sites

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

    • Hello everyone, as the title says, I want to remove the skill toggle effect when it is active in the skill bar. I did it a few years ago but now I don't remember how, I'm not sure but I think it's in the Skillgrp.dat file but I don't remember what value I should change.     First, thanks to whoever can help me clearly and not pass me by. Greetings and good day
    • L2Focus - Lineage 2 Interlude.   Rates Experience: (EXP) x1000 Skill Points: (SP) x1000 Adena: x1000 VIP: x2 Basic information Armor: TT/DK/DY (Same Stats) Weapon: EPIC/DY/IC (Same Stats) Jewels Boss: ( GM SHOP ) Tattoos: Fight | Mage Acessories: +100 | +300 Server Commands: .menu ( all options included ) Buff Slot: 32 + 4 (Divine Inspiration Free) Npc Buffer: Full + Scheme Buffs Siege: 7 Days Olympiad Hero: 7 Days Nobless: Last Hit in Barakiel Clan / Ally System Clan Info: Max Players: 50 Alliance Info: 1 Clans per ally Royal and Knights: Desactived. AntiZerg Zones: 18 players (2PT's). Enchant Safe Enchant: +5 Max. Enchant: +25 Normal Scroll: 100% chance, Max +5 Blessed Scroll: 80% chance, Max +20 Golden Scroll: +21 45%, +22 35%, +23 25%, +24 15%, +25 5% Golden Fail? - Only Loses scroll Crystal Scroll: 100% chance, Max +25 Augment Skills: Active / Passive 5% chance Augment Stats: STR/ INT / CON 5% chance Events Party Zone: 10:00 | 14:00 | 19:00 | 22:00 | 02:00 (Duration: 60 minutes) Tournament: 11:15 | 16:15 | 20:15 | 23:15 (Duration: 60 minutes) Kill The Boss: 09:00 | 15:00 | 20:00 | 23:00 (Duration: 15 minutes) Pvp Event: 13:10 | 15:10 | 20:10 | 21:10 (Duration: 45 minutes) Team vs Team: Every 1hour 24h/per day Olympiad Olympiad Time: 18:00 ~ 00:00 GMT-3 Min: 9 Matches to be a hero. Olympiad Box: 1 client windows running (PC) Olympiad Items: No Custom Olympiad Enchant: +5 Protection WarGuard: Protect for bots/hwid/phx/cheats Farm: 1 client per (PC). Box Limit: 2 client windows running (PC). Chaotic Zone: 18 players (2PT's). All configurations and features that are not reported here are standard, that is, equal to the official Lineage II or were considered irrelevant.   JOIN NOW www.L2Focus.com
    • that would be much appreciated mate 
    • Hello. 1. Make sure to use in your xml:         <set name="usingServerSideName" val="true"/>         <set name="usingServerSideTitle" val="true"/> 2. And in npcname-e.dat do not use any name (not even a one space) In my case 50011 is Agathion
  • Topics

×
×
  • Create New...