Kràtos Posted January 16, 2009 Posted January 16, 2009 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 :)
BaB Posted January 17, 2009 Posted January 17, 2009 Thank you verry much Cobra...been looking forward for this fix :)
Stefoulis15 Posted January 17, 2009 Posted January 17, 2009 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
TexasJunior Posted January 17, 2009 Posted January 17, 2009 Good Work ! but i thing to dont give the ready l2jcore to learn all make compile ;P Keep up!
Fogotendx20 Posted January 17, 2009 Posted January 17, 2009 rly? in l2j project dont exist config for mana potions? ENABLE/DISABLE
Kràtos Posted January 17, 2009 Author Posted January 17, 2009 rly? in l2j project dont exist config for mana potions? ENABLE/DISABLE Nope don't exist on l2jserver check better the configs my friend :)
Kràtos Posted February 9, 2009 Author Posted February 9, 2009 it's for gracia ? Yes Tested On Gracia !
yautja Posted February 17, 2009 Posted February 17, 2009 Tested on gracia? For me gracia pt 2 doesn't works ;/
Kràtos Posted February 17, 2009 Author Posted February 17, 2009 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 !!
jamaica2689 Posted February 24, 2009 Posted February 24, 2009 hey cobra do u have a messenger id or msn...i really want speak with u...please :P if u wanna help me add my id lucif3r_gogo@yahoo.com thank you
TerrorXCrew Posted February 25, 2009 Posted February 25, 2009 Cobra link dont work....Can you Upload again?
Kràtos Posted February 25, 2009 Author Posted February 25, 2009 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
CriticalError Posted February 25, 2009 Posted February 25, 2009 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
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