Jump to content

Recommended Posts

Posted

paidia edo einai ena config  gia  ta  mana potion poso mp  8a anebazei .....

 

 

Index: /trunk/lin2srv/java/config/l2jmods.properties
===================================================================
--- /trunk/lin2srv/java/config/l2jmods.properties (revision 834)
+++ /trunk/lin2srv/java/config/l2jmods.properties (revision 883)
@@ -252,4 +252,11 @@
EnableManaPotionSupport = False

+# Mp recovery for mana potion (ID 728)
+# Lvl1 - 100MP, lvl2 - 250MP
+# Lvl3 - 500MP, lvl4 - 750MP
+# Lvl5 - 1000MP
+# Default: 1
+ManaPotionLevel = 1
+
# ---------------------------------------------------------------------------
# Welcome message
Index: /trunk/lin2srv/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- /trunk/lin2srv/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 873)
+++ /trunk/lin2srv/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 883)
@@ -10849,5 +10849,6 @@
			getPet().updateAndBroadcastStatus(0);
		}
-		
+
+		TvTEvent.onTeleported(this);
	}

Index: /trunk/lin2srv/java/net/sf/l2j/gameserver/model/entity/TvTEvent.java
===================================================================
--- /trunk/lin2srv/java/net/sf/l2j/gameserver/model/entity/TvTEvent.java (revision 849)
+++ /trunk/lin2srv/java/net/sf/l2j/gameserver/model/entity/TvTEvent.java (revision 883)
@@ -25,4 +25,5 @@
import net.sf.l2j.gameserver.datatables.ItemTable;
import net.sf.l2j.gameserver.datatables.NpcTable;
+import net.sf.l2j.gameserver.datatables.SkillTable;
import net.sf.l2j.gameserver.datatables.SpawnTable;
import net.sf.l2j.gameserver.model.L2Skill;
@@ -896,4 +897,40 @@
	}

+	/**
+	 * Called on Appearing packet received (player finished teleporting)<br><br>
+	 * 
+	 * @param L2PcInstance playerInstance
+	 */
+	public static void onTeleported(L2PcInstance playerInstance)
+	{
+		if (!isStarted() || playerInstance == null || !isPlayerParticipant(playerInstance.getObjectId()))
+			return;
+
+		if (playerInstance.isMageClass())
+		{
+			if (Config.TVT_EVENT_MAGE_BUFFS != null && !Config.TVT_EVENT_MAGE_BUFFS.isEmpty())
+			{
+				for (int i : Config.TVT_EVENT_MAGE_BUFFS.keySet())
+				{
+					L2Skill skill = SkillTable.getInstance().getInfo(i, Config.TVT_EVENT_MAGE_BUFFS.get(i));
+					if (skill != null)
+						skill.getEffects(playerInstance, playerInstance);
+				}
+			}
+		}
+		else
+		{
+			if (Config.TVT_EVENT_FIGHTER_BUFFS != null && !Config.TVT_EVENT_FIGHTER_BUFFS.isEmpty())
+			{
+				for (int i : Config.TVT_EVENT_FIGHTER_BUFFS.keySet())
+				{
+					L2Skill skill = SkillTable.getInstance().getInfo(i, Config.TVT_EVENT_FIGHTER_BUFFS.get(i));
+					if (skill != null)
+						skill.getEffects(playerInstance, playerInstance);
+				}
+			}
+		}
+	}
+
     /*
      * Return true if player valid for skill
Index: /trunk/lin2srv/java/net/sf/l2j/gameserver/model/entity/TvTEventTeleporter.java
===================================================================
--- /trunk/lin2srv/java/net/sf/l2j/gameserver/model/entity/TvTEventTeleporter.java (revision 814)
+++ /trunk/lin2srv/java/net/sf/l2j/gameserver/model/entity/TvTEventTeleporter.java (revision 883)
@@ -17,6 +17,4 @@
import net.sf.l2j.Config;
import net.sf.l2j.gameserver.ThreadPoolManager;
-import net.sf.l2j.gameserver.datatables.SkillTable;
-import net.sf.l2j.gameserver.model.L2Skill;
import net.sf.l2j.gameserver.model.actor.L2Summon;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
@@ -85,30 +83,4 @@
			_playerInstance.setTeam(0);

-		L2Skill skill;
-		if (_playerInstance.isMageClass())
-		{
-			if (Config.TVT_EVENT_MAGE_BUFFS != null && !Config.TVT_EVENT_MAGE_BUFFS.isEmpty())
-			{
-				for (int i : Config.TVT_EVENT_MAGE_BUFFS.keySet())
-				{
-					skill = SkillTable.getInstance().getInfo(i, Config.TVT_EVENT_MAGE_BUFFS.get(i));
-					if (skill != null)
-						skill.getEffects(_playerInstance, _playerInstance);
-				}
-			}
-		}
-		else
-		{
-			if (Config.TVT_EVENT_FIGHTER_BUFFS != null && !Config.TVT_EVENT_FIGHTER_BUFFS.isEmpty())
-			{
-				for (int i : Config.TVT_EVENT_FIGHTER_BUFFS.keySet())
-				{
-					skill = SkillTable.getInstance().getInfo(i, Config.TVT_EVENT_FIGHTER_BUFFS.get(i));
-					if (skill != null)
-						skill.getEffects(_playerInstance, _playerInstance);
-				}
-			}
-		}
-
		_playerInstance.setCurrentCp(_playerInstance.getMaxCp());
		_playerInstance.setCurrentHp(_playerInstance.getMaxHp());
Index: /trunk/lin2srv/java/net/sf/l2j/Config.java
===================================================================
--- /trunk/lin2srv/java/net/sf/l2j/Config.java (revision 878)
+++ /trunk/lin2srv/java/net/sf/l2j/Config.java (revision 883)
@@ -622,4 +622,5 @@
	public static int OFFLINE_NAME_COLOR;
	public static boolean L2JMOD_ENABLE_MANA_POTIONS_SUPPORT;
+	public static int MANA_POTION_LEVEL;
	public static boolean WELCOME_MESSAGE_ALLOW;
	public static String WELCOME_MESSAGE;
@@ -2068,4 +2069,6 @@

					L2JMOD_ENABLE_MANA_POTIONS_SUPPORT = Boolean.parseBoolean(L2JModSettings.getProperty("EnableManaPotionSupport", "false"));
+					MANA_POTION_LEVEL = Integer.parseInt(L2JModSettings.getProperty("ManaPotionLevel", "1"));
+					if (MANA_POTION_LEVEL > 5 || MANA_POTION_LEVEL < 1) MANA_POTION_LEVEL = 5;

					WELCOME_MESSAGE_ALLOW = Boolean.parseBoolean(L2JModSettings.getProperty("AllowScreenWelcomeMessage", "false"));

Posted

Nomizw oti anoikei stin L2JArchid. Deite /trunk/lin2srv/  .Nomizw oti afto einai tis L2jArchid.Mporei na kanw kai la8os.

 

file tosa 3ereis tosa les  ama deis kalitera

leei  se ayto to simio

 

/trunk/lin2srv/java/net/sf/l2j/gameserver/model/entity/TvTEvent.java

 

l2j kai  den exei kamia sxesei me to L2jArchid giati exoun diaforetika java :P

 

des kai monos sou se ayto to link

 

http://svn.assembla.com/svn/L2J-Archid/trunk/L2J-Archid-Game/src/main/java/com/l2jarchid/gameserver/

 

 

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...