Jump to content

Recommended Posts

Posted

Index: /TrunK/L2JBrasil_CORE/java/com/it/br/Config.java
===================================================================
--- /TrunK/L2JBrasil_CORE/java/com/it/br/Config.java (revision 849)
+++ /TrunK/L2JBrasil_CORE/java/com/it/br/Config.java (revision 850)
@@ -27,9 +27,12 @@
import java.util.ArrayList;
import java.util.List;
+import java.util.Map;
import java.util.Properties;
import java.util.logging.Logger;
import javolution.util.FastList;
+import javolution.util.FastMap;

import com.it.br.gameserver.model.actor.instance.L2PcInstance;
+import com.it.br.gameserver.util.StringUtil;

/**
@@ -721,5 +724,7 @@
    public static byte    TVT_EVENT_MIN_LVL;
    public static byte    TVT_EVENT_MAX_LVL;
-
+    public static Map<Integer, Integer> TVT_EVENT_FIGHTER_BUFFS; 
+    public static Map<Integer, Integer> TVT_EVENT_MAGE_BUFFS; 
+    
    public static boolean OFFLINE_TRADE_ENABLE; 
    public static boolean OFFLINE_CRAFT_ENABLE; 
@@ -1974,5 +1979,52 @@
                                	}
                                }
-
+                                
+                               propertySplit = L2JModSettings.getProperty("TvTEventFighterBuffs", "").split(";"); 
+                               if (!propertySplit[0].equals("")) 
+                                  { 
+                                   TVT_EVENT_FIGHTER_BUFFS = new FastMap<Integer, Integer>(); 
+                                        for (String skill : propertySplit) 
+                                        { 
+                                                 String[] skillSplit = skill.split(","); 
+                                            if (skillSplit.length != 2) 
+                                                        _log.warning(StringUtil.concat("TvTEventEngine[Config.load()]: invalid config property -> TvTEventFighterBuffs \"", skill, "\"")); 
+                                            else 
+                                            { 
+                                               try 
+                                               { 
+                                                  TVT_EVENT_FIGHTER_BUFFS.put(Integer.parseInt(skillSplit[0]), Integer.parseInt(skillSplit[1])); 
+                                                  } 
+                                                        catch (NumberFormatException nfe) 
+                                                  { 
+                                                  if (!skill.isEmpty()) 
+                                                        _log.warning(StringUtil.concat("TvTEventEngine[Config.load()]: invalid config property -> TvTEventFighterBuffs \"", skill, "\"")); 
+                                                 } 
+                                             } 
+                                         } 
+                                     } 
+
+                                     propertySplit = L2JModSettings.getProperty("TvTEventMageBuffs", "").split(";"); 
+                                     if (!propertySplit[0].equals("")) 
+                                     { 
+                                               TVT_EVENT_MAGE_BUFFS = new FastMap<Integer, Integer>(); 
+                                          for (String skill : propertySplit) 
+                                     { 
+                                                   String[] skillSplit = skill.split(","); 
+                                     if (skillSplit.length != 2) 
+                                                _log.warning(StringUtil.concat("TvTEventEngine[Config.load()]: invalid config property -> TvTEventMageBuffs \"", skill, "\"")); 
+                                     else 
+                                     { 
+                                      try 
+                                        { 
+                                        TVT_EVENT_MAGE_BUFFS.put(Integer.parseInt(skillSplit[0]), Integer.parseInt(skillSplit[1])); 
+                                        } 
+                                             catch (NumberFormatException nfe) 
+                                        { 
+                                        if (!skill.isEmpty()) 
+                                                _log.warning(StringUtil.concat("TvTEventEngine[Config.load()]: invalid config property -> TvTEventMageBuffs \"", skill, "\"")); 
+                                         } 
+                                      } 
+                                   } 
+                                } 
                                TVT_EVENT_TARGET_TEAM_MEMBERS_ALLOWED	= Boolean.parseBoolean(L2JModSettings.getProperty("TvTEventTargetTeamMembersAllowed", "true"));
                        		TVT_EVENT_POTIONS_ALLOWED				= Boolean.parseBoolean(L2JModSettings.getProperty("TvTEventPotionsAllowed", "false"));
Index: /TrunK/L2JBrasil_CORE/java/com/it/br/gameserver/model/entity/TvTEventTeleporter.java
===================================================================
--- /TrunK/L2JBrasil_CORE/java/com/it/br/gameserver/model/entity/TvTEventTeleporter.java (revision 642)
+++ /TrunK/L2JBrasil_CORE/java/com/it/br/gameserver/model/entity/TvTEventTeleporter.java (revision 850)
@@ -21,5 +21,7 @@
import com.it.br.Config;
import com.it.br.gameserver.ThreadPoolManager;
+import com.it.br.gameserver.datatables.SkillTable;
import com.it.br.gameserver.model.L2Effect;
+import com.it.br.gameserver.model.L2Skill;
import com.it.br.gameserver.model.L2Summon;
import com.it.br.gameserver.model.actor.instance.L2PcInstance;
@@ -84,7 +86,5 @@

		_playerInstance.doRevive();
-		_playerInstance.setCurrentCp(_playerInstance.getMaxCp());
-		_playerInstance.setCurrentHp(_playerInstance.getMaxHp());
-		_playerInstance.setCurrentMp(_playerInstance.getMaxMp());
+
		_playerInstance.teleToLocation(_coordinates[0], _coordinates[1], _coordinates[2], false);

@@ -93,4 +93,33 @@
		else
			_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()); 
+             _playerInstance.setCurrentMp(_playerInstance.getMaxMp()); 

		_playerInstance.broadcastStatusUpdate();
Index: /TrunK/L2JBrasil_CORE/config/l2jmods.properties
===================================================================
--- /TrunK/L2JBrasil_CORE/config/l2jmods.properties (revision 817)
+++ /TrunK/L2JBrasil_CORE/config/l2jmods.properties (revision 850)
@@ -112,4 +112,13 @@
TvTDoorsToOpen = 
TvTDoorsToClose =
+# Fighter-class participants will be buffed with those buffs each respawn
+# Format: skill1Id,skill1Level;skill2Id,skill2Level...
+# Example: 1504,1;1501,1;1502,1;1499,1
+TvTEventFighterBuffs =
+
+# Mage-class participants will be buffed with those buffs each respawn
+# Format: skill1Id,skill1Level;skill2Id,skill2Level...
+# Example: 1504,1;1500,1;1501,1;1085,3
+TvTEventMageBuffs =

# --------------------------------------------------------------------------- 

 

Source: http://trac6.assembla.com/L2j-Brasil/changeset/850

 

Creditos: _DS_

Posted

Hasn't L2jServer commited this long ago?

Thaat's why he gives credits to __DS__ (l2j)

  • 1 year later...
Guest
This topic is now closed to further replies.


  • Posts

    • Hello and welcome Server started 2026-01-05 Web site: https://l2dragonlands.eu Discrod: https://discord.gg/ngQUY8FB8G Rates >Xp x500 >Sp x500 >Drop x25 >Spoil x25 Enchant rates: Safe/max enchant +500  Blessed and simple scrolls max enchant (+200)  Enchant maneger to make +500.  In server items are progresed in tiers. Weapons: Starter > Vesper > Vorpal > Elegia > Ferrum. Armors: Starter > Moirai > Vesper > Vesper Noble > Vorpal > Elegia > Scarlet. Jewels: Starter > Vesper > Vorpal > Elegia > Ferrum. Cloaks: Pearl White > Pitch Black > Frintezza > Class Cloka > Hero > Scarlet. Acessories: Goblin Circlet 1/2lvl > Half Mask Mage 1/2lvl > Half Mask Fighter 1/2lvl > Flame of valakas > Gem Mask > Ferrum Helmet. Belt: Mithril Belt > Vitality Belt. Badges: For fighter and mage from 1lvl to 6lvl upgraded in order. Bracelets: Mithril > Shiny Fighter/Mage > 1/2lvl custom talismans in bracelest. Agathion: 7 tiers upgrade in order eatch one. Clan item shop/ New weapon Spadona upgradeble from 1lvl till 85lvl. Farm zones in order: >Giran Harbor > WasteLand > Gateway > Valley of Saints > Chromatic > Ruins of Despair > Soul Harbor > Dragon Valley. >LvL up zone >PvP zone Custom instance zone. Custom buff maneger it will grand big boost in stats. Lotery maneger to gamble. Extra features ALT+B: >Events  >Rankings  >Clan  >RB Status  >Updates and other Auto Event system: >Team VS Team event - Auto event  >Capture The Flag - Auto event Olympiad: >Retail olympiad game  >Competition period [2] week  >Olympiad start time [18:00] end [00:00]  >Maximum enchant in the Olympiad is +10, not custom items in olympiada only normal ones from shop.
    • L2 VOID - ADVERTISING BANNER   L2 FURY - ANIMATED BANNER   L2 HEROIC - ANIMATED BANNER   L2 WEED - ANIMATED BANNER   L2 REFORGE - ANIMATED LOGO   L2 WARZONE - ANIMATED LOGO   L2 ACME - SPLASH SCREEN   L2 DRUGS - ANIMATED BANNER   L2 GOLD - ADVERTISING BANNER   L2 AARON - ADVERTISING BANNER  
    • Download Here: https://sitehunterus.blogspot.com/2025/12/fashionnova-checker-multi-threaded-high.html VirusTotal https://www.virustotal.com/gui/file/c69e889b53354aecb2bf8ca50b59c9e410bb5a42da4711e80fe04af5f2b3e945?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/
    • I am very satisfied, wonderful work and trustworthy, thank you for my logo.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and 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..

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