Ir para conteúdo
  • Cadastre-se

WarderS

Membro
  • Total de itens

    237
  • Registro em

  • Última visita

Tudo que WarderS postou

  1. PartyMask Resubido [Hidden Content]
  2. icon: iconwarders2.etc_recall_exp_scroll 9306 Scroll of Experience with this item you will get experience randomly. -1 0 0 0 2 9306 0 0 2 5 0 dropitems.drop_scroll_m00 dropitemstex.drop_scroll_t00 iconwarders2.etc_recall_exp_scroll 0 30 18 0 0 1 1 ItemSound.itemdrop_scroll 2 1 0 iconwarders2.utx
  3. JDK-8u251 x86 : [Hidden Content] JRE-8u251 x86: [Hidden Content]
  4. //spawn 31228 o crea un npc y en type coloca "L2ClassMaster" INSERT INTO `npc` VALUES ('27', '31757', 'Miss Queen', '1', 'WarderS - Server Helper', '1', 'Monster2.queen_of_cat', '8.00', '15.00', '70', 'female', 'L2ClassMaster', '40', '3862', '1493', '11.85', '2.78', '40', '43', '30', '21', '20', '10', '0', '0', '1314', '470', '780', '382', '278', '0', '333', '0', '0', '0', '28', '132', null, '0', '0', '0', 'LAST_HIT'); INSERT INTO `npc` VALUES ('28', '31756', 'Mr. Cat', '1', 'WarderS - Server Helper', '1', 'Monster.cat_the_cat', '9.00', '16.00', '70', 'male', 'L2ClassMaster', '40', '3862', '1493', '11.85', '2.78', '40', '43', '30', '21', '20', '10', '0', '0', '1314', '470', '780', '382', '278', '0', '333', '0', '0', '0', '88', '132', null, '0', '0', '0', 'LAST_HIT');
  5. eso es el system el archivo l2.int pero como hacer que te muestre el nombre del juegador ya es un tema un poco tedioso
  6. Frozen - Project X ( Last version 2017 )

    puedes resubir el sourcer

    1. mikado

      mikado

      no lo tengo, no se si algun usuario pueda tenerlo, crea un post en pedidos capaz alguien lo tenga. Un saludo.

    2. WarderS
  7. SOLUCIONADO /* CODIGO DE SUBACUMULATIVA */ public synchronized void restoreSkills() { boolean isAcumulative = Config.ACUMULATIVE_SUBCLASS_SKILLS; try (Connection con = L2DatabaseFactory.getInstance().getConnection(false)) { PreparedStatement statement; if (Config.KEEP_SUBCLASS_SKILLS) { statement = con.prepareStatement(RESTORE_SKILLS_FOR_CHAR_ALT_SUBCLASS); statement.setInt(1, getObjectId()); } else { statement = con.prepareStatement(isAcumulative ? ACUMULATE_SKILLS_FOR_CHAR_SUB : RESTORE_SKILLS_FOR_CHAR); statement.setInt(1, getObjectId()); if (!isAcumulative) { statement.setInt(2, getClassIndex()); } } try (ResultSet rset = statement.executeQuery()) { while (rset.next()) { int id = rset.getInt("skill_id"); int level = rset.getInt("skill_level"); if (id > 9000) { // Fake skills for base stats, skipping continue; } if (!Config.KEEP_SUBCLASS_SKILLS && rset.getInt("class_index") != getClassIndex()) { // Remove specific skills from other classes if (id == 118 || id == 163 || id == 236 || id == 249 || id == 252 || id == 253 || id == 258 || id == 259) continue; // List of excluded skills continue; } // Create and add skill L2Skill skill = SkillTable.getInstance().getInfo(id, level); addSkill(skill); } } } catch (Exception e) { if (Config.ENABLE_ALL_EXCEPTIONS) { e.printStackTrace(); } LOGGER.warn("Could not restore character skills: " + e); } } /* ======================== */
  8. Boa noite, estou trabalhando no php deste template mas como está incompleto a situação fica um tanto entediante, se o proprietário puder fornecer o html completo, terei prazer em finalizar o template e publicá-lo. @4Unknow O index já mostra o status do servidor e a quantidade de jogadores online mostra o servidor ligado e o número de jogadores conectados Registro Ativo Classificações - PvP, Clã, Raid Boss, Grand Boss, Download
  9. Buenas noches brother no puedes subir el html completo que falta estoy progrmandole el php pero me faltan archivos htmls y css
  10. Vou fazer um teste das seguintes formas e avisarei vocês primeiro teste será assim adicionei os ids das habilidades ao invés das classes if(chclass != getClassIndex()) { // Remove armor mastery from other classes if(id == 232 || id == 253 || id == 259 || id == 227 || id == 233 || id == 236 || id == 252 || id == 258 || id == 234 || id == 235 || id == 251) continue; // if(id == 14 || id == 15 || id == 16 || id == 17 || id == 28 || id == 29 || id == 30 || id == 41 || id == 42 || id == 43 || id == 50 || id == 51 || id == 96 || id == 97 || id == 98 || id == 104 || id == 105 || id == 111 || id == 112 || id == 115 || id == 118) continue; // if(id == 118 || id == 163 || id == 236 || id == 249 || id == 252 || id == 253 || id == 258 || id == 259) continue; // if(id == 118 || id == 88 || id == 89 || id == 90 || id == 91 || id == 92 || id == 93 || id == 94 || id == 95 || id == 96 || id == 97 || id == 98 || id == 99 || id == 100 || id == 101 || id == 102 || id == 103 || id == 104 || id == 105 || id == 106 || id == 107 || id == 108 || id == 109 || id == 110 || id == 111 || id == 112 || id == 113 || id == 114 || id == 115 || id == 116 || id == 117) continue; } O segundo teste vai ser assim, comentei tudo if(chclass != getClassIndex()) { // Remove armor mastery from other classes // if(id == 232 || id == 253 || id == 259 || id == 227 || id == 233 || id == 236 || id == 252 || id == 258 || id == 234 || id == 235 || id == 251) continue; // if(id == 14 || id == 15 || id == 16 || id == 17 || id == 28 || id == 29 || id == 30 || id == 41 || id == 42 || id == 43 || id == 50 || id == 51 || id == 96 || id == 97 || id == 98 || id == 104 || id == 105 || id == 111 || id == 112 || id == 115 || id == 118) continue; // if(id == 118 || id == 163 || id == 236 || id == 249 || id == 252 || id == 253 || id == 258 || id == 259) continue; // if(id == 118 || id == 88 || id == 89 || id == 90 || id == 91 || id == 92 || id == 93 || id == 94 || id == 95 || id == 96 || id == 97 || id == 98 || id == 99 || id == 100 || id == 101 || id == 102 || id == 103 || id == 104 || id == 105 || id == 106 || id == 107 || id == 108 || id == 109 || id == 110 || id == 111 || id == 112 || id == 113 || id == 114 || id == 115 || id == 116 || id == 117) continue; } Eu fiz o teste e vou te contar
  11. Eu já fiz isso, modifiquei esses parâmetros com os das classes e a mesma coisa check if(chclass != getClassIndex()) { // Remove armor mastery from other classes if(id == 15 || id == 49 || id == 50 || id == 51 || id == 118) continue; // if(id == 14 || id == 15 || id == 16 || id == 17 || id == 28 || id == 29 || id == 30 || id == 41 || id == 42 || id == 43 || id == 50 || id == 51 || id == 96 || id == 97 || id == 98 || id == 104 || id == 105 || id == 111 || id == 112 || id == 115 || id == 118) continue; // if(id == 118 || id == 163 || id == 236 || id == 249 || id == 252 || id == 253 || id == 258 || id == 259) continue; // if(id == 118 || id == 88 || id == 89 || id == 90 || id == 91 || id == 92 || id == 93 || id == 94 || id == 95 || id == 96 || id == 97 || id == 98 || id == 99 || id == 100 || id == 101 || id == 102 || id == 103 || id == 104 || id == 105 || id == 106 || id == 107 || id == 108 || id == 109 || id == 110 || id == 111 || id == 112 || id == 113 || id == 114 || id == 115 || id == 116 || id == 117) continue; }
  12. Buenas tardes Adapte ese codigo pero me acumula solo cuando se hace subclass overlord,bishop,Prophet,Elemental Summoner,Elven Oracle,Elven Elder,Phantom Summoner,Shillien Oracle,Shillien Elder se acumula los 2 mistery Light y Robe pero con las demas profesiones no quien me puede ayudar a solucionar este problema Boa tarde, adaptei esse código mas ele só acumula ao subclassificar overlord, bispo, Profeta, Elemental Summoner, Elven Oracle, Elven Elder, Phantom Summoner, Shillien Oracle, Shillien Elder acumula os 2 mistérios Light e Robe mas com as outras profissões isso acontece não Quem pode me ajudar a resolver este problema? Gracias Index: /Trunk/L2_GameServer/java/config/intrepid.properties =================================================================== --- /Trunk/L2_GameServer/java/config/intrepid.properties (revision 30) +++ /Trunk/L2_GameServer/java/config/intrepid.properties (revision 49) @@ -30,2 +30,5 @@ #--------------------------------------------- AllowedNPCTypes = L2Boss,L2Chest,L2FestivalMonster,L2Minion,L2Monster,L2Pet,L2RaidBoss,L2SiegeGuard,L2SiegeNpc,L2ControlTower,L2GrandBoss,L2Artefact,L2FortManager,L2FortSiegeNpc,L2FortSiegeGuard,L2FortCommander,L2FortBallista + +# Sub stuck +SubStucking = False Index: /Trunk/L2_GameServer/java/net/sf/l2j/Config.java =================================================================== --- /Trunk/L2_GameServer/java/net/sf/l2j/Config.java (revision 30) +++ /Trunk/L2_GameServer/java/net/sf/l2j/Config.java (revision 49) @@ -652,4 +652,6 @@ /** List of NPC types that won't allow casting */ public static FastList<String> LIST_ALLOWED_NPC_TYPES = new FastList<String>(); + /** stuck sub **/ + public static boolean ACUMULATIVE_SUBCLASS_SKILLS; /** ************************************************** **/ @@ -1552,4 +1554,5 @@ LIST_ALLOWED_NPC_TYPES.add(npc_type); } + ACUMULATIVE_SUBCLASS_SKILLS = Boolean.parseBoolean(intrepidSettings.getProperty("SubStucking", "False")); } catch (Exception e) Index: /Trunk/L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2VillageMasterInstance.java =================================================================== --- /Trunk/L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2VillageMasterInstance.java (revision 8) +++ /Trunk/L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2VillageMasterInstance.java (revision 49) @@ -816,6 +816,6 @@ - final Race npcRace = getVillageMasterRace(); - final ClassType npcTeachType = getVillageMasterTeachType(); + getVillageMasterRace(); + getVillageMasterTeachType(); PlayerClass currClass = PlayerClass.values()[charClassId]; @@ -862,22 +862,4 @@ availSubs.remove(availSub); } - - if (npcRace == Race.Human || npcRace == Race.Elf) - { - // If the master is human or light elf, ensure that fighter-type - // masters only teach fighter classes, and priest-type masters - // only teach priest classes etc. - if (!availSub.isOfType(npcTeachType)) availSubs.remove(availSub); - - // Remove any non-human or light elf classes. - else if (!availSub.isOfRace(Race.Human) - && !availSub.isOfRace(Race.Elf)) availSubs.remove(availSub); - } - else - { - // If the master is not human and not light elf, - // then remove any classes not of the same race as the master. - if (!availSub.isOfRace(npcRace)) availSubs.remove(availSub); - } } } Index: /Trunk/L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- /Trunk/L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 48) +++ /Trunk/L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 49) @@ -231,4 +231,5 @@ // Character Skill SQL String Definitions: private static final String RESTORE_SKILLS_FOR_CHAR = "SELECT skill_id,skill_level FROM character_skills WHERE charId=? AND class_index=?"; + private static final String ACUMULATE_SKILLS_FOR_CHAR_SUB = "SELECT skill_id,skill_level FROM character_skills WHERE charId=? ORDER BY skill_id , skill_level ASC"; private static final String ADD_NEW_SKILL = "INSERT INTO character_skills (charId,skill_id,skill_level,skill_name,class_index) VALUES (?,?,?,?,?)"; private static final String UPDATE_CHARACTER_SKILL_LEVEL = "UPDATE character_skills SET skill_level=? WHERE skill_id=? AND charId=? AND class_index=?"; @@ -7557,10 +7558,14 @@ try { + // L2 Emu Addon + boolean isAcumulative = Config.ACUMULATIVE_SUBCLASS_SKILLS; + // Retrieve all skills of this L2PcInstance from the database con = L2DatabaseFactory.getInstance().getConnection(); - PreparedStatement statement = con.prepareStatement(RESTORE_SKILLS_FOR_CHAR); - + PreparedStatement statement = con.prepareStatement(isAcumulative ? ACUMULATE_SKILLS_FOR_CHAR_SUB : RESTORE_SKILLS_FOR_CHAR); statement.setInt(1, getObjectId()); - statement.setInt(2, getClassIndex()); + if (!isAcumulative) + // L2 Emu Addon + statement.setInt(2, getClassIndex()); ResultSet rset = statement.executeQuery(); Index: /Trunk/L2_GameServer/java/net/sf/l2j/gameserver/model/base/PlayerClass.java =================================================================== --- /Trunk/L2_GameServer/java/net/sf/l2j/gameserver/model/base/PlayerClass.java (revision 6) +++ /Trunk/L2_GameServer/java/net/sf/l2j/gameserver/model/base/PlayerClass.java (revision 49) @@ -209,5 +209,4 @@ private static final Set<PlayerClass> mainSubclassSet; - private static final Set<PlayerClass> neverSubclassed = EnumSet.of(Overlord, Warsmith); private static final Set<PlayerClass> subclasseSet1 = EnumSet.of(DarkAvenger, Paladin, TempleKnight, ShillienKnight); @@ -222,5 +221,4 @@ { Set<PlayerClass> subclasses = getSet(null, Third); - subclasses.removeAll(neverSubclassed); mainSubclassSet = subclasses; @@ -269,9 +267,38 @@ switch (_race) { + case Human: + subclasses.removeAll(getSet(DarkElf, Third)); + subclasses.removeAll(getSet(Elf, Third)); + subclasses.removeAll(getSet(Orc, Third)); + subclasses.removeAll(getSet(Dwarf, Third)); + subclasses.removeAll(getSet(Kamael, Third)); + break; + case DarkElf: + subclasses.removeAll(getSet(Human, Third)); + subclasses.removeAll(getSet(Elf, Third)); + subclasses.removeAll(getSet(Orc, Third)); + subclasses.removeAll(getSet(Dwarf, Third)); + subclasses.removeAll(getSet(Kamael, Third)); + break; case Elf: + subclasses.removeAll(getSet(Human, Third)); subclasses.removeAll(getSet(DarkElf, Third)); - break; - case DarkElf: + subclasses.removeAll(getSet(Orc, Third)); + subclasses.removeAll(getSet(Dwarf, Third)); + subclasses.removeAll(getSet(Kamael, Third)); + break; + case Orc: + subclasses.removeAll(getSet(Human, Third)); + subclasses.removeAll(getSet(DarkElf, Third)); subclasses.removeAll(getSet(Elf, Third)); + subclasses.removeAll(getSet(Dwarf, Third)); + subclasses.removeAll(getSet(Kamael, Third)); + break; + case Dwarf: + subclasses.removeAll(getSet(Human, Third)); + subclasses.removeAll(getSet(DarkElf, Third)); + subclasses.removeAll(getSet(Orc, Third)); + subclasses.removeAll(getSet(Elf, Third)); + subclasses.removeAll(getSet(Kamael, Third)); break; } @@ -294,6 +321,4 @@ else subclasses.removeAll(EnumSet.of(femaleSoulbreaker)); - if (player.getTotalSubClasses() < 2) - subclasses.removeAll(EnumSet.of(inspector)); } } Index: /Trunk/L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- /Trunk/L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 49) +++ /Trunk/L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 50) @@ -7575,12 +7575,20 @@ int id = rset.getInt("skill_id"); int level = rset.getInt("skill_level"); + int chclass = rset.getInt("class_index"); if (id > 9000 && id < 9007) continue; // fake skills for base stats - + if(chclass != getClassIndex()) + + { + // Remove armor mastery from other classes + if(id == 118 || id == 163 || id == 236 || id == 249 || id == 252 || id == 253 || id == 258 || id == 259) continue; + } + // Create a L2Skill object for each record L2Skill skill = SkillTable.getInstance().getInfo(id, level); - - // Add the L2Skill object to the L2Character _skills and its Func objects to the calculator set of the L2Character + + // Add the L2Skill object to the L2Character _skills and its + // Func objects to the calculator set of the L2Character super.addSkill(skill); if (Config.CHECK_SKILLS && Config.CHECK_SKILLS_ACCESS_LEVEL_LIST.contains(getAccessLevel().getLevel())) @@ -7594,5 +7602,5 @@ removeSkill(skill); } - } + } rset.close();
  13. Index: L2jFrozen_GameServer/config/head/altsettings.properties =================================================================== --- L2jFrozen_GameServer/config/head/altsettings.properties (revision 1004) +++ L2jFrozen_GameServer/config/head/altsettings.properties (working copy) @@ -133,7 +133,12 @@ # Allow player sub-class addition without checking for unique quest items. AltSubClassWithoutQuests = False -# Restore Buffs On Subclass Change. +# Allow player to take any sub-class without any restriction. +# Including Warsmith and Overlord. +# Default: False +AltSubclassAllClasses = True + + # Restore Buffs On Subclass Change. # IMPORTANT: It's better put it False to avoid exploit AltRestoreEffectOnSub = False Index: L2jFrozen_GameServer/head-src/com/l2jfrozen/Config.java =================================================================== --- L2jFrozen_GameServer/head-src/com/l2jfrozen/Config.java (revision 1004) +++ L2jFrozen_GameServer/head-src/com/l2jfrozen/Config.java (working copy) @@ -1022,6 +1037,7 @@ public static boolean ALT_GAME_FREE_TELEPORT; public static boolean ALT_RECOMMEND; public static boolean ALT_GAME_SUBCLASS_WITHOUT_QUESTS; + public static boolean ALT_GAME_SUBCLASS_ALL_CLASSES; public static boolean ALT_RESTORE_EFFECTS_ON_SUBCLASS_CHANGE; public static boolean ALT_GAME_VIEWNPC; public static int ALT_CLAN_MEMBERS_FOR_WAR; @@ -1192,6 +1209,7 @@ ALT_GAME_FREE_TELEPORT = Boolean.parseBoolean(altSettings.getProperty("AltFreeTeleporting", "False")); ALT_RECOMMEND = Boolean.parseBoolean(altSettings.getProperty("AltRecommend", "False")); ALT_GAME_SUBCLASS_WITHOUT_QUESTS = Boolean.parseBoolean(altSettings.getProperty("AltSubClassWithoutQuests", "False")); + ALT_GAME_SUBCLASS_ALL_CLASSES = Boolean.parseBoolean(altSettings.getProperty("AltSubclassAllClasses", "False")); ALT_RESTORE_EFFECTS_ON_SUBCLASS_CHANGE = Boolean.parseBoolean(altSettings.getProperty("AltRestoreEffectOnSub", "False")); ALT_GAME_VIEWNPC = Boolean.parseBoolean(altSettings.getProperty("AltGameViewNpc", "False")); ALT_GAME_NEW_CHAR_ALWAYS_IS_NEWBIE = Boolean.parseBoolean(altSettings.getProperty("AltNewCharAlwaysIsNewbie", "False")); @@ -5072,443 +5302,447 @@ ALT_GAME_SUBCLASS_WITHOUT_QUESTS = Boolean.valueOf(pValue); } else if(pName.equalsIgnoreCase("AltRestoreEffectOnSub")) { ALT_RESTORE_EFFECTS_ON_SUBCLASS_CHANGE = Boolean.valueOf(pValue); } - else if(pName.equalsIgnoreCase("AltNewCharAlwaysIsNewbie")) + else if (pName.equalsIgnoreCase("AltSubclassAllClasses")) + { + ALT_GAME_SUBCLASS_ALL_CLASSES = Boolean.valueOf(pValue); + } + else if (pName.equalsIgnoreCase("AltNewCharAlwaysIsNewbie")) { ALT_GAME_NEW_CHAR_ALWAYS_IS_NEWBIE = Boolean.valueOf(pValue); } else if(pName.equalsIgnoreCase("AltMembersCanWithdrawFromClanWH")) Index: L2jFrozen_GameServer/head-src/com/l2jfrozen/gameserver/model/base/PlayerClass.java =================================================================== --- L2jFrozen_GameServer/head-src/com/l2jfrozen/gameserver/model/base/PlayerClass.java (revision 1004) +++ L2jFrozen_GameServer/head-src/com/l2jfrozen/gameserver/model/base/PlayerClass.java (working copy) @@ -40,6 +40,7 @@ import static com.l2jfrozen.gameserver.model.base.PlayerRace.Human; import static com.l2jfrozen.gameserver.model.base.PlayerRace.LightElf; import static com.l2jfrozen.gameserver.model.base.PlayerRace.Orc; +import com.l2jfrozen.Config; import java.util.EnumMap; import java.util.EnumSet; @@ -245,7 +246,13 @@ { Set<PlayerClass> subclasses = null; - if(_level == Third) + if (Config.ALT_GAME_SUBCLASS_ALL_CLASSES) + { + subclasses = EnumSet.copyOf(mainSubclassSet); + subclasses.addAll(neverSubclassed); + subclasses.remove(this); + } + else if(_level == Third) { subclasses = EnumSet.copyOf(mainSubclassSet);
  14. WarderS

    Project x

    Buenas noches alguien tiene problema que pasado 2 minutos afk el cliente se cierra automaticamente
  15. Buehh aporte ya entendi el xq no quiers que pregunte xD
  16. Buenas estoy intentando adaptar un item de H5 a interlude pero me presenta el siguiente inconveniente ya le paso imagenes Oi, estou tentando adaptar um item de H5 para interlúdio, mas me apresenta o seguinte problema.
  17. Hola hermano no tendra un video tutorial para editar el Interface.u porfa gracias
  18. WarderS

    Interface Interlude

    simplemente dale click al en la rueda desplazadora
×
×
  • Criar Novo...

Important Information

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.