Jump to content
  • 0

Help pls Tatto


Question

5 answers to this question

Recommended Posts

  • 0
Posted
### Eclipse Workspace Patch 1.0

#P L2_GameServer

Index: java/com/l2jserver/gameserver/model/actor/L2Character.java

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

--- java/com/l2jserver/gameserver/model/actor/L2Character.java (revision 4149)

+++ java/com/l2jserver/gameserver/model/actor/L2Character.java (working copy)

@@ -79,7 +79,9 @@

import com.l2jserver.gameserver.network.serverpackets.Attack;

import com.l2jserver.gameserver.network.serverpackets.ChangeMoveType;

import com.l2jserver.gameserver.network.serverpackets.ChangeWaitType;

+import com.l2jserver.gameserver.network.serverpackets.ExBrExtraUserInfo;

import com.l2jserver.gameserver.network.serverpackets.FlyToLocation;

+import com.l2jserver.gameserver.network.serverpackets.InventoryUpdate;

import com.l2jserver.gameserver.network.serverpackets.L2GameServerPacket;

import com.l2jserver.gameserver.network.serverpackets.MagicSkillCanceld;

import com.l2jserver.gameserver.network.serverpackets.MagicSkillLaunched;

@@ -92,6 +94,7 @@

import com.l2jserver.gameserver.network.serverpackets.StopMove;

import com.l2jserver.gameserver.network.serverpackets.SystemMessage;

import com.l2jserver.gameserver.network.serverpackets.TeleportToLocation;

+import com.l2jserver.gameserver.network.serverpackets.UserInfo;

import com.l2jserver.gameserver.network.serverpackets.FlyToLocation.FlyType;

import com.l2jserver.gameserver.pathfinding.AbstractNodeLoc;

import com.l2jserver.gameserver.pathfinding.PathFinding;

@@ -678,6 +681,22 @@

{

if (Config.DEBUG)

            _log.fine(getName()+" doAttack: target="+target);

+

+ if (target instanceof L2PcInstance && this instanceof L2PcInstance)

+ {

+ L2PcInstance activeChar=(L2PcInstance)this;

+ L2ItemInstance under = activeChar.getInventory().getPaperdollItem(Inventory.PAPERDOLL_UNDER);

+ if (under != null)

+ {

+ L2ItemInstance[] unequipped = activeChar.getInventory().unEquipItemInBodySlotAndRecord(under.getItem().getBodyPart());

+ InventoryUpdate iu = new InventoryUpdate();

+ for (L2ItemInstance element : unequipped)

+ iu.addModifiedItem(element);

+ activeChar.sendPacket(iu);

+ activeChar.sendPacket(new UserInfo(activeChar));

+ activeChar.sendPacket(new ExBrExtraUserInfo(activeChar));

+ }

+ }

 

if (!isAlikeDead() && target != null)

{

 

 

The problem would be if the character uses the skill of the character remains above Tatto

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

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