Jump to content

Recommended Posts

Posted

Kalispera paidia epsaxna sto L2j Gia to Salvation and Soul of The Phoenix pos mporw na to fix kai pistebw pos 8a fanei xrisimo

 

Credits:Faror

 

[Java Patch]

 

Index: C:/Documents and Settings/EdeN/Documenti/EclipseWorkspace/L2JServerCT1/L2_GameServer_T1/java/net/sf/l2j/gameserver/model/L2Effect.java
===================================================================
--- C:/Documents and Settings/EdeN/Documenti/EclipseWorkspace/L2JServerCT1/L2_GameServer_T1/java/net/sf/l2j/gameserver/model/L2Effect.java	(revision 1582)
+++ C:/Documents and Settings/EdeN/Documenti/EclipseWorkspace/L2JServerCT1/L2_GameServer_T1/java/net/sf/l2j/gameserver/model/L2Effect.java	(working copy)
@@ -74,6 +74,7 @@
         SILENCE_MAGIC_PHYSICAL,
         BETRAY,
         NOBLESSE_BLESSING,
+        PHOENIX_BLESSING,
         PETRIFICATION,
         BLUFF,
         BATTLE_FORCE,

Index: C:/Documents and Settings/EdeN/Documenti/EclipseWorkspace/L2JServerCT1/L2_GameServer_T1/java/net/sf/l2j/gameserver/model/actor/instance/L2PlayableInstance.java
===================================================================
--- C:/Documents and Settings/EdeN/Documenti/EclipseWorkspace/L2JServerCT1/L2_GameServer_T1/java/net/sf/l2j/gameserver/model/actor/instance/L2PlayableInstance.java	(revision 1582)
+++ C:/Documents and Settings/EdeN/Documenti/EclipseWorkspace/L2JServerCT1/L2_GameServer_T1/java/net/sf/l2j/gameserver/model/actor/instance/L2PlayableInstance.java	(working copy)
@@ -37,6 +37,7 @@

	private boolean _isNoblesseBlessed = false; // for Noblesse Blessing skill, restores buffs after death
	private boolean _getCharmOfLuck = false; // Charm of Luck - During a Raid/Boss war, decreased chance for death penalty
+	private boolean _isPhoenixBlessed = false; // for Soul of The PPhoenix or Salvation buffs
	/**
	 * Constructor of L2PlayableInstance (use L2Character constructor).<BR><BR>
	 *
@@ -173,7 +174,28 @@
     	setIsNoblesseBlessed(false);
     	updateAbnormalEffect();
     }
-
+    
+    // Support for Soul of the Phoenix and Salvation skills
+    public final boolean isPhoenixBlessed() { return _isPhoenixBlessed; }
+    public final void setIsPhoenixBlessed(boolean value) { _isPhoenixBlessed = value; }
+      
+    public final void startPhoenixBlessing()
+    {
+       	setIsPhoenixBlessed(true);
+       	updateAbnormalEffect();
+    }
+       
+    public final void stopPhoenixBlessing(L2Effect effect)
+    {
+      	if (effect == null)
+      		stopEffects(L2Effect.EffectType.PHOENIX_BLESSING);
+       	else
+       		removeEffect(effect);
+       			
+       	setIsPhoenixBlessed(false);
+       	updateAbnormalEffect();
+    }
+        
	public abstract boolean destroyItemByItemId(String process, int itemId, int count, L2Object reference, boolean sendMessage);
	public abstract boolean destroyItem(String process, int objectId, int count, L2Object reference, boolean sendMessage);

Index: C:/Documents and Settings/EdeN/Documenti/EclipseWorkspace/L2JServerCT1/L2_GameServer_T1/java/net/sf/l2j/gameserver/model/L2Character.java
===================================================================
--- C:/Documents and Settings/EdeN/Documenti/EclipseWorkspace/L2JServerCT1/L2_GameServer_T1/java/net/sf/l2j/gameserver/model/L2Character.java	(revision 1582)
+++ C:/Documents and Settings/EdeN/Documenti/EclipseWorkspace/L2JServerCT1/L2_GameServer_T1/java/net/sf/l2j/gameserver/model/L2Character.java	(working copy)
@@ -1581,6 +1581,12 @@
			if (((L2PlayableInstance)this).getCharmOfLuck()) //remove Lucky Charm if player have Nobless blessing buff 
				((L2PlayableInstance)this).stopCharmOfLuck(null); 
		} 
+		//Same thing if the Character is affected by Soul of The Phoenix or Salvation
+		else if (this instanceof L2PlayableInstance && ((L2PlayableInstance)this).isPhoenixBlessed())
+		{
+			if (((L2PlayableInstance)this).getCharmOfLuck()) //remove Lucky Charm if player has SoulOfThePhoenix/Salvation buff
+				((L2PlayableInstance)this).stopCharmOfLuck(null);
+		}
		else
			stopAllEffects();

@@ -1603,6 +1609,12 @@
		getNotifyQuestOfDeath().clear();

		getAttackByList().clear();
+		
+		//If character is PhoenixBlessed a resurrection popup will show up
+		if (this instanceof L2PlayableInstance && ((L2PlayableInstance)this).isPhoenixBlessed())
+		{
+			((L2PcInstance)this).reviveRequest(((L2PcInstance)this),null,false);
+		}
		return true;
	}

@@ -1616,16 +1628,21 @@
		if (!isTeleporting())
		{
			setIsPendingRevive(false);
-
+			
+			if (this instanceof L2PlayableInstance && ((L2PlayableInstance)this).isPhoenixBlessed())
+			{
+				((L2PlayableInstance)this).stopPhoenixBlessing(null);
+			}
+			
			_status.setCurrentCp(getMaxCp() * Config.RESPAWN_RESTORE_CP);
			_status.setCurrentHp(getMaxHp() * Config.RESPAWN_RESTORE_HP);
			//_Status.setCurrentMp(getMaxMp() * Config.RESPAWN_RESTORE_MP);
-
-			// Start broadcast status
-			broadcastPacket(new Revive(this));
-			if (getWorldRegion() != null)
-				getWorldRegion().onRevive(this);			
		}
+		// Start broadcast status
+		broadcastPacket(new Revive(this));
+		if (getWorldRegion() != null)
+			getWorldRegion().onRevive(this);			
+		
		else
			setIsPendingRevive(true);
	}

Index: C:/Documents and Settings/EdeN/Documenti/EclipseWorkspace/L2JServerCT1/L2_GameServer_T1/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- C:/Documents and Settings/EdeN/Documenti/EclipseWorkspace/L2JServerCT1/L2_GameServer_T1/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java	(revision 1582)
+++ C:/Documents and Settings/EdeN/Documenti/EclipseWorkspace/L2JServerCT1/L2_GameServer_T1/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java	(working copy)
@@ -9224,7 +9224,10 @@
		if((Pet && getPet() != null && getPet().isDead()) || (!Pet && isDead()))
		{
			_reviveRequested = 1;
-			_revivePower = Formulas.getInstance().calculateSkillResurrectRestorePercent(skill.getPower(), Reviver.getWIT());
+			if (isPhoenixBlessed())
+				_revivePower=100;
+			else
+				_revivePower = Formulas.getInstance().calculateSkillResurrectRestorePercent(skill.getPower(), Reviver.getWIT());
			_revivePet = Pet;
			sendPacket(new ConfirmDlg(SystemMessageId.RESSURECTION_REQUEST.getId(),Reviver.getName()));
		}
@@ -9234,6 +9237,12 @@
	{
		if (_reviveRequested != 1 || (!isDead() && !_revivePet) || (_revivePet && getPet() != null && !getPet().isDead()))
			return;
+		//If character refuse a PhoenixBlessed autoress, cancel all buffs he had
+		if (answer == 0 && ((L2PlayableInstance)this).isPhoenixBlessed()) 
+		{
+			((L2PlayableInstance)this).stopPhoenixBlessing(null);
+			stopAllEffects();
+		}
		if (answer == 1)
		{
			if (!_revivePet)

 

 

[DataPack Modifications]

 

<skill id="438" levels="1" name="Soul of the Phoenix">
<!--
  Description(s):
      Revives target from death and restores them to full health, retaining all buff/debuff effects except for Noblesse Blessing and Lucky Charm. Consumes 1 Blood of the Phoenix.
-->
  <set name="magicLvl" val="79"/>
  <set name="mpConsume" val="250"/>
  <set name="itemConsumeId" val="8873"/>
  <set name="itemConsumeCount" val="1"/>
  <set name="power" val="0.0"/>
  <set name="target" val="TARGET_SELF"/>
  <set name="reuseDelay" val="3600000"/>
  <set name="hitTime" val="4000"/>
  <set name="skillType" val="BUFF"/>
  <set name="isMagic" val="true"/>
  <set name="operateType" val="OP_ACTIVE"/>
  <set name="buffDuration" val="1800000"/>
  <set name="castRange" val="400"/>
  <set name="effectRange" val="900"/>
  <for>
<effect count="1" name="PhoenixBless" time="1800" val="0"/>
  </for>
</skill>

 

<skill id="1410" levels="1" name="Salvation">
<!--
   Some values need to be confirmed
-->  
  <set name="magicLvl" val="79"/>
  <set name="mpConsume" val="87"/>
  <set name="itemConsumeId" val="8874"/>
  <set name="itemConsumeCount" val="2"/>
  <set name="power" val="0.0"/>
  <set name="target" val="TARGET_ONE"/>
  <set name="reuseDelay" val="3600000"/>
  <set name="hitTime" val="4000"/> <!--guessing-->
  <set name="skillType" val="BUFF"/>
  <set name="isMagic" val="true"/>
  <set name="operateType" val="OP_ACTIVE"/>
  <set name="buffDuration" val="3600000"/>
  <set name="castRange" val="400"/>
  <set name="effectRange" val="900"/>
  <for>
<effect count="1" name="PhoenixBless" time="3600" val="0"/>
  </for>
</skill>

Posted

wraios zero...an dn kanw la8os ola ta pack exoun auta ta skils..apla 8eloun kapia fix malon..

afto einai fix swsta?

wraio share telos panton...sinexise etsi :)

Posted

Nai koita...ola se ola ta pack einai afta ta skill alla sta pio pola dn doulebei...Pistebw me afto to share 8a boi8isei na to fix ;)

 

EDIT : 800 posts done :D :D

Posted

Thanks alla dn ekanes share ena simantiko kommati. To effect. EffectPhoenixBless.java

 

Auto prepei na kanei ti douleia, alla DEN TO DOKIMASA!

 

package net.sf.l2j.gameserver.skills.effects;

import net.sf.l2j.gameserver.model.L2Effect;
import net.sf.l2j.gameserver.model.actor.instance.L2PlayableInstance;
import net.sf.l2j.gameserver.skills.Env;

final class EffectPhoenixBless extends L2Effect
{

    public EffectPhoenixBless(Env env, EffectTemplate template)
    {
        super(env, template);
    }

    public net.sf.l2j.gameserver.model.L2Effect.EffectType getEffectType()
    {
        return net.sf.l2j.gameserver.model.L2Effect.EffectType.PHOENIX_BLESSING;
    }

    public void onStart()
    {
        if(getEffected() instanceof L2PlayableInstance)
            ((L2PlayableInstance)getEffected()).startPhoenixBlessing();
    }

    public void onExit()
    {
        if(getEffected() instanceof L2PlayableInstance)
            ((L2PlayableInstance)getEffected()).stopPhoenixBlessing(this);
    }

    public boolean onActionTime()
    {
        return false;
    }
}

  • 10 months later...
Posted

Kalispera paidia epsaxna sto L2j Gia to Salvation and Soul of The Phoenix pos mporw na to fix kai pistebw pos 8a fanei xrisimo

 

Credits:Faror

 

[Java Patch]

 

Index: C:/Documents and Settings/EdeN/Documenti/EclipseWorkspace/L2JServerCT1/L2_GameServer_T1/java/net/sf/l2j/gameserver/model/L2Effect.java
===================================================================
--- C:/Documents and Settings/EdeN/Documenti/EclipseWorkspace/L2JServerCT1/L2_GameServer_T1/java/net/sf/l2j/gameserver/model/L2Effect.java	(revision 1582)
+++ C:/Documents and Settings/EdeN/Documenti/EclipseWorkspace/L2JServerCT1/L2_GameServer_T1/java/net/sf/l2j/gameserver/model/L2Effect.java	(working copy)
@@ -74,6 +74,7 @@
         SILENCE_MAGIC_PHYSICAL,
         BETRAY,
         NOBLESSE_BLESSING,
+        PHOENIX_BLESSING,
         PETRIFICATION,
         BLUFF,
         BATTLE_FORCE,

Index: C:/Documents and Settings/EdeN/Documenti/EclipseWorkspace/L2JServerCT1/L2_GameServer_T1/java/net/sf/l2j/gameserver/model/actor/instance/L2PlayableInstance.java
===================================================================
--- C:/Documents and Settings/EdeN/Documenti/EclipseWorkspace/L2JServerCT1/L2_GameServer_T1/java/net/sf/l2j/gameserver/model/actor/instance/L2PlayableInstance.java	(revision 1582)
+++ C:/Documents and Settings/EdeN/Documenti/EclipseWorkspace/L2JServerCT1/L2_GameServer_T1/java/net/sf/l2j/gameserver/model/actor/instance/L2PlayableInstance.java	(working copy)
@@ -37,6 +37,7 @@

	private boolean _isNoblesseBlessed = false; // for Noblesse Blessing skill, restores buffs after death
	private boolean _getCharmOfLuck = false; // Charm of Luck - During a Raid/Boss war, decreased chance for death penalty
+	private boolean _isPhoenixBlessed = false; // for Soul of The PPhoenix or Salvation buffs
	/**
	 * Constructor of L2PlayableInstance (use L2Character constructor).<BR><BR>
	 *
@@ -173,7 +174,28 @@
     	setIsNoblesseBlessed(false);
     	updateAbnormalEffect();
     }
-
+    
+    // Support for Soul of the Phoenix and Salvation skills
+    public final boolean isPhoenixBlessed() { return _isPhoenixBlessed; }
+    public final void setIsPhoenixBlessed(boolean value) { _isPhoenixBlessed = value; }
+      
+    public final void startPhoenixBlessing()
+    {
+       	setIsPhoenixBlessed(true);
+       	updateAbnormalEffect();
+    }
+       
+    public final void stopPhoenixBlessing(L2Effect effect)
+    {
+      	if (effect == null)
+      		stopEffects(L2Effect.EffectType.PHOENIX_BLESSING);
+       	else
+       		removeEffect(effect);
+       			
+       	setIsPhoenixBlessed(false);
+       	updateAbnormalEffect();
+    }
+        
	public abstract boolean destroyItemByItemId(String process, int itemId, int count, L2Object reference, boolean sendMessage);
	public abstract boolean destroyItem(String process, int objectId, int count, L2Object reference, boolean sendMessage);

Index: C:/Documents and Settings/EdeN/Documenti/EclipseWorkspace/L2JServerCT1/L2_GameServer_T1/java/net/sf/l2j/gameserver/model/L2Character.java
===================================================================
--- C:/Documents and Settings/EdeN/Documenti/EclipseWorkspace/L2JServerCT1/L2_GameServer_T1/java/net/sf/l2j/gameserver/model/L2Character.java	(revision 1582)
+++ C:/Documents and Settings/EdeN/Documenti/EclipseWorkspace/L2JServerCT1/L2_GameServer_T1/java/net/sf/l2j/gameserver/model/L2Character.java	(working copy)
@@ -1581,6 +1581,12 @@
			if (((L2PlayableInstance)this).getCharmOfLuck()) //remove Lucky Charm if player have Nobless blessing buff 
				((L2PlayableInstance)this).stopCharmOfLuck(null); 
		} 
+		//Same thing if the Character is affected by Soul of The Phoenix or Salvation
+		else if (this instanceof L2PlayableInstance && ((L2PlayableInstance)this).isPhoenixBlessed())
+		{
+			if (((L2PlayableInstance)this).getCharmOfLuck()) //remove Lucky Charm if player has SoulOfThePhoenix/Salvation buff
+				((L2PlayableInstance)this).stopCharmOfLuck(null);
+		}
		else
			stopAllEffects();

@@ -1603,6 +1609,12 @@
		getNotifyQuestOfDeath().clear();

		getAttackByList().clear();
+		
+		//If character is PhoenixBlessed a resurrection popup will show up
+		if (this instanceof L2PlayableInstance && ((L2PlayableInstance)this).isPhoenixBlessed())
+		{
+			((L2PcInstance)this).reviveRequest(((L2PcInstance)this),null,false);
+		}
		return true;
	}

@@ -1616,16 +1628,21 @@
		if (!isTeleporting())
		{
			setIsPendingRevive(false);
-
+			
+			if (this instanceof L2PlayableInstance && ((L2PlayableInstance)this).isPhoenixBlessed())
+			{
+				((L2PlayableInstance)this).stopPhoenixBlessing(null);
+			}
+			
			_status.setCurrentCp(getMaxCp() * Config.RESPAWN_RESTORE_CP);
			_status.setCurrentHp(getMaxHp() * Config.RESPAWN_RESTORE_HP);
			//_Status.setCurrentMp(getMaxMp() * Config.RESPAWN_RESTORE_MP);
-
-			// Start broadcast status
-			broadcastPacket(new Revive(this));
-			if (getWorldRegion() != null)
-				getWorldRegion().onRevive(this);			
		}
+		// Start broadcast status
+		broadcastPacket(new Revive(this));
+		if (getWorldRegion() != null)
+			getWorldRegion().onRevive(this);			
+		
		else
			setIsPendingRevive(true);
	}

Index: C:/Documents and Settings/EdeN/Documenti/EclipseWorkspace/L2JServerCT1/L2_GameServer_T1/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- C:/Documents and Settings/EdeN/Documenti/EclipseWorkspace/L2JServerCT1/L2_GameServer_T1/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java	(revision 1582)
+++ C:/Documents and Settings/EdeN/Documenti/EclipseWorkspace/L2JServerCT1/L2_GameServer_T1/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java	(working copy)
@@ -9224,7 +9224,10 @@
		if((Pet && getPet() != null && getPet().isDead()) || (!Pet && isDead()))
		{
			_reviveRequested = 1;
-			_revivePower = Formulas.getInstance().calculateSkillResurrectRestorePercent(skill.getPower(), Reviver.getWIT());
+			if (isPhoenixBlessed())
+				_revivePower=100;
+			else
+				_revivePower = Formulas.getInstance().calculateSkillResurrectRestorePercent(skill.getPower(), Reviver.getWIT());
			_revivePet = Pet;
			sendPacket(new ConfirmDlg(SystemMessageId.RESSURECTION_REQUEST.getId(),Reviver.getName()));
		}
@@ -9234,6 +9237,12 @@
	{
		if (_reviveRequested != 1 || (!isDead() && !_revivePet) || (_revivePet && getPet() != null && !getPet().isDead()))
			return;
+		//If character refuse a PhoenixBlessed autoress, cancel all buffs he had
+		if (answer == 0 && ((L2PlayableInstance)this).isPhoenixBlessed()) 
+		{
+			((L2PlayableInstance)this).stopPhoenixBlessing(null);
+			stopAllEffects();
+		}
		if (answer == 1)
		{
			if (!_revivePet)

 

 

[DataPack Modifications]

 

<skill id="438" levels="1" name="Soul of the Phoenix">
<!--
  Description(s):
      Revives target from death and restores them to full health, retaining all buff/debuff effects except for Noblesse Blessing and Lucky Charm. Consumes 1 Blood of the Phoenix.
-->
  <set name="magicLvl" val="79"/>
  <set name="mpConsume" val="250"/>
  <set name="itemConsumeId" val="8873"/>
  <set name="itemConsumeCount" val="1"/>
  <set name="power" val="0.0"/>
  <set name="target" val="TARGET_SELF"/>
  <set name="reuseDelay" val="3600000"/>
  <set name="hitTime" val="4000"/>
  <set name="skillType" val="BUFF"/>
  <set name="isMagic" val="true"/>
  <set name="operateType" val="OP_ACTIVE"/>
  <set name="buffDuration" val="1800000"/>
  <set name="castRange" val="400"/>
  <set name="effectRange" val="900"/>
  <for>
<effect count="1" name="PhoenixBless" time="1800" val="0"/>
  </for>
</skill>

 

<skill id="1410" levels="1" name="Salvation">
<!--
   Some values need to be confirmed
-->  
  <set name="magicLvl" val="79"/>
  <set name="mpConsume" val="87"/>
  <set name="itemConsumeId" val="8874"/>
  <set name="itemConsumeCount" val="2"/>
  <set name="power" val="0.0"/>
  <set name="target" val="TARGET_ONE"/>
  <set name="reuseDelay" val="3600000"/>
  <set name="hitTime" val="4000"/> <!--guessing-->
  <set name="skillType" val="BUFF"/>
  <set name="isMagic" val="true"/>
  <set name="operateType" val="OP_ACTIVE"/>
  <set name="buffDuration" val="3600000"/>
  <set name="castRange" val="400"/>
  <set name="effectRange" val="900"/>
  <for>
<effect count="1" name="PhoenixBless" time="3600" val="0"/>
  </for>
</skill>

 

Please helpme. How insert this values into my Java files.

I have L2j Interlude revision 2741.

Thanks!

Posted

Please helpme. How insert this values into my Java files.

I have L2j Interlude revision 2741.

Thanks!

 

Is it so hard to read patches?

If yes, read guides..

  • 3 weeks later...
  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • aCis (“another Crappy interlude server”) is a commercial project I would not use even if paid. l2jfrozen yes, a 10 year old, effectively dead project produces more reliable results and at least works. l2jhellas also works. aCis might as well be renamed KPMIS (“Keep Paying My Interlude Server”): endless fixes, freemium, and no realistic path to true L2OFF parity, but its recommended like hell. lucera is even better the downside is you just need to dive into code and no sources   lets leave it at that
    • Download Here: https://sitehunterus.blogspot.com/2025/12/exelo-combo-tool-v2.html VirusTotal https://www.virustotal.com/gui/file/2acd067847ee092c7986f55c9f77620d89505d1c0bda34a0ee8f55b9c2905c11?nocache=1 Visit my Blogger list to download 100% free software https://www.freetoolss.com/ https://blackhat8.blogspot.com/ https://hack-crack9.blogspot.com/ https://hackernoons.blogspot.com/ https://sharetools99.blogspot.com/
    • Care to detail why ?   L2JHellas probably got the same issue, it's inherent to L2J if you don't rework Player intentions (and solving it with a Config < 500 attack is stupid, if it works for attack it works for other types of desires), also last time I checked L2JHellas he was using my changesets to fix its own stuff (which is ok, copy-paste my knownlist system which is 10y old is fine, but don't say it will act different since it's literally the same sub-system).   About Lucera code source isn't available so it's easy to say it's better, internally you got no clue what is happening and RU forks got the "feeling" to get everything, but everything is half done, everytime I put an eye on such sources (whatever based on l2ru, they only know how to copy-paste each other).   In the other hand, you seem to use aCis since years (I think I see your name since a decade, and you still use it since you made this topic :   Be a little more appreciative about the work done, it's not only mine but my community aswell, and if you find something, consider to report rather than getting such an idiotic behavior.   I understand you're not forced to share any type of fixes, and than people tend to feel superior when they fix something than aCis didn't yet fix. The thing is, for each bug you found, I found and fixed 10x more than you.   409 is way beyond 382 in all possible ways, if you believe the versus good for you, but don't make ppl believe it's the case, because it's not. There's at least 400+ fixed issues (and that's counting 10 issues by revision, which is kinda low) and entire new systems (spawns, SCHs, pathfind, whole AI implemented, Desire system,...).
    • better than using 409... Search for L2jHellas or Lucera and you won't have any headaches.
  • 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