Autor Tema: Change weapon during attack  (Leído 354 veces)

maneco2

  • Newbie
  • *
  • Mensajes: 20
  • Karma: +0/-0
    • Ver Perfil
Change weapon during attack
« en: Enero 12, 2018, 07:14:51 pm »
Player attacking a monster and click for change weapon, change but... stop attack, character need change weapon after delay attack and continue attacking after change. This is very old issue.
« Última modificación: Enero 20, 2018, 11:02:05 pm por fissban »

fissban

  • Administrador
  • Full Member
  • *
  • Mensajes: 144
  • Karma: +0/-0
    • Ver Perfil
Re:Change weapon during attack
« Respuesta #1 en: Enero 12, 2018, 11:31:09 pm »
[ES]
Segun entiendo yo esto es asi de forma retail, pero si tienes otra informacion podemos discutirlo.
[EN]
As I understand this is like this in a retail way, but if you have other information we can discuss it.

maneco2

  • Newbie
  • *
  • Mensajes: 20
  • Karma: +0/-0
    • Ver Perfil
Re:Change weapon during attack
« Respuesta #2 en: Enero 13, 2018, 12:12:23 am »
No, this is not retail, i'm played on C1 to Ertheia all chronics West US, player need change weapon and continue attacking, since Lineage2 launch Harbingers of War  :)
Usted debe hacer igual L2J High Five, el cambio de arma en combate es igual desde C1 cronica.  ;)
« Última modificación: Enero 13, 2018, 12:18:45 am por maneco2 »

fissban

  • Administrador
  • Full Member
  • *
  • Mensajes: 144
  • Karma: +0/-0
    • Ver Perfil
Re:Change weapon during attack
« Respuesta #3 en: Enero 13, 2018, 12:47:58 am »
check this
Código
### Eclipse Workspace Patch 1.0
#P C4_GameServer
Index: java/net/sf/l2j/gameserver/network/clientpackets/UseItem.java
===================================================================
--- java/net/sf/l2j/gameserver/network/clientpackets/UseItem.java (revision 901)
+++ java/net/sf/l2j/gameserver/network/clientpackets/UseItem.java (working copy)
@@ -21,7 +21,6 @@
 import java.nio.ByteBuffer;
 import java.util.List;
 
-import net.sf.l2j.Config;
 import net.sf.l2j.gameserver.datatables.CastleData;
 import net.sf.l2j.gameserver.handler.item.IItemHandler;
 import net.sf.l2j.gameserver.handler.item.ItemHandler;
@@ -132,10 +131,10 @@
  if (item.isEquipable())
  {
  // prevent bug attack speed
- if (activeChar.isAttackingNow())
- {
- activeChar.breakAttack();
- }
+ // if (activeChar.isAttackingNow())
+ // {
+ // activeChar.breakAttack();
+ // }
 
  // prevent bug attack speed
  if (activeChar.isCastingNow())
@@ -232,13 +231,6 @@
  {
  handler.useItem(activeChar, item);
  }
- else
- {
- if (Config.DEBUG)
- {
- LOG.warning("No item handler registered for item ID " + itemId + ".");
- }
- }
  }
  }

At the time add that condition to avoid speed attack bugs but I've already improved that topic so there should be no problems with deleting it.
    

Carlos2200

  • Newbie
  • *
  • Mensajes: 23
  • Karma: +0/-0
    • Ver Perfil
Re:Change weapon during attack
« Respuesta #4 en: Enero 13, 2018, 03:47:45 pm »
check this
Código
### Eclipse Workspace Patch 1.0
#P C4_GameServer
Index: java/net/sf/l2j/gameserver/network/clientpackets/UseItem.java
===================================================================
--- java/net/sf/l2j/gameserver/network/clientpackets/UseItem.java (revision 901)
+++ java/net/sf/l2j/gameserver/network/clientpackets/UseItem.java (working copy)
@@ -21,7 +21,6 @@
 import java.nio.ByteBuffer;
 import java.util.List;
 
-import net.sf.l2j.Config;
 import net.sf.l2j.gameserver.datatables.CastleData;
 import net.sf.l2j.gameserver.handler.item.IItemHandler;
 import net.sf.l2j.gameserver.handler.item.ItemHandler;
@@ -132,10 +131,10 @@
  if (item.isEquipable())
  {
  // prevent bug attack speed
- if (activeChar.isAttackingNow())
- {
- activeChar.breakAttack();
- }
+ // if (activeChar.isAttackingNow())
+ // {
+ // activeChar.breakAttack();
+ // }
 
  // prevent bug attack speed
  if (activeChar.isCastingNow())
@@ -232,13 +231,6 @@
  {
  handler.useItem(activeChar, item);
  }
- else
- {
- if (Config.DEBUG)
- {
- LOG.warning("No item handler registered for item ID " + itemId + ".");
- }
- }
  }
  }

At the time add that condition to avoid speed attack bugs but I've already improved that topic so there should be no problems with deleting it.

fissban sige sin pegar al cambiar de arma
« Última modificación: Enero 13, 2018, 05:22:30 pm por Carlos2200 »

maneco2

  • Newbie
  • *
  • Mensajes: 20
  • Karma: +0/-0
    • Ver Perfil
Re:Change weapon during attack
« Respuesta #5 en: Enero 13, 2018, 06:11:40 pm »
fissban sige sin pegar al cambiar de arma
Ahora cambiar el arma y sigue atacando (retail), pero no desequilibrar equipos

maneco2

  • Newbie
  • *
  • Mensajes: 20
  • Karma: +0/-0
    • Ver Perfil
Re:Change weapon during attack
« Respuesta #6 en: Marzo 15, 2018, 12:41:08 pm »
Have one litle problem, character need wait last attack for change the weapon in combat, please see mystic attack (wind strike), use skill and click on weapon... character need wait finish attack for change, same in meele attack, need wait attack for change, like l2jserver hi5 in c4.