Jump to content

Recommended Posts

Posted

An mporei kapios na to kanei addapt gia l2jbrasil (pou xrisimopoioun oi perisoteroi 8a helpare poli)

 

Idaka stin l2jbrasil... gt h l2jbrasil den prepei na alla3eis mono ta imports... alla stin ousia na kaneis new code....

Posted

Στα μηδενικά που έχει βάζεις τα ID από το Armor. Άν δεν υπάρχει armor (πχ όταν έχεις full-body , δεν έχεις pants ) βάζεις 0.

nai auto to katalaba alla ama 8elw kiales armor?8a grafw sto glove px 20000,15000?(ena glove apo dark knight kai apo epic armor px lew)?

Posted

nai auto to katalaba alla ama 8elw kiales armor?8a grafw sto glove px 20000,15000?(ena glove apo dark knight kai apo epic armor px lew)?

An mporei kapios na to kanei addapt gia l2jbrasil (pou xrisimopoioun oi perisoteroi 8a helpare poli)

 

Idaka stin l2jbrasil... gt h l2jbrasil den prepei na alla3eis mono ta imports... alla stin ousia na kaneis new code....

Ginete? Plz  paidia

Posted

Re  pedia sori  pou sas ta prizo  ilikrina  mporite na to perasete  sto java  dild na douleuei me tin mia  gia ta 3 set dyn

 L   9425   9428   9429   9430   9431        

H      9416   9421   9422   9423   9424      

R   9432   9437   9438   9439   9440    an sas einai eukolo

Posted

Re  pedia sori  pou sas ta prizo  ilikrina  mporite na to perasete  sto java  dild na douleuei me tin mia  gia ta 3 set dyn

  L  9425  9428  9429  9430  9431       

H      9416  9421  9422  9423  9424   

R  9432  9437  9438  9439  9440    an sas einai eukolo

dn diabases?auto to share eina gia 1 set

8a ftia3ei new me polla set akoma pfff

Posted

-Gia Interlude L2JBrazil latest revision

-exei prostethei dinatotita gia polla diaforetika armor set.

 

### Eclipse Workspace Patch 1.0
#P L2JBrasil_CORE
Index: java/com/it/br/gameserver/Custom/ArmorSet.java
===================================================================
--- java/com/it/br/gameserver/Custom/ArmorSet.java	(revision 0)
+++ java/com/it/br/gameserver/Custom/ArmorSet.java	(revision 0)
@@ -0,0 +1,89 @@
+/* This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+ * 02111-1307, USA.
+ *
+ * http://www.gnu.org/copyleft/gpl.html
+ */
+package com.it.br.gameserver.Custom;
+
+/**
+ *
+ * @author  Issle
+ */
+public class ArmorSet
+{
+	private int glovesId;
+	private int bootsId;
+	private int helmetId;
+	private int pantsId;
+	private int bodyId;
+	
+	/**
+	 * Add the ids in the following order for this set:
+	 * 
+	 * @param _bootsId
+	 * @param _pantsId
+	 * @param _bodyId
+	 * @param _glovesId
+	 * @param _helmetId
+	 */
+	public ArmorSet(int _bootsId, int _pantsId, int _bodyId, int _glovesId, int _helmetId)
+	{
+		glovesId =_glovesId;
+		bootsId = _bootsId;
+		helmetId = _helmetId;
+		pantsId = _pantsId;
+		bodyId = _bodyId;
+	}
+	
+	/**
+	 * @return Returns the helmetId.
+	 */
+	public int getHelmetId()
+	{
+		return helmetId;
+	}
+
+	/**
+	 * @return Returns the pantsId.
+	 */
+	public int getPantsId()
+	{
+		return pantsId;
+	}
+
+	/**
+	 * @return Returns the bodyId.
+	 */
+	public int getBodyId()
+	{
+		return bodyId;
+	}
+
+	/**
+	 * @return Returns the bootsId.
+	 */
+	public int getBootsId()
+	{
+		return bootsId;
+	}
+
+	/**
+	 * @return Returns the glovesId.
+	 */
+	public int getGlovesId()
+	{
+		return glovesId;
+	}
+}
Index: java/com/it/br/gameserver/GameServer.java
===================================================================
--- java/com/it/br/gameserver/GameServer.java	(revision 1178)
+++ java/com/it/br/gameserver/GameServer.java	(working copy)
@@ -29,6 +29,7 @@
import com.it.br.Config;
import com.it.br.L2DatabaseFactory;
import com.it.br.Server;
+import com.it.br.gameserver.Custom.NoblesseArmor;
import com.it.br.gameserver.cache.CrestCache;
import com.it.br.gameserver.cache.HtmCache;
import com.it.br.gameserver.communitybbs.Manager.ForumsBBSManager;
@@ -539,6 +540,7 @@
         TvTManager.getInstance();
		Npcbuffer.getInstance().engineInit();
		NpcBufferSkillIdsTable.getInstance();
+		NoblesseArmor.loadConfigurations();
         if (Config.NPCBUFFER_FEATURE_ENABLED) 
	        { 
	                BufferSkillsTable.getInstance();
Index: java/com/it/br/gameserver/model/L2Character.java
===================================================================
--- java/com/it/br/gameserver/model/L2Character.java	(revision 1178)
+++ java/com/it/br/gameserver/model/L2Character.java	(working copy)
@@ -36,6 +36,7 @@
import com.it.br.gameserver.GameTimeController;
import com.it.br.gameserver.GeoData;
import com.it.br.gameserver.ThreadPoolManager;
+import com.it.br.gameserver.Custom.NoblesseArmor;
import com.it.br.gameserver.ai.CtrlEvent;
import com.it.br.gameserver.ai.CtrlIntention;
import com.it.br.gameserver.ai.L2AttackableAI;
@@ -1514,6 +1515,10 @@
			if (((L2PlayableInstance)this).getCharmOfLuck()) //remove Lucky Charm if player has SoulOfThePhoenix/Salvation buff 
			((L2PlayableInstance)this).stopCharmOfLuck(null); 
			} 
+		else if(this instanceof L2PcInstance && NoblesseArmor.hasArmorNoblesse((L2PcInstance)this))
+		{
+			//Do nothing aka do not remove effects.
+		}
		else
			stopAllEffects();

Index: java/com/it/br/gameserver/Custom/NoblesseArmor.java
===================================================================
--- java/com/it/br/gameserver/Custom/NoblesseArmor.java	(revision 0)
+++ java/com/it/br/gameserver/Custom/NoblesseArmor.java	(revision 0)
@@ -0,0 +1,95 @@
+/* This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+ * 02111-1307, USA.
+ *
+ * http://www.gnu.org/copyleft/gpl.html
+ */
+package com.it.br.gameserver.Custom;
+
+import java.util.LinkedList;
+import java.util.logging.Logger;
+
+import com.it.br.gameserver.model.Inventory;
+import com.it.br.gameserver.model.PcInventory;
+import com.it.br.gameserver.model.actor.instance.L2PcInstance;
+
+/**
+ *
+ * @author  Issle
+ */
+public class NoblesseArmor
+{
+	protected static final Logger _log = Logger.getLogger(NoblesseArmor.class.getName());
+	private static LinkedList<ArmorSet> armorSets = new LinkedList<ArmorSet>();
+	
+	public static void loadConfigurations()
+	{
+		//Add your custom armor sets here. A player must have 
+		//one of these sets equiped to retain his buffs onDie.
+		armorSets.add(new ArmorSet(123, 234, 2356, 3456, 456));
+		armorSets.add(new ArmorSet(1234, 234, 2356, 3456, 4556));
+		armorSets.add(new ArmorSet(123, 2384, 2356, 34536, 456));
+		
+		
+		_log.info("[NoblesseArmor]: Loaded "+String.valueOf(armorSets.size())+" armor sets.");
+	}
+	
+	public static boolean hasArmorNoblesse(L2PcInstance activeChar)
+	{
+		PcInventory inventory = activeChar.getInventory();
+		
+		int _pantsId = inventory.getPaperdollItemId(Inventory.PAPERDOLL_LEGS);
+		int _bodyId = inventory.getPaperdollItemId(Inventory.PAPERDOLL_CHEST);
+		int _helmetId = inventory.getPaperdollItemId(Inventory.PAPERDOLL_HEAD);
+		int _glovesId = inventory.getPaperdollItemId(Inventory.PAPERDOLL_GLOVES);
+		int _bootsId = inventory.getPaperdollItemId(Inventory.PAPERDOLL_FEET);
+		
+		for(ArmorSet set: armorSets)
+		{
+			if(isValidArmor(set, _pantsId, _bodyId, _helmetId, _glovesId, _bootsId))
+			{
+				activeChar.sendMessage("You maintained your buffs cause of your special armor configuration.");
+				return true;
+			}
+		}
+		activeChar.sendMessage("No special armor configuration, you lost your buffs.");
+		return false;
+	}
+
+	/**
+	 * @param set
+	 * @param pantsId
+	 * @param bodyId
+	 * @param helmetId
+	 * @param glovesId
+	 * @param bootsId
+	 * @return
+	 */
+	private static boolean isValidArmor(ArmorSet set, int pantsId, int bodyId, int helmetId, int glovesId, int bootsId)
+	{
+		if(pantsId != set.getPantsId())
+			return false;
+		if(bodyId != set.getBodyId())
+			return false;
+		if(helmetId != set.getHelmetId())
+			return false;
+		if(glovesId != set.getGlovesId())
+			return false;
+		if(bootsId != set.getBootsId())
+			return false;
+		
+		return true;
+	}
+	
+}

 

 

Den to kano adapt gia allo l2jinterlude project giati brazil, equal, archid, teon kai den ksero ego ti alla skata einai ola projects gia klamata. Epatha otan eida ton kodika tou l2jbrazil. Oi developers tou L2JBrazil einai GIA TA KLAMATA ! Den exoun idea pos na grapsoun kodika. To leo dimosia na to akousoun metadoste to :)

 

 

Tora gia to share:

 

Prostheteis armor sets sto simeio pou grafei :

 

+ //Add your custom armor sets here. A player must have

+ //one of these sets equiped to retain his buffs onDie.

+ armorSets.add(new ArmorSet(123, 234, 2356, 3456, 456));

+ armorSets.add(new ArmorSet(1234, 234, 2356, 3456, 4556));

+ armorSets.add(new ArmorSet(123, 2384, 2356, 34536, 456));

 

Exo balei 3 tixea armor sets ta bgazete kai bazete ta dika sas. Gia na kratisei kapios ta buffs prepei na foraei ena set apo tin lista pou tha ftiaksete. I seira me tin opia mpenoun ta ID fenete ston constructor: ArmorSet(int _bootsId, int _pantsId, int _bodyId, int _glovesId, int _helmetId).

 

As to testarei kapios an to perasei giati ego den ixa interlude na ot testaro.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



  • Posts

    • To Finish this, because it's need a explanation   1. “I come to your forum” — It's the L2JMobius forum, not mine. I'm a contributor, not the owner or the maintainer responsible for deciding which fixes get committed.   2. “Which is why I left” — That's not an accurate account of what happened. You may have left voluntarily once, but you were also banned from the Discord server three times after repeatedly returning and causing the same disruptions. Those are not the same thing.   3. “You personally reply and reject that it works” — I asked how a negative withdrawal could be performed and later requested a demonstration of the claimed exploit. At no point did I reject the patch or claim the vulnerability was impossible. Asking for evidence is not the same as rejecting someone's work.   4. “You leave it unpatched for days” — I don't make that decision. Whether and when a patch gets committed is entirely up to the project maintainer, not me.   5. “You challenge me to post a video” — Yes, I asked you to demonstrate the exploit. You interpreted that as a rejection of your work, which it wasn't. Requesting proof of a claimed exploit is a perfectly reasonable part of technical discussion.   6. “Asshole-ness is a mutually contracted disease” — You're responsible for your own behavior, just as I'm responsible for mine. Disagreeing with you or questioning your claims doesn't justify personal insults. If you believe I've treated you unfairly, address what I actually said rather than making my behavior an excuse for yours.   And one question remains unanswered: why did you publicly disclose the exploitationmethod before the fix was released, after previously saying you wanted to avoid harming the project?   The vulnerability was real, the fix was accepted, and the commit was published. I have no problem acknowledging any of that.   My disagreement has never been about whether the bug deserved to be fixed. It's about how you've handled the discussion and repeatedly misrepresented my role in it.     I have nothing against you personally. My issue is with the way you conduct yourself in these discussions.   And no, you're not obligated to prove anything to me. However, when you make a technical claim, the burden of proof is on you. You cannot reasonably expect others to accept your claims without sufficient evidence.   Questioning a claim is not the same as rejecting it, nor is it a personal attack.   This isn’t about fanaticism; it’s about pushing back against the completely senseless attacks constantly leveled at the project as a whole.   It’s always the same thing: they badmouth it, claiming the project is worthless—yet the very same people criticizing it are the first in line to download a leaked version.   Enough is enough. This discussion has dragged on far too long over something that ought to be straightforward; if you’re going to submit a bug report, you should at least do it properly.
    • Mobius users develop a cult-like fanaticism towards the Hellenic overlord like how they do with pedric this should be something that is studied since it is truly so weird
    • I edited my reply cause it was too rude. But you had already answered.
    • As if I’m the one hiding behind alt accounts just to get attention.   Anyway, congratulations on the commit—that’s what you wanted, right?   P.S. Why did you edit your last reply? It’s pointless; it’s already quoted right there, in case you hadn’t noticed.   EOF
    • Let me think ...   I come to your forum, I send you a fix for the exploit. I do not mention that its exploit nor I say how to reproduce it cause Mobius got mad the last time this happened. You personally reply and reject that it works. Probably you didnt understood it.  But then again you personally have been an asshole to me for months in your shitty discord server (which is why i left). I reply back and hint you how it works without giving unnecessary details, you still dont understand. You leave it unpatched for days ... Then you come here mention me and challenge me to post a video of the exploit ...   Asshole-ness is a mutually contracted disease. If you stop being one, I can stop being one.     
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..