Jump to content

Mining QoL feature


Recommended Posts

Simple yet not common enough QoL feature that lets miners mine in peace, even around aggressive mobs and bosses

+++ b/Srcs/Server/game/src/char_state.cpp
@@ -642,6 +642,10 @@ void CHARACTER::__StateIdle_Monster()
 
 	if (victim && !victim->IsDead())
 	{
+#ifdef MOB_AI_DONT_ATTACK_MINERS
+		if (victim->m_pkMiningEvent)
+			return;
+#endif
 		if (CanBeginFight())
 			BeginFight(victim);
 
@@ -906,10 +910,17 @@ void CHARACTER::StateBattle()
 		return;
 	}
 
+#ifdef MOB_AI_DONT_ATTACK_MINERS
+	if (victim && victim->m_pkMiningEvent) {
+		SetVictim(NULL);
+		CowardEscape();
+		return;
+	}
+#endif
+
 	if (!victim || (victim->IsStun() && IsGuardNPC()) || victim->IsDead())
 	{

 

 

  • Metin2 Dev 12
  • Love 1
Link to comment
Share on other sites

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / 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.