Jump to content
  • 0

[HELP] Mana Potions


Question

Posted

Γεια σας παιδιά,

Θέλω να ανοίξω έναν Gracia partII server και χρησιμοποιώ precompiled pack τις l2j και θέλω να προσθέσω τα mana potions, όλοι γνωρίζετε πως από ένα σημείο και πέρα ο official έβγαλε τα mana potion και ο μόνος τρόπος να τα προσθέσεις είναι μέσα από κάποια βήματα και με βοήθεια του eclipse. Επειδή εγώ δεν είμαι γνώστης αυτής τις διαδικασίας μπορεί κάποιος να μου ετοιμάσει ή να βρει ένα έτοιμο l2jserver.jar αρχείο ?

 

 

 

Ευχάριστώ εκ τον προτέρων...

6 answers to this question

Recommended Posts

  • 0
Posted

File mou,ta mana potions uparxoun hdh ara dn xreiazete na ta pros8eseis apla kane //create_item 728.

Dokimase to kai pes mas.

 

 

Den yparxoun sto l2j O.O

 

@Masterlam: Mou edwses idea :P w8 pao na to psakso kai tha kano to post...btw pare mia idea ;)

 

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>

 

;)

 

p.s:w8 na to kano compile :)

  • 0
Posted

Φιλε μου RobZombie στο client μέσα υπάρχει το icon γενικά το mana potion, εφόσον δεν το διαβάζει η db είναι σαν να μην υπάρχει είναι απλά μια εικόνα που δεν κάνει τίποτα.

και φιλε μου Cobra ευχάριστο για τον code αλλα δεν μου είναι χρήσιμος στην μορφή στην οποια μου τον έδωσες γιατί θέλει να το patcharo κατά κάποιο τρόπο πράγμα που δεν γνωρίζω όπως προ ανέφερα, εάν θα μπορούσατε να μου το δώσετε όπως το ζήτησα θα ήταν ότι καλύτερο.

  • 0
Posted

και φιλε μου Cobra ευχάριστο για τον code αλλα δη μου είναι χρήσιμος στην μορφή στην οποια μου τον έδωσες γιατί θέλει να το patcharo κατά κάποιο τρόπο πράγμα που δεν γνωρίζω όπως προ ανέφερα, εάν θα μπορούσατε να μου το δώσετε όπως το ζήτησα θα ήταν ότι καλύτερο.

 

Lipon eisai etoimos  ;) http://www.4shared.com/file/80907204/3c2ee0c6/l2j-core.html otan t kaneis unzip tha deis oti einai to core tou l2j kai tha to antikatastiseis me to allo :)

 

Twra gia na af3iseis i na mioseis posa mana potio na mpenoune pas gameserver/data/stats/skills/2000-2099.xml

 

kai tha vreis to pollen  to power einai posa mana potion prp na mpoune!!

 

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

-  <set name="power" val="200.0"/>  <<--- posa mana thes na mpoune

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

-  <set name="skillType" val="MANAHEAL"/>  << skilll type mana heal opos to exw grapsei

-  <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"/>  << ayto true

   <for>

   </for>

</skill>

 

Ayta  :D

 

 

  • 0
Posted

Φιλε δουλεύει μια χαρά ευχάριστώ ...

 

Tpt edw eimaste gia na voythame oso mporoume :)

 

p.s: Kapios mod lock to topic to provlima lithike.

Guest
This topic is now closed to further replies.


  • Posts

    • Good day! Due to the increasing number of questions, "Do you provide services for the client?" - I decided to answer with a separate topic. I provide services for editing/modifying the client and individual files, namely: 1. Transfer/Creation/Editing locations, geodata.   2. All kinds of work with NPCs, including transfer, animation, adding effects to them and logos.   3. Actually, Transfer/Creation/Edit any EFFECTS, including Abnormal Effects.   4. Any work with weapons, armor, accessories and everything related to it.   5. Create or edit textures, including dynamic textures.   6. Creating a Lobby Screen, Lobby Char Selection (character selection window) and Lobby Char Creation (character creation window). What I don't do: 1. Coding in any form (except for CB).   I started publishing my work recently, here - YouTube And here - RuTube If required, I respect confidentiality. Any other questions? Welcome to Telegram or PM.
    • 🎮https://discord.gg/yyVRtna9RB 🌎https://l2-forever.com L2 Forever was the best mid rates PvP server back in C4 and C5 and we want to give players the same experience with Interlude!   # L2-Forever * EXP: 50x * Adena: 200x * Spoil: 5x * Drops: 5x   # ENCHANTS *Safe Enchant : 3 *Max. Enchant : 20 *Normal Scroll chance : 65% *Blessed Scroll chance : 70%   # NEW PLAYERS * Start with Coupons allowing you to get free top D-grade * Start at level 20 * Main Town Giran Harbor   # BOOSTED AREA'S * Execution Grounds [ 20 - 40] * Cruma Tower [40-52] * Antharas Lair [52-61] * Antharas Heart [61-80] * Giran Harbor - Shopping Area   # END GAME FARMING AREAS * Monastery of Silence and Primeval Island customized for group farm # PLATINUM ARMORS * Platinum Armors get dropped by raids, allowing everyone to obtain a set and not only donators * Many Raids all over the L2 world drop parts of the Platinum Armors   # BUFFS * Buff duration is set at 1 hour for normal buffs (Buffs and Songs / Dances) * Town Buffers in all main towns with all available buffs Giran Harbor (GH) is the place to be for all your trades and item needs! Platinum Armors   # FOREVER ITEMS * Unique Forever weapons & armors # UNIQUE L2 FOREVER AUGMENTATION SYSTEM * We don't use retail augmentations, we use our own unique system and glows!   # OTHER CUSTOM FEATURES * Global Gatekeeper * NPC Class Changer * Auction House * Unique Augmenter * Subclass with Adena or from Cabrio * Nobless - Barakiel * Useless S weapon Special abilities like (Cheap shot) are changed
    • 🎮https://discord.gg/yyVRtna9RB 🌎https://l2-forever.com L2 Forever was the best mid rates PvP server back in C4 and C5 and we want to give players the same experience with Interlude!   # L2-Forever * EXP: 50x * Adena: 200x * Spoil: 5x * Drops: 5x   # ENCHANTS *Safe Enchant : 3 *Max. Enchant : 20 *Normal Scroll chance : 65% *Blessed Scroll chance : 70%   # NEW PLAYERS * Start with Coupons allowing you to get free top D-grade * Start at level 20 * Main Town Giran Harbor   # BOOSTED AREA'S * Execution Grounds [ 20 - 40] * Cruma Tower [40-52] * Antharas Lair [52-61] * Antharas Heart [61-80] * Giran Harbor - Shopping Area   # END GAME FARMING AREAS * Monastery of Silence and Primeval Island customized for group farm # PLATINUM ARMORS * Platinum Armors get dropped by raids, allowing everyone to obtain a set and not only donators * Many Raids all over the L2 world drop parts of the Platinum Armors   # BUFFS * Buff duration is set at 1 hour for normal buffs (Buffs and Songs / Dances) * Town Buffers in all main towns with all available buffs Giran Harbor (GH) is the place to be for all your trades and item needs! Platinum Armors   # FOREVER ITEMS * Unique Forever weapons & armors # UNIQUE L2 FOREVER AUGMENTATION SYSTEM * We don't use retail augmentations, we use our own unique system and glows!   # OTHER CUSTOM FEATURES * Global Gatekeeper * NPC Class Changer * Auction House * Unique Augmenter * Subclass with Adena or from Cabrio * Nobless - Barakiel * Useless S weapon Special abilities like (Cheap shot) are changed
    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchihamkt.mysellix.io/ Join our server for more products : https://discord.gg/uthciha-services https://campsite.bio/utchihaamkt
  • Topics

×
×
  • Create New...