Flash™ Posted September 4, 2009 Posted September 4, 2009 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"));
3xpl0it3R Posted September 4, 2009 Posted September 4, 2009 Ti kanei afto edw ? Afto prepei na paei sto Server Modifications .Kapios na to kanei move !
Grim. Posted September 4, 2009 Posted September 4, 2009 @timoskouros mia xara einai edw.. file den mac lec p na valume poso karma mac anevazei ... btw credits?
3xpl0it3R Posted September 4, 2009 Posted September 4, 2009 Nomizw oti anoikei stin L2JArchid. Deite /trunk/lin2srv/ .Nomizw oti afto einai tis L2jArchid.Mporei na kanw kai la8os.
Flash™ Posted September 4, 2009 Author Posted September 4, 2009 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/
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now