Jump to content

[Guide][Share]Mana Potion [L2J,Java Modification,Ready And Compile]


Recommended Posts

Some1 ask me about mana potion at l2j how he can make it work's so... i search on forum and i don't find nothing about it ...for that reason many ppl don't choose l2jserver ..for me is the most stable pack...!!

 

So there you go the patch java/net/sf/l2j/gameserver/handler/itemhandlers/Potions.java

 

 

Index: java/net/sf/l2j/gameserver/handler/itemhandlers/Potions.java
===================================================================        
--- java/net/sf/l2j/gameserver/handler/itemhandlers/Potions.java	(revision 1915)
+++ java/net/sf/l2j/gameserver/handler/itemhandlers/Potions.java	(working copy)
@@ -115,6 +122,13 @@

		switch(itemId)
		{
+            		// MANA POTIONS 
+			case 726: // mana drug, xml: 2003 
+				res = usePotion(activeChar, 2003, 1); // configurable through xml 
+				break; 
+			case 728: // mana_potion, xml: 2005 
+				res = usePotion(activeChar, 2005, 1); 
+				break;
			// HEALING AND SPEED POTIONS
			case 65: // red_potion, xml: 2001
				res = usePotion(activeChar, 2001, 1);

 

 

Datapack Side:

 

Index:data/stats/skills/2000-2099.xml
===================================================================
--- data/stats/skills/2000-2099.xml	(revision 4397)
+++ data/stats/skills/2000-2099.xml	(working copy)
@@ -27,32 +27,41 @@
   </for>
</skill>
<skill id="2003" levels="1" name="Squash Seed">
-  <!-- Summer Squash Event Skill (http://www.lineage2.com/archive/2006/11/fall_harvest.html) -->
   <set name="power" val="0.0"/>
   <set name="target" val="TARGET_SELF"/>
-  <set name="skillType" val="NOTDONE"/>
-  <set name="operateType" val="OP_PASSIVE"/>
+  <set name="hitTime" val="1500"/>
+  <set name="skillType" val="MPHOT"/>
+  <set name="operateType" val="OP_ACTIVE"/>
   <set name="castRange" val="-1"/>
+  <set name="effectRange" val="-1"/>
+  <set name="buffDuration" val="20000"/>
+  <set name="isPotion" val="true"/>
   <for>
+	  <effect count="4" name="ManaHealOverTime" time="5" val="1.5" stackOrder="1.5" stackType="MpRecover"/>
   </for>
</skill>
<skill id="2004" levels="1" name="Large Squash Seed">
-  <!-- Summer Squash Event Skill (http://www.lineage2.com/archive/2006/11/fall_harvest.html) -->
   <set name="power" val="0.0"/>
   <set name="target" val="TARGET_SELF"/>
-  <set name="skillType" val="NOTDONE"/>
-  <set name="operateType" val="OP_PASSIVE"/>
+  <set name="skillType" val="MPHOT"/>
+  <set name="operateType" val="OP_ACTIVE"/>
   <set name="castRange" val="-1"/>
+  <set name="effectRange" val="-1"/>
+  <set name="buffDuration" val="40000"/>
+  <set name="isPotion" val="true"/>
   <for>
+    <effect count="4" name="ManaHealOverTime" time="10" val="1.5" stackOrder="1.5" stackType="MpRecover"/>
   </for>
</skill>
<skill id="2005" levels="1" name="Pollen">
-  <!-- Summer Squash Event Skill (http://www.lineage2.com/archive/2006/11/fall_harvest.html) -->
-  <set name="power" val="0.0"/>
+  <set name="power" val="200.0"/>
   <set name="target" val="TARGET_SELF"/>
-  <set name="skillType" val="NOTDONE"/>
-  <set name="operateType" val="OP_PASSIVE"/>
+  <set name="skillType" val="MANAHEAL"/>
+  <set name="operateType" val="OP_ACTIVE"/>
   <set name="castRange" val="-1"/>
+  <set name="effectRange" val="-1"/>
+  <set name="buffDuration" val="15000"/>
+  <set name="isPotion" val="true"/>
   <for>
   </for>
</skill>

 

This Code Made by l2j

 

--------------------------

 

Because some ppl don't know how to compile :P here the ready l2jcore with the mana potion work's http://www.4shared.com/file/80907204/3c2ee0c6/l2j-core.html  :)

 

For compile the core and made the modify credits going to me  :P

 

--------------------------

 

You only need to modify the datapack side easy to do  ;)

 

Go to data/stats/skills/2000-2099.xml and find skill pollen .

 

<!-- Summer Squash Event Skill (http://www.lineage2.com/archive/2006/11/fall_harvest.html) -->

-  <set name="power" val="200.0"/>  <<--- Here how mana you wanna spawn the player

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

-  <set name="skillType" val="MANAHEAL"/>  << skilll type mana heal like this what i'm write

-  <set name="operateType" val="OP_PASSIVE"/>

- <set name="castRange" val="-1"/>

+  <set name="effectRange" val="-1"/>

+  <set name="buffDuration" val="15000"/>

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

  <for>

  </for>

</skill>

 

Best Regards Cobra!!!

 

ps: If you find this post here delete mine.

ps:For those who don't know how to compile l2j >> http://www.l2jserver.com/trac/wiki/New_L2J_Install :)

Link to comment
Share on other sites

Yup..

 

Thats a Great Share..

 

You Are Awesome xD

 

Thanks For Sharing That Thing.

 

Keep Up With Those Java Thingies And You'll Get Rewarded

Link to comment
Share on other sites

  • 4 weeks later...

Tested on gracia? For me gracia pt 2 doesn't works ;/

 

Maybe you do something wrong read careful what i'm saying .. add this in first line of potion.java and could works fine!

 

// MANA POTIONS 
+			case 726: // mana drug, xml: 2003 
+				res = usePotion(activeChar, 2003, 1); // configurable through xml 
+				break; 
+			case 728: // mana_potion, xml: 2005 
+				res = usePotion(activeChar, 2005, 1); 
+				break;

Also you need to modify the xml to !!

Link to comment
Share on other sites

Cobra link dont work....Can you Upload again?

 

Are you kidding me?? The link work fine .... :o!

 

http://www.4shared.com/file/80907204/3c2ee0c6/l2j-core.html

Link to comment
Share on other sites

very nice work Cobra is good guide man thanks for share

 

Cobra link dont work....Can you Upload again?

 

lol the link work fine.... try it

Link to comment
Share on other sites

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.



  • Posts

    • Help plz i have this error   Has anyone had this happen to you? How do I solve it?  
    • ??? error   https://ibb.co/Srn4LsX No support  :S   No support : S ? :S @Lowness  ..... error, help   hey friend were you able to solve the problem? were you able to solve the problem?
    • I also think this feature would bring more harm than good... another example is a dwarf rushing against your mobs so he takes priority, then he plays fake death and proceeds to grief the shit out of you. A minimum damage threshold is necessary, which would basically converge to what is the default feature (i.e. biggest damage dealer)
    • I bought the premium to watch the video and it's private. 😢
    • For some Majestic reason OP can't edit their topics anymore?    Let me update the potential offers, I got up to 2 spots to fill.   CONTACT TELEGRAM ONLY: https://t.me/asupport_g1     A credible team that SGuard represents is looking for java developers.    These positions is full time only i.e. your time is mostly dedicated within the team and team tasks, side gigs are fine, as long as you are able to combine your gig and main.  All necessary tools are provided.  The team is consistent with > 10 team members and the team is looking to expand to meet various goals. A decent Lineage 2 Essense OR Main (GOD) knowledge is needed.  Experience with l2r/l2p/l2s. mobius is fine too for referrence only. The team is friendly and goal oriented, very active and resourceful.   Requirements are standard, java knowledge is optional.  Multi language is a plus but not necessary (English/Russian), any is accepted.   Terms and conditions including compensation are reasonable and considered to be up for the industry standards. Details are negotiable with suitable candidates.   You will need to have a headset and a mic just for the initial processing, there're no team meetings or conferences after that. There's a small 30min interview process to demonstrate knowledge and just to meet each other.   The team has decided it is in their best interest to not publish their information at this time. Details will be available only for suitable candidates.   CONTACT TELEGRAM ONLY: https://t.me/asupport_g1
  • Topics

×
×
  • Create New...