Jump to content
  • 0

[Help] Weapon hero


Question

13 answers to this question

Recommended Posts

  • 0
Posted

8elw ta hero weapon na mporoune na ta baloun oli h chars....

 

opos kai na ginonte +

 

afto pos mporw na to kanw???

 

 

An exeis preconfigured pack den ginete na to kaneis.

 

An exeis compiled :

 

protected static final boolean isEnchantable(L2ItemInstance item)
  {
    if (item.isHeroItem())
        return false;
     if (item.isShadowItem())
        return false;
     if (item.isCommonItem())
        return false;
     if (item.isEtcItem())
        return false;
     if (item.isTimeLimitedItem())
        return false;
     if (item.isWear())
        return false;
     // rods
     if (item.getItem().getItemType() == L2WeaponType.ROD)
        return false;
     // apprentice and travelers weapons
     if (item.getItemId() >= 7816 && item.getItemId() <= 7831)
        return false;
     // bracelets
     if (item.getItem().getBodyPart() == L2Item.SLOT_L_BRACELET)
        return false;
     if (item.getItem().getBodyPart() == L2Item.SLOT_R_BRACELET)
        return false;
     if (item.getItem().getBodyPart() == L2Item.SLOT_BACK)
        return false;
     // only items in inventory and equipped can be enchanted
     if (item.getLocation() != L2ItemInstance.ItemLocation.INVENTORY
           && item.getLocation() != L2ItemInstance.ItemLocation.PAPERDOLL)
        return false;
     
     return true;
  }

 

Kane delete to :

 

if (item.isHeroItem())
        return false;

 

*Afto eine mono gia na mporoun na ta kanoun enchant*

  • 0
Posted

basika exw l2jdot.... ginete kai sto dot?

 

dld an kanw afto 8a ginete sta weapon h hero na to kanoune +?

 

Ginete se ola ta packs.

 

Arkei na to exeis kanei compile.

  • 0
Posted

mipos mporite na m pite pos mporo na kanw sta hero weapon na ginonte +??

 

opos kai na to bazoune oli h chars ta herw weapon.....

 

topedi gia to enchant m ipe alla den to briskw exw l2jdot....

  • 0
Posted

1) Δεν ξερείς τον Χριστό σου και πας να ανοίξεις server?

2) Πρεπεί να φτιάξεις δικά σου weapons με την μορφή των heros, δεν νομίζω οτι θα το κάνεις και ετοιμό τετοιό share δεν υπάρχει

 

 

Υ.Γ: Μου αρέσει που θέλεις να λεγεσαί και developer...............

  • 0
Posted

an 3erw ton xristo m p les den 8a ixa 80 atoma  gt den 3erw kapia pragmata den simeni afto  aposena pantos 8a eimai kaliteros file m an kai 1 m server sigoura

 

kai tin epomeni fora milas kai kalitera...

 

ektos aftou weapon exw aplos na ta ftia3w gia na ta pernoune h chars oli kai enchat 8elw ....tespa

  • 0
Posted

file ama 8eleis compile gia na kaneis ench  ta hero weapons oriste

 

Index: /trunk/L2JHardCode_GameServer/java/config/L2JHardCode-Custom.properties
===================================================================
--- /trunk/L2JHardCode_GameServer/java/config/L2JHardCode-Custom.properties (revision 153)
+++ /trunk/L2JHardCode_GameServer/java/config/L2JHardCode-Custom.properties (revision 164)
@@ -39,4 +39,8 @@
CastleCircletsRestriction = True

+# This will allow enchanting hero weapons 
+# Default: False 
+EnchantHeroWeapons = False
+ 	
#--------------------------------------------------------------- 
# HardCode Other Configurations                            	   - 
Index: /trunk/L2JHardCode_GameServer/java/net/sf/l2j/Config.java
===================================================================
--- /trunk/L2JHardCode_GameServer/java/net/sf/l2j/Config.java (revision 163)
+++ /trunk/L2JHardCode_GameServer/java/net/sf/l2j/Config.java (revision 164)
@@ -894,4 +894,5 @@
  	public static boolean	CASTLE_CROWN;
  	public static boolean	CASTLE_CIRCLETS;
+    public static boolean 	ENCHANT_HERO_WEAPONS;
  	public static boolean   ALLOW_L2WALKER_PROTECTION;
  	public static boolean	BANKING_SYSTEM_ENABLED;
@@ -955,5 +956,5 @@
	public static int		ALT_SOUL_CRYSTAL_BREAK_CHANCE;
	public static int		ALT_SOUL_CRYSTAL_LEVEL_CHANCE;
-	public static boolean		ALLOW_TRADEOFF_VOICE_COMMAND;	
+	public static boolean	ALLOW_TRADEOFF_VOICE_COMMAND;	
  	/** L2JHardCode Custom - End */

@@ -2058,5 +2059,6 @@
              	CASTLE_CROWN                           = Boolean.parseBoolean(L2JHardCodeCustom.getProperty("CastleLordsCrownRestriction", "true")); 
              	CASTLE_CIRCLETS                        = Boolean.parseBoolean(L2JHardCodeCustom.getProperty("CastleCircletsRestriction", "true"));                
-                ALLOW_L2WALKER_PROTECTION              = Boolean.parseBoolean(L2JHardCodeCustom.getProperty("L2WalkerProtection", "False"));  
+                ENCHANT_HERO_WEAPONS 				   = Boolean.parseBoolean(L2JHardCodeCustom.getProperty("EnchantHeroWeapons", "False")); 
+             	ALLOW_L2WALKER_PROTECTION              = Boolean.parseBoolean(L2JHardCodeCustom.getProperty("L2WalkerProtection", "False"));  
                 BANKING_SYSTEM_ENABLED	               = Boolean.parseBoolean(L2JHardCodeCustom.getProperty("BankingEnabled", "false"));
                 BANKING_SYSTEM_GOLDBARS    	           = Integer.parseInt(L2JHardCodeCustom.getProperty("BankingGoldbarCount", "1"));
Index: /trunk/L2JHardCode_GameServer/java/net/sf/l2j/gameserver/network/clientpackets/RequestEnchantItem.java
===================================================================
--- /trunk/L2JHardCode_GameServer/java/net/sf/l2j/gameserver/network/clientpackets/RequestEnchantItem.java (revision 162)
+++ /trunk/L2JHardCode_GameServer/java/net/sf/l2j/gameserver/network/clientpackets/RequestEnchantItem.java (revision 164)
@@ -70,5 +70,5 @@
          // can't enchant rods, hero weapons and shadow items
         if(item.getItem().getItemType() == L2WeaponType.ROD
-        		|| item.getItemId() >= 6611 && item.getItemId() <= 6621
+        		|| item.getItemId() >= 6611 && item.getItemId() <= 6621 && Config.ENCHANT_HERO_WEAPONS 
         		|| item.isShadowItem())
         {
@@ -76,4 +76,5 @@
             return;
         }
+    
         if(item.isWear())
         {

  • 0
Posted

an 3erw ton xristo m p les den 8a ixa 80 atoma  gt den 3erw kapia pragmata den simeni afto  aposena pantos 8a eimai kaliteros file m an kai 1 m server sigoura

 

kai tin epomeni fora milas kai kalitera...

 

ektos aftou weapon exw aplos na ta ftia3w gia na ta pernoune h chars oli kai enchat 8elw ....tespa

Ρε φιλαρακό εχείς server με pre-pack, ουτε που ξερείς τι ειναί το compile τι πας να μου την πεις τώρα... τεσπα σταματαώ εδώ.

  • 0
Posted

kala 8a kanis :D

 

kai thx Imortal  ta katafera!!!

Locked.Pisteuo na lu8hke to problem s allios pm me na to unlock.

Guest
This topic is now closed to further replies.


×
×
  • Create New...