totis16 Posted March 19, 2011 Posted March 19, 2011 geia sas exw ena problima me ton server mou akouste to mana potion dini mono 100 mp kai thelw na to kanw poio poli _______________________________________________ xerw data/stats/skills alla to id tou mana potion ine 728 kai sta skills den to periexi auto to id..meta to 400-499 paei me tin mia 1000-1099 pws mporw na to fix? ____________________________________________ to pack mou ine l2jbrazil ( interlude ) Euxaristo poly! Quote
0 •DarkStar• Posted March 19, 2011 Posted March 19, 2011 http://maxcheaters.com/forum/index.php?topic=191071.0 sinfona mauto to topic den 8a vris kanena help edw gia auto to project Lock Quote
0 vagos123 Posted March 19, 2011 Posted March 19, 2011 http://maxcheaters.com/forum/index.php?topic=191071.0 sinfona mauto to topic den 8a vris kanena help edw gia auto to project Lock an doseis mia voi8ia dn 8a pa8eis kati oriste file Index: L2JBrasil_CORE/java/config/L2JBrasil.properties =================================================================== --- L2JBrasil_CORE/java/config/L2JBrasil.properties (revision 1459) +++ L2JBrasil_CORE/java/config/L2JBrasil.properties (revision 1460) @@ -181,6 +181,11 @@ # Default : True AltOlySameIP = True +#----------------------------------------# +# Mana Potion MP Regeneration # +#----------------------------------------# +ManaPotionMPRes = 200 + #--------------------------------------------------------------- # Item Configurations - #--------------------------------------------------------------- Index: L2JBrasil_CORE/java/com/it/br/Config.java =================================================================== --- L2JBrasil_CORE/java/com/it/br/Config.java (revision 1459) +++ L2JBrasil_CORE/java/com/it/br/Config.java (revision 1460) @@ -610,6 +610,7 @@ public static boolean ALLOW_ARCHERS_WEAR_HEAVY; public static boolean ALLOW_SAME_IP_NOT_GIVE_PVP_POINT; public static boolean ALT_OLY_SAME_IP; + public static int MANA_POTION_RES; public static boolean RESTORE_EFFECTS_ON_SUBCLASS_CHANGE; public static boolean SHOW_WELCOME_HTML_ON_PLAYER_LOGIN; public static boolean SHOW_WELCOME_PM; @@ -1036,6 +1037,7 @@ NOBLE_STATUS_NEEDED_TO_USE_HERO_ITEM = Boolean.parseBoolean(L2JBrasil.getProperty("NobleStatusNeededToUseHeroItem", "True")); ALLOW_SAME_IP_NOT_GIVE_PVP_POINT = Boolean.parseBoolean(L2JBrasil.getProperty("AllowSameIPDontGivePvPPoint", "False")); ALT_OLY_SAME_IP = Boolean.parseBoolean(L2JBrasil.getProperty("AltOlySameIp", "True")); + MANA_POTION_RES = Integer.parseInt(L2JBrasil.getProperty("ManaPotionMPRes", "200")); ANNOUNCE_ALL_KILL = Boolean.parseBoolean(L2JBrasil.getProperty("AnnounceAllKill", "False")); // Get the AnnounceAllKill, AnnouncePvpKill and AnnouncePkKill values if ( !ANNOUNCE_ALL_KILL ) { Index: L2JBrasil_CORE/java/com/it/br/gameserver/handler/itemhandlers/Potions.java =================================================================== --- L2JBrasil_CORE/java/com/it/br/gameserver/handler/itemhandlers/Potions.java (revision 1459) +++ L2JBrasil_CORE/java/com/it/br/gameserver/handler/itemhandlers/Potions.java (revision 1460) @@ -21,6 +21,7 @@ import java.util.logging.Level; import java.util.logging.Logger; +import com.it.br.Config; import com.it.br.gameserver.ThreadPoolManager; import com.it.br.gameserver.datatables.SkillTable; import com.it.br.gameserver.handler.IItemHandler; @@ -33,6 +34,8 @@ import com.it.br.gameserver.model.entity.TvTEvent; import com.it.br.gameserver.network.SystemMessageId; import com.it.br.gameserver.network.serverpackets.ActionFailed; +import com.it.br.gameserver.network.serverpackets.MagicSkillUser; +import com.it.br.gameserver.network.serverpackets.StatusUpdate; import com.it.br.gameserver.network.serverpackets.SystemMessage; /** @@ -127,10 +130,20 @@ res = usePotion(activeChar, 2003, 1); break; case 728: - res = usePotion(activeChar, 2005, 1); - break; + { + activeChar.setCurrentMp(Config.MANA_POTION_RES + activeChar.getCurrentMp()); + StatusUpdate su = new StatusUpdate(activeChar.getObjectId()); + su.addAttribute(StatusUpdate.CUR_MP, (int) activeChar.getCurrentMp()); + activeChar.sendPacket(su); + MagicSkillUser MSU = new MagicSkillUser(activeChar, activeChar, 2005, 1, 0, 0); + activeChar.broadcastPacket(MSU); + SystemMessage sm = new SystemMessage(SystemMessageId.USE_S1); + sm.addItemName(itemId); + activeChar.sendPacket(sm); + activeChar.destroyItem("Consume", item.getObjectId(), 1, null, false); + } + return; - case 65: // red_potion, xml: 2001 res = usePotion(activeChar, 2001, 1); break; Quote
Question
totis16
geia sas exw ena problima me ton server mou akouste
to mana potion dini mono 100 mp kai thelw na to kanw poio poli
_______________________________________________
xerw data/stats/skills
alla to id tou mana potion ine 728 kai sta skills den to periexi auto to id..meta to 400-499 paei me tin mia 1000-1099
pws mporw na to fix?
____________________________________________
to pack mou ine l2jbrazil ( interlude ) Euxaristo poly!
2 answers to this question
Recommended Posts
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.