Secret Experience

Secret Experience (https://secretexperience.net/)
-   [L2J] Dúvidas Solucionadas (https://secretexperience.net/l2j-duvidas-solucionadas/)
-   -   Ajuda como add um MOD (https://secretexperience.net/l2j-duvidas-solucionadas/32241-ajuda-como-add-um-mod.html)

dionathan 17-07-2011 07:54 PM

Ajuda como add um MOD
 
pessoal eu estava com duvida em como por enchant na arma hero e etc, ai um mosso passou 1 mod para mim
Esse:
Index: /HighRate/L2_GameServer/java/config/intrepid.properties
================================================== =================
--- /HighRate/L2_GameServer/java/config/intrepid.properties (revision 132)
+++ /HighRate/L2_GameServer/java/config/intrepid.properties (revision 146)
@@ -92,2 +92,8 @@
# Max Chat lenght(default 100)
MaxChatLenght = 100
+
+# Special Enchant Hero
+# If set to true and your weapon enchant = EnchantLvl
+# You are awarded with with hero status BUT only when the weapon equipped!
+EnchantHero = False
+EnchantLvl = 0
Index: /HighRate/L2_GameServer/java/net/sf/l2j/Config.java
================================================== =================
--- /HighRate/L2_GameServer/java/net/sf/l2j/Config.java (revision 136)
+++ /HighRate/L2_GameServer/java/net/sf/l2j/Config.java (revision 146)
@@ -680,4 +680,6 @@
public static long L2JMOD_PK_PUNISHMENT_PERIOD;
public static int MAX_CHAT_LENGTH;
+ public static int SPECIAL_ENCHANT_HERO;
+ public static boolean ALLOW_SPECIAL_ENCHANT_HERO;

/** ************************************************** **/
@@ -1624,4 +1626,6 @@
L2JMOD_PK_PUNISHMENT_PERIOD = Long.parseLong(intrepidSettings.getProperty("PKPun ishmentPeriod", "3600"));
MAX_CHAT_LENGTH = Integer.parseInt(intrepidSettings.getProperty("Max ChatLenght", "100"));
+ SPECIAL_ENCHANT_HERO = Integer.parseInt(intrepidSettings.getProperty("Enc hantLvl", "0"));
+ ALLOW_SPECIAL_ENCHANT_HERO = Boolean.valueOf(intrepidSettings.getProperty("Ench antHero", "False"));
}
catch (Exception e)
Index: HighRateCore/java/net/sf/l2j/gameserver/network/clientpackets/UseItem.java
================================================== =================
--- HighRateCore/java/net/sf/l2j/gameserver/network/clientpackets/UseItem.java (revision 148)
+++HighRateCore/java/net/sf/l2j/gameserver/network/clientpackets/UseItem.java (working copy)
@@ -215,6 +215,12 @@

if (item.isEquipable())
{
+ if (item.getItem().getItemGrade() == L2Item.CRYSTAL_S80 && item.getItem().getType2() == L2Item.TYPE2_WEAPON && Config.ALLOW_SPECIAL_ENCHANT_HERO && item.getEnchantLevel() == Config.SPECIAL_ENCHANT_HERO)
+ {
+ activeChar.setHero(true);
+ activeChar.sendMessage("Congratulations"+ activeChar.getName() +"you are special enchant hero now!");
+ activeChar.broadcastUserInfo();
+ }
// No unequipping/equipping while the player is in special conditions
if (activeChar.isStunned() || activeChar.isSleeping() || activeChar.isParalyzed()
|| activeChar.isAlikeDead())



mais como eu Add ele no meu servidor gente porfavor me ajudem Obrigado..

paytaly 17-07-2011 08:03 PM

Cara, esse Mod não permite Enchantar as Armas Hero não...
O que ele faz é o seguinte:
Você habilita a Config configura uma quantidade de Enchant.
Se a Config estiver habilitada e o Player equipar uma arma grade S80 (Que não é do Interlude) com a mesma quantidade de Enchant configurada, esse Player receberá status de Herói.

Quanto a adicionar um Mod, procure aqui que já tem tópicos suficientes para perder a conta sobre esse assunto, fora os tutoriais, enfim...


Horários baseados na GMT -3. Agora são 05:13 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0