Jump to content
  • 0

MaNa Potion Problem


Question

12 answers to this question

Recommended Posts

  • 0
Posted

<?xml version="1.0" encoding="UTF-8"?>

<list>

<skill id="10000" levels="1" name="Custom Mana Drug">

<set name="itemConsumeId" val="726" />

<set name="itemConsumeCount" val="1" />

<set name="buffDuration" val="1" />

<set name="isPotion" val="true" />

<set name="magicLvl" val="1" />

<set name="operateType" val="OP_ACTIVE" />

<set name="skillType" val="MPHOT" />

<set name="target" val="TARGET_SELF" />

<cond msgId="113" addName="1">

<player flyMounted="False" />

</cond>

<for>

<effect count="3" name="ManaHealOverTime" time="5" val="1.5" stackOrder="1.5" stackType="mp_recover" />

</for>

</skill>

<skill id="10001" levels="1" name="Custom Mana Potion">

<set name="itemConsumeId" val="728" />

<set name="itemConsumeCount" val="1" />

<set name="isPotion" val="true" />

<set name="magicLvl" val="1" />

<set name="operateType" val="OP_ACTIVE" />

<set name="power" val="5000" />

<set name="skillType" val="MANAHEAL" />

<set name="target" val="TARGET_SELF" />

<cond msgId="113" addName="1">

<player flyMounted="False" />

</cond>

</skill>

</list>

  • 0
Posted

<?xml version="1.0" encoding="UTF-8"?>

<list>

<skill id="10000" levels="1" name="Custom Mana Drug">

<set name="itemConsumeId" val="726" />

<set name="itemConsumeCount" val="1" />

<set name="buffDuration" val="1" />

<set name="isPotion" val="true" />

<set name="magicLvl" val="1" />

<set name="operateType" val="OP_ACTIVE" />

<set name="skillType" val="MPHOT" />

<set name="target" val="TARGET_SELF" />

<cond msgId="113" addName="1">

<player flyMounted="False" />

</cond>

<for>

<effect count="3" name="ManaHealOverTime" time="5" val="1.5" stackOrder="1.5" stackType="mp_recover" />

</for>

</skill>

<skill id="10001" levels="1" name="Custom Mana Potion">

<set name="itemConsumeId" val="728" />

<set name="itemConsumeCount" val="1" />

<set name="isPotion" val="true" />

<set name="magicLvl" val="1" />

<set name="operateType" val="OP_ACTIVE" />

<set name="power" val="5000" /> --< για το πόσο θα γεμίζει

<set name="skillType" val="MANAHEAL" />

<set name="target" val="TARGET_SELF" />

<cond msgId="113" addName="1">

<player flyMounted="False" />

</cond>

</skill>

</list>

  • 0
Posted

pare auto , perase to kai vale oso 8es na anevazei

 

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;

  • 0
Posted

nai...L2j Server Rev 7669 afto exw

pigene sto guide tou extreme dwarf , einai kai sticky , ma8e compile

 

ftiakse to pack s apo tn arxi , perna osa fix kai mods 8es kai 8a eisai coble

 

me pre pack dn mporeis na kaneis tpt

Guest
This topic is now closed to further replies.


  • Posts

    • Hello, I'm looking for classic client for l2 gold or l2 gold weapons for classic 166 version
    • Good afternoon   ⚡CAN'T GO TO THE ONLINE STORE? OPEN THE SITE VIA VPN OR TOR BROWSER⚡ ⚡PREMIUM QUALITY ACCOUNTS, INSTANT DELIVERY, FREE CONSULTATIONS, RELIABLE WORK⚡   ✔ Ready accounts ✔   BUSINESS ACCOUNTS ☟ Blackcatcard Business LV, Volet com (AdvCash) Business EU, Xapo Bank Business EU, Finom Business, PayPal Business, Payset Business, Stripe Business, Payoneer Business EU, Wise Business UK/EU, Revolut Business EU/UK, N26 Business DE, Wallester Business EU, Mistertango Business LV   BANKS, NATIONAL BANKS ☟ Ceska Sporitelna, KASIKORNBANK, BBVA, CommerzBank, Santander, Kaspi Bank, AlfaBank, Raiffeisen, mBank, Paribas, Bereke Bank, Freedom Bank   PAYMENT SYSTEMS ☟ Bunq on emulator (DE, NL, FR, ES, IE ibans), Revolut on emulator (UK/EU), ICard, BlackCatCard, Vivid DE, Bankera, Bitsa, Wise EU/UK, N26 DE on emulator, Skrill, Neteller, Trasta, Wirex, Lama, Paysera, 4x4 io, Weststein, Paysafecard, Paysend, Genome, Conotoxia, Mybrocard, Payz Silver, Pockit UK, NagaPay, Volet com, SpectroCoin, SwissMoney, Yuh, Lydia / Sumeria, Ka.App, Wittix, Western Union, MyGuava   CRYPTOEXCHANGE ☟ Poloniex, Bitmart, Kraken, WhiteBit, Quppy, Nexo, Gate, OKX, Paybis, Paxful, Huobi (HTX), xcoins com, Bit2Me, Bybit LVL 2, KuCoin, Binance LVL 2, Mexc, Latoken   Contact via telegram - in the first post of the topic!
    • Sell "Amoral" Classic Armor and Weapon.   Custom "Amoral" Draconic Set YouTube Custom "Amoral" Imperial Set YouTube Custom "Amoral" Dark Crystal Robe YouTube Custom "Amoral" Classic S-Grade Weapon YouTube My Contacts Telegram  
    • Greetings to all! I offer a scope for client modification. What services do I provide: 1) Transfer of any Weapon, Armor, Accessories, from any chronicles to yours. 2) Creating exclusive add-ons. 3) Repainting of Armor, Weapons аnd Accessories. 4) Packing the icons you need and other things. 5) Creating NPCs with and without effects. 6) Create Monsters and Raid bosses, with effects and sounds. 7) HTLM NPC design. Creating Buttons and other things for your project. And much more If you have any questions, write in  Telegram. You can find some of the works here  YouTube
  • Topics

×
×
  • Create New...