Author Topic: Fafurion Monster Attack Bug  (Read 166 times)

Online akado

  • Heir
  • **
  • Posts: 13
Monster Attack Bug
« on: October 09, 2019, 08:30:55 PM »
Some monsters don't attack when you hit them
Stand and do nothing
(Fufarion August rev)

Online Edoo

  • Inner Circle
  • Knight
  • ***
  • Posts: 76
Re: Monster Attack Bug
« Reply #1 on: October 10, 2019, 12:37:14 AM »
this bug is fixed in the private version (how to get the private version, ask Mobius)
I apologize for my English, I write through Google translator.

Online akado

  • Heir
  • **
  • Posts: 13
Re: Monster Attack Bug
« Reply #2 on: October 10, 2019, 02:42:37 AM »
I know in private this bug fixed.
But how i can fix that? Help plz, bug so critical :(

Online Mobius

  • Administrator
  • Distinguished King
  • *****
  • Posts: 6045
Re: Monster Attack Bug
« Reply #3 on: October 10, 2019, 11:08:11 AM »
I was fixed and apparntly broken again.
I try to find a better solution.

Online akado

  • Heir
  • **
  • Posts: 13
Re: Monster Attack Bug
« Reply #4 on: October 10, 2019, 11:15:22 AM »
I was fixed and apparntly broken again.
I try to find a better solution.
But Grand Crusade not have this bug.

Online akado

  • Heir
  • **
  • Posts: 13
Re: Monster Attack Bug
« Reply #5 on: October 11, 2019, 01:31:49 AM »
I was fixed and apparntly broken again.
I try to find a better solution.
Only Fufarion ver have this bug? Or Grand Crusade, Helios too?

Online Mobius

  • Administrator
  • Distinguished King
  • *****
  • Posts: 6045
Re: Monster Attack Bug
« Reply #6 on: October 11, 2019, 02:01:45 AM »
I do not know.
Most people use Fafurion.

Online Mobius

  • Administrator
  • Distinguished King
  • *****
  • Posts: 6045
Re: Monster Attack Bug
« Reply #7 on: October 11, 2019, 08:55:49 AM »
Try this.

Code: [Select]
Index: java/org/l2jmobius/gameserver/model/actor/Attackable.java
===================================================================
--- java/org/l2jmobius/gameserver/model/actor/Attackable.java (revision 6015)
+++ java/org/l2jmobius/gameserver/model/actor/Attackable.java (working copy)
@@ -1452,6 +1452,9 @@
  }
  }
 
+ // Clear aggro list.
+ clearAggroList();
+
  // Reset the rest of NPC related states
  super.onRespawn();
  }
Index: java/org/l2jmobius/gameserver/model/actor/Npc.java
===================================================================
--- java/org/l2jmobius/gameserver/model/actor/Npc.java (revision 5990)
+++ java/org/l2jmobius/gameserver/model/actor/Npc.java (working copy)
@@ -23,6 +23,7 @@
 import org.l2jmobius.commons.concurrent.ThreadPool;
 import org.l2jmobius.commons.util.Rnd;
 import org.l2jmobius.gameserver.ItemsAutoDestroy;
+import org.l2jmobius.gameserver.ai.CtrlIntention;
 import org.l2jmobius.gameserver.cache.HtmCache;
 import org.l2jmobius.gameserver.data.xml.impl.ClanHallData;
 import org.l2jmobius.gameserver.datatables.ItemTable;
@@ -29,11 +30,11 @@
 import org.l2jmobius.gameserver.enums.AISkillScope;
 import org.l2jmobius.gameserver.enums.AIType;
 import org.l2jmobius.gameserver.enums.ChatType;
-import org.l2jmobius.gameserver.enums.RaidBossStatus;
 import org.l2jmobius.gameserver.enums.InstanceType;
 import org.l2jmobius.gameserver.enums.MpRewardAffectType;
 import org.l2jmobius.gameserver.enums.PrivateStoreType;
 import org.l2jmobius.gameserver.enums.Race;
+import org.l2jmobius.gameserver.enums.RaidBossStatus;
 import org.l2jmobius.gameserver.enums.ShotType;
 import org.l2jmobius.gameserver.enums.TaxType;
 import org.l2jmobius.gameserver.enums.Team;
@@ -1084,6 +1085,12 @@
  // Reset targetable state
  setTargetable(getTemplate().isTargetable());
 
+ // Set to walking
+ setWalking();
+
+ // Set intention to active.
+ getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
+
  // Reset summoner
  setSummoner(null);
 

Online Edoo

  • Inner Circle
  • Knight
  • ***
  • Posts: 76
Re: Monster Attack Bug
« Reply #8 on: October 11, 2019, 12:12:29 PM »
Try this.

Code: [Select]
Index: java/org/l2jmobius/gameserver/model/actor/Attackable.java
===================================================================
--- java/org/l2jmobius/gameserver/model/actor/Attackable.java (revision 6015)
+++ java/org/l2jmobius/gameserver/model/actor/Attackable.java (working copy)
@@ -1452,6 +1452,9 @@
  }
  }
 
+ // Clear aggro list.
+ clearAggroList();
+
  // Reset the rest of NPC related states
  super.onRespawn();
  }
Index: java/org/l2jmobius/gameserver/model/actor/Npc.java
===================================================================
--- java/org/l2jmobius/gameserver/model/actor/Npc.java (revision 5990)
+++ java/org/l2jmobius/gameserver/model/actor/Npc.java (working copy)
@@ -23,6 +23,7 @@
 import org.l2jmobius.commons.concurrent.ThreadPool;
 import org.l2jmobius.commons.util.Rnd;
 import org.l2jmobius.gameserver.ItemsAutoDestroy;
+import org.l2jmobius.gameserver.ai.CtrlIntention;
 import org.l2jmobius.gameserver.cache.HtmCache;
 import org.l2jmobius.gameserver.data.xml.impl.ClanHallData;
 import org.l2jmobius.gameserver.datatables.ItemTable;
@@ -29,11 +30,11 @@
 import org.l2jmobius.gameserver.enums.AISkillScope;
 import org.l2jmobius.gameserver.enums.AIType;
 import org.l2jmobius.gameserver.enums.ChatType;
-import org.l2jmobius.gameserver.enums.RaidBossStatus;
 import org.l2jmobius.gameserver.enums.InstanceType;
 import org.l2jmobius.gameserver.enums.MpRewardAffectType;
 import org.l2jmobius.gameserver.enums.PrivateStoreType;
 import org.l2jmobius.gameserver.enums.Race;
+import org.l2jmobius.gameserver.enums.RaidBossStatus;
 import org.l2jmobius.gameserver.enums.ShotType;
 import org.l2jmobius.gameserver.enums.TaxType;
 import org.l2jmobius.gameserver.enums.Team;
@@ -1084,6 +1085,12 @@
  // Reset targetable state
  setTargetable(getTemplate().isTargetable());
 
+ // Set to walking
+ setWalking();
+
+ // Set intention to active.
+ getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
+
  // Reset summoner
  setSummoner(null);
 


unfortunately did not help. and mine even more often the aggression of monsters began to hang. And I also noticed that your patch registered on the Npc.java file is different from the file that is in the free access assembly. the first difference is that this line is not in our file, (+import org.l2jmobius.gameserver.enums.RaidBossStatus;) I think that therefore your patch may not work.
I apologize for my English, I write through Google translator.

Online Mobius

  • Administrator
  • Distinguished King
  • *****
  • Posts: 6045
Re: Monster Attack Bug
« Reply #9 on: October 11, 2019, 12:59:03 PM »
Try this Attackable only patch.
Code: [Select]
Index: java/org/l2jmobius/gameserver/model/actor/Attackable.java
===================================================================
--- java/org/l2jmobius/gameserver/model/actor/Attackable.java (revision 6015)
+++ java/org/l2jmobius/gameserver/model/actor/Attackable.java (working copy)
@@ -1452,6 +1452,10 @@
  }
  }
 
+ // Clear aggro list.
+ clearAggroList();
+ getAttackByList().clear();
+
  // Reset the rest of NPC related states
  super.onRespawn();
  }

Online Edoo

  • Inner Circle
  • Knight
  • ***
  • Posts: 76
Re: Monster Attack Bug
« Reply #10 on: October 11, 2019, 01:48:04 PM »
Try this Attackable only patch.
Code: [Select]
Index: java/org/l2jmobius/gameserver/model/actor/Attackable.java
===================================================================
--- java/org/l2jmobius/gameserver/model/actor/Attackable.java (revision 6015)
+++ java/org/l2jmobius/gameserver/model/actor/Attackable.java (working copy)
@@ -1452,6 +1452,10 @@
  }
  }
 
+ // Clear aggro list.
+ clearAggroList();
+ getAttackByList().clear();
+
  // Reset the rest of NPC related states
  super.onRespawn();
  }

1. Monster aggression generally stopped working.
2. when attacking with a mass skill, only one monster is aggregated, the rest just stand in the attack stance. after the second attack, the remaining monsters also begin to attack.
3. If there is an obstacle in front of the monster, he does not go around him and just stands there and waits for him to be killed.

Here is what I discovered. Bottom line: the patch partially helped with the attack of monsters, but at the same time completely disabled aggressive monsters.
I apologize for my English, I write through Google translator.

Online akado

  • Heir
  • **
  • Posts: 13
Re: Monster Attack Bug
« Reply #11 on: October 11, 2019, 02:08:14 PM »
In Grand Crusade attack monster ok

Online Mobius

  • Administrator
  • Distinguished King
  • *****
  • Posts: 6045
Re: Monster Attack Bug
« Reply #12 on: October 11, 2019, 03:06:38 PM »
The code above only triggers on monster respawn.
It cannot break monster aggression. It is not a repeating operation.

Online Edoo

  • Inner Circle
  • Knight
  • ***
  • Posts: 76
Re: Monster Attack Bug
« Reply #13 on: October 11, 2019, 03:27:28 PM »
The code above only triggers on monster respawn.
It cannot break monster aggression. It is not a repeating operation.

So after rebirth, aggression does not work for aggressive monsters.
I apologize for my English, I write through Google translator.

Online Mobius

  • Administrator
  • Distinguished King
  • *****
  • Posts: 6045
Re: Monster Attack Bug
« Reply #14 on: October 11, 2019, 03:47:19 PM »
The estimation here is that some skill causes NPC to agrro someone
and after NPC is respawned the aggro is not reset.

What I did above resets the aggro by clearing any values in aggro lists.