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

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
Answer this question...

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



×
×
  • Create New...