Jump to content
  • 0

disable heal on mobs


Question

Recommended Posts

  • 0
Posted

heal.java

there are always some checks overthere,go there and check it.

 

anyway,on frozen there's a config..I think.

  • 0
Posted

// We should not heal Npcs
					if(target instanceof L2NpcInstance)
						continue;

		// We should not heal Monsters
					if(target instanceof L2MonsterInstance)
						continue;	

		// We should not heal Raidboss
					if(target instanceof L2RaidBossInstance)
						continue;	

		// We should not heal Grandboss
					if(target instanceof L2GrandBossInstance)
						continue;	

 

I added that after

for(L2Object target2 : targets)
	{
		target = (L2Character) target2;

And it doesnt work

  • 0
Posted

so u will need to make more checks, find anythin that is related to Heal and find other checks where Heal is stopped coz target isnt ok.

  • 0
Posted
L2Character target = null;

 

for(L2Object target2 : targets)

{

target = (L2Character) target2;

The L2Character in that case means that the player targets a Character?

  • 0
Posted

The L2Character in that case means that the player targets a Character?

L2Character is L2PcInstance, L2SummonInstance, L2MonsterInstance, L2RaidBossInstance, L2GrandBossInstance so its everything i think, this code is good but its still not working.

  • 0
Posted

// We should not heal Npcs
					if(target instanceof L2NpcInstance)
						continue;

		// We should not heal Monsters
					if(target instanceof L2MonsterInstance)
						continue;	

		// We should not heal Raidboss
					if(target instanceof L2RaidBossInstance)
						continue;	

		// We should not heal Grandboss
					if(target instanceof L2GrandBossInstance)
						continue;	

 

it seems fine,dnk what is wrong in your pack.

try to make a topic in their forum.

  • 0
Posted
Index: com/l2jfrozen/gameserver/handler/skillhandlers/Heal.java
===================================================================
--- com/l2jfrozen/gameserver/handler/skillhandlers/Heal.java	(revision 948)
+++ com/l2jfrozen/gameserver/handler/skillhandlers/Heal.java	(working copy)
@@ -25,8 +25,11 @@
import com.l2jfrozen.gameserver.model.L2Object;
import com.l2jfrozen.gameserver.model.L2Skill;
import com.l2jfrozen.gameserver.model.L2Skill.SkillType;
+import com.l2jfrozen.gameserver.model.actor.instance.L2GrandBossInstance;
import com.l2jfrozen.gameserver.model.actor.instance.L2DoorInstance;
+import com.l2jfrozen.gameserver.model.actor.instance.L2MonsterInstance;
import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
+import com.l2jfrozen.gameserver.model.actor.instance.L2RaidBossInstance;
import com.l2jfrozen.gameserver.network.SystemMessageId;
import com.l2jfrozen.gameserver.network.serverpackets.StatusUpdate;
import com.l2jfrozen.gameserver.network.serverpackets.SystemMessage;
@@ -90,6 +93,13 @@
			// We should not heal walls and door
			if(target instanceof L2DoorInstance)
				continue;
+				
+            if (target instanceof L2RaidBossInstance) 
+                continue; 
+            if (target instanceof L2GrandBossInstance) 
+                continue; 
+            if (target instanceof L2MonsterInstance) 
+                continue; 				

			// Player holding a cursed weapon can't be healed and can't heal
			if(target != activeChar)

  • 0
Posted

Index: com/l2jfrozen/gameserver/handler/skillhandlers/Heal.java
===================================================================
--- com/l2jfrozen/gameserver/handler/skillhandlers/Heal.java	(revision 948)
+++ com/l2jfrozen/gameserver/handler/skillhandlers/Heal.java	(working copy)
@@ -25,8 +25,11 @@
import com.l2jfrozen.gameserver.model.L2Object;
import com.l2jfrozen.gameserver.model.L2Skill;
import com.l2jfrozen.gameserver.model.L2Skill.SkillType;
+import com.l2jfrozen.gameserver.model.actor.instance.L2GrandBossInstance;
import com.l2jfrozen.gameserver.model.actor.instance.L2DoorInstance;
+import com.l2jfrozen.gameserver.model.actor.instance.L2MonsterInstance;
import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
+import com.l2jfrozen.gameserver.model.actor.instance.L2RaidBossInstance;
import com.l2jfrozen.gameserver.network.SystemMessageId;
import com.l2jfrozen.gameserver.network.serverpackets.StatusUpdate;
import com.l2jfrozen.gameserver.network.serverpackets.SystemMessage;
@@ -90,6 +93,13 @@
			// We should not heal walls and door
			if(target instanceof L2DoorInstance)
				continue;
+				
+            if (target instanceof L2RaidBossInstance) 
+                continue; 
+            if (target instanceof L2GrandBossInstance) 
+                continue; 
+            if (target instanceof L2MonsterInstance) 
+                continue; 				

			// Player holding a cursed weapon can't be healed and can't heal
			if(target != activeChar)

he already posted that code,he got it.

but still,it doesn't works.

Guest
This topic is now closed to further replies.


  • Posts

    • 📢 It’s Time! I was thinking… when will be the perfect time? The answer is now — no more waiting. ⏳ 3 years without L2Mid… Now we are coming strong 💪 and motivated to play again — an Interlude server ⚔️ like old school before. Here, there were good times… and now, they return. 🏆 Announcing: L2Mid New Server – x25 One of the best Lineage II experiences since 2011 is making its return. ✨ Grand Opening: 10 October 2025 🛠 Open Beta Test: 22 September – 9 October 2025 🔥 Get ready for an epic journey, fierce battles, and the community you’ve been waiting for. 💥 Let’s make history again!  
    • Stop wasting time checking if your players are live Stream Monitor does it for you, fully automatically.   ✅ Supports Twitch, Trovo, YouTube, Kick, TikTok (Facebook coming soon) ✅ Compatible with L2OFF servers via ODBC 18 (SQL Server) ✅ Automatically gives in-game rewards when streamers are live ✅ Option to give rewards manually if desired ✅ Keeps complete logs of all checks/delivery ✅ Reload configuration without restarting ✅ Windows-ready (fully tested) 📦 Available Options: 30-day license key – €50 Full source code – €400 💡 Ideal For: L2OFF server owners who want to reward active streamers automatically L2J support (coming soon) 📜 Easy Setup: Add your streamers & rewards in config.ini Run the app Sit back and enjoy hands-free streamer rewards   🚀 Coming Soon: You will soon see Stream Monitor running on L2Mid server! more updates coming soon.   discord: l2mid.com       [GENERAL] check_interval_hours = 2 [PLATFORMS] trovo = true twitch = true youtube = true tiktok = true kick = true [TWITCH] client_id = client_secret = [YOUTUBE] api_key = [DATABASE] sql_server = 127.0.0.1 database = lin2world username = sa password = 123123^&$ log_file = delivery.log [ITEMS] item1 = {"item_id": 57, "amount": 1000} item2 = {"item_id": 57, "amount": 5} item3 = {"item_id": 57, "amount": 9999} [STREAMERS_TROVO] 1 = {"username": "_BINTIK_BINTIK", "nick": "devgold"} 2 = {"username": "435tsdf", "nick": "devgold"} [STREAMERS_TWITCH] 1 = {"username": "ninja", "nick": "devgold"} [STREAMERS_YOUTUBE] 1 = {"username": "gilvandark666", "nick": "devgold"} [STREAMERS_TIKTOK] 1 = {"username": "1st.tresh", "nick": "devgold"} [STREAMERS_KICK] 1 = {"username": "serenaparis", "nick": "devgold"}  
    • No Video is not available anymore.
  • Topics

×
×
  • Create New...

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