Jump to content

tensador3

Members
  • Posts

    17
  • Credits

  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

tensador3 last won the day on January 2

tensador3 had the most liked content!

1 Follower

About tensador3

Profile Information

  • Gender
    Male

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

tensador3's Achievements

Explorer

Explorer (4/16)

  • One Year In Rare
  • Collaborator Rare
  • One Month Later Rare
  • Dedicated Rare
  • First Post Rare

Recent Badges

11

Reputation

  1. https://www.mediafire.com/file/0s5xv0ocdun29c2/Interface.u/file compiler with gk interface: https://www.mediafire.com/file/j4qs3eyn3wdjdok/compiler+interlude.rar/file
  2. Hello, I bring you a gk global interface like l2royale The source part is for Rusacis but I don't think they will have a problem adapting it to another source. Codigo:https://pastebin.com/vhqZD1ye The tp of arenas must be added to the xml, see the first id of the teleport in teleportwnd.uc and add them to the xml, the rest all work, tp boss need nobless player, The tp are free up to lvl 40 without counting the bosses and the special teleport Client Interface.xdat retail with gk interface + Interface.u uc and xml https://www.mediafire.com/file/g8sucve4j3gbxit/interfacegk.rar/file
  3. créditos:l2jmega adaptar a rusacis: yo codigo: https://pastebin.com/3hvXgA7H archivos: https://www.mediafire.com/file/xbgjuvzzrcthr6k/archivosnecesarios.rar/file cliente l2faris_ch3.u vídeo: https://www.youtube.com/watch?v=gKD8oJ4hr8c&feature=youtu.be reproducción automática.uc https://www.mediafire.com/file/assssxrnsit7m42/AutoPlay.uc/file interface.xdat minorista con reproducción automática https://www.mediafire.com/file/zs93z7au99na7gp/interface.xdat/file systemamsg-e.dat 2155 1 Auto Farm Stop. 0 79 9B B0 FF 0 0 0 0 0 none 2156 1 Attack Summon ON. 0 79 9B B0 FF 0 0 0 0 0 none 2157 1 Attack Summon OFF. 0 79 9B B0 FF 0 0 0 0 0 none 2158 1 Respect Hunt On. 0 79 9B B0 FF 0 0 0 0 0 none 2159 1 Respect Hunt Off. 0 79 9B B0 FF 0 0 0 0 0 none 2160 1 Auto Farm On. 0 79 9B B0 FF 0 0 0 0 0 none
  4. Hola, tengo un problema con la información sobre herramientas en el conjunto de armaduras, no lo muestra. https://pastebin.com/gy3DUiqX
  5. Excuse me, I'm not very good at this, would this be enough to prevent that from happening? private static void recoverSelectedItem(L2PcInstance player, int itemId, int enchantLevel) { // Comprueba si el jugador tiene suficientes items del ID 6392 L2ItemInstance recoveryItem = player.getInventory().getItemByItemId(Config.BLACK_COUPON_ID); if (recoveryItem == null || recoveryItem.getCount() < 1) { player.sendMessage("No tienes suficientes items para recuperar este item."); return; } // Verifica el nivel de enchant del item recuperable en la base de datos if (!isValidEnchantLevel(itemId, enchantLevel, player.getObjectId())) { player.sendMessage("No puedes recuperar este item con ese nivel de enchant."); return; } // Verifica que el artículo que se está recuperando coincide con el artículo original if (!isValidRecoveryItem(itemId, player.getObjectId())) { player.sendMessage("No puedes recuperar este item."); return; } // Crea el item a recuperar con el ID y enchantLevel proporcionados L2ItemInstance recoveredItem = ItemTable.getInstance().createItem("RecoverItem", itemId, 1, player); recoveredItem.setEnchantLevel(enchantLevel); // Agrega el item recuperado al inventario del jugador player.getInventory().addItem("RecoverItem", recoveredItem, player, player); // Cobra 1 item del ID 6392 player.getInventory().destroyItemByItemId("RecoveryCost", Config.BLACK_COUPON_ID, 1, player, player); // Elimina el item recuperado de la base de datos removeRecoverableItem(itemId, player.getObjectId()); // Actualiza el inventario del jugador para que aparezca el item recuperado player.sendPacket(new ItemList(player, true)); // Envía un mensaje al jugador con el nombre del item y su nivel de enchant String itemName = recoveredItem.getItemName(); String message = "Has recuperado el item " + itemName; if (enchantLevel > 0) { message += " +" + enchantLevel; } player.sendMessage(message); } private static boolean isValidRecoveryItem(int itemId, int objectId) { Connection con = null; PreparedStatement statement = null; ResultSet resultSet = null; try { con = L2DatabaseFactory.getInstance().getConnection(); String sql = "SELECT item_id FROM item_recover WHERE object_id = ? AND item_id = ?"; statement = con.prepareStatement(sql); statement.setInt(1, objectId); statement.setInt(2, itemId); resultSet = statement.executeQuery(); return resultSet.next(); // Si hay un resultado, el artículo es válido } catch (SQLException e) { // Manejo de excepciones en caso de error al obtener el artículo recuperable de la base de datos e.printStackTrace(); } finally { try { if (resultSet != null) { resultSet.close(); } if (statement != null) { statement.close(); } if (con != null) { con.close(); } } catch (SQLException e) { // Manejo de excepciones en caso de error al cerrar la conexión a la base de datos e.printStackTrace(); } } return false; // Si ocurre alguna excepción o no se encuentra el artículo, se considera inválido } private static boolean isValidEnchantLevel(int itemId, int enchantLevel, int objectId) { Connection con = null; PreparedStatement statement = null; ResultSet resultSet = null; try { con = L2DatabaseFactory.getInstance().getConnection(); String sql = "SELECT enchant_level FROM item_recover WHERE object_id = ? AND item_id = ?"; statement = con.prepareStatement(sql); statement.setInt(1, objectId); statement.setInt(2, itemId); resultSet = statement.executeQuery(); if (resultSet.next()) { int validEnchantLevel = resultSet.getInt("enchant_level"); return enchantLevel == validEnchantLevel; } } catch (SQLException e) { // Manejo de excepciones en caso de error al obtener el nivel de enchant válido de la base de datos e.printStackTrace(); } finally { try { if (resultSet != null) { resultSet.close(); } if (statement != null) { statement.close(); } if (con != null) { con.close(); } } catch (SQLException e) { // Manejo de excepciones en caso de error al cerrar la conexión a la base de datos e.printStackTrace(); } } return false; }
  6. Hello, I bring you an item that allows the player to recover an item that fails in an enchant. It shows the last 10 items of the player that have failed with the enchants. I would like if someone is encouraged to add a filter because now it shows them to all types of item and I think it would be better if they are separated by armor weapon and jewels code sql config #========================================================================== # BLACK COUPON RECOVERY 1 ITEM ENCHANT FAILED #========================================================================== BlackCouponId = 6392 preview
  7. https://pastebin.com/qfgXjPPi acis 401 clean core https://pastebin.com/zM6K5t0j acis 401 clean data item_icons.sql https://www.mediafire.com/file/b526nf6i6kuckjm/item_icons.sql/file video
  8. hello I bring you a code for l2jorion which is basically a command to hide the name of the gm, also an anti target for the gm, hide the name of the gm in the chat if it has hidden the name and a tag for premium users in it chat code:https://pastebin.com/f8fpqEnd https://imageup.me/iuv
  9. hello I bring you this npc plus a mobius mod of a buff with exprate, sprate, droprate, spoilrate code:https://pastebin.com/L2MQckk3 edit in config/main/l2jorion # Player gets pvp flag when attacks these MONSTERS or RAID BOSSES by ID # Example.: RaidFlagIDs = 21420, 20000, 35645 # Get PvP flag from? PvPFlagIDs = 34156 # or get pvp flag from all raid bosses? GetPvPFlagFromRaidBosses = True # from champions? GetPvPFlagFromChampions = False xml buff <skill id="2624" levels="1" name="Festival Buff"> <set name="mpConsume" val="2"/> <set name="target" val="TARGET_ONE"/> <set name="reuseDelay" val="6"/> <set name="hitTime" val="4000"/> <set name="skillType" val="BUFF"/> <set name="isMagic" val="true"/> <set name="isDebuff" val="true"/> <set name="operateType" val="OP_ACTIVE"/> <set name="castRange" val="400"/> <set name="effectRange" val="400"/> <set name="aggroPoints" val="495"/> <for> <effect count="1" name="Buff" time="360" val="0" stackOrder="1.3" stackType="FestivalSpoil"> <mul order="0x30" stat="xpGain" val="1.2"/> <!-- +20% XP --> <mul order="0x30" stat="spGain" val="1.2"/> <!-- +20% SP --> <mul order="0x30" stat="dropRate" val="1.1"/> <!-- +10% Drop Rate --> <mul order="0x30" stat="spoilRate" val="1.1"/> <!-- +10% Spoil Rate --> </effect> </for> </skill> Config #============================================================= # Clan Buff Strongold #============================================================= ClanBuffId = 2624 #============================================================= # Spawn Npc Stronghold in world #============================================================= ClanStrongholdSpawnEnable = True npc 34156 32068 Clan Stronghold Device 1 0 NPC.a_mageguild_master_MHuman 10 33 80 male L2ClanStronghold 0 64816 1493 11,85 2,78 40 43 30 21 20 10 0 0 1314 1916 780 935 278 0 333 0 0 0 0 0 0 1 0 LAST_HIT 0 html of the npc data/html/mods <html><body> <title>Clan Stronghold Device</title> <br> Clan Stronghold Device:<br> Solo <font color="LEVEL">Podra Ser Capturado Si El Npc No Tiene Clan. Si El Npc Esta Capturado Por Otro Clan Tendras Que Matarme. Para Poder Capturarme.</font> Cuando Me Captures Podras Sentir El Clan Stronghold Effect Un Buffs Que Te Dara un 20% De EXP - 20% SP - 5% DROPRATE.<br> <br> <br> <center> <td><div align="center"><button value="Capturar" action="bypass -h npc_%objectId%_capturar" width=75 height=21 back="L2UI.DefaultButton_click" fore="L2UI.DefaultButton" width=67 height=19"></div></td> </body></html>
  10. Hello, I bring you the dressme system of the latest l2jorion revs adapted to acis 405 and 372 code acis 405:https://pastebin.com/965X2mTb code acis 372:https://pastebin.com/vtmZA378 sql: https://www.mediafire.com/file/itjrhfyt3cwf29f/characters_dressme_data.sql/file video
  11. Hello, I bring you something that I took from a source of l2 tenkai, which is from an item that spawns some npc around the game. I only add that if the player moves these npc will be deleted, as well as if the player uses the item again I leave a video so that they can see the only thing they will have to do if that is what they want is to make the npc only see them the player who uses the item as seen in the video. If someone has an idea to improve the code, please say so, thanks code : https://pastebin.com/yaXmxCzL
  12. it works thank you all for answering only add him if a player is far from the leader do not teleport to that player private void doClanTeleport(L2PcInstance player, int val) { L2TeleportLocation list = TeleportLocationTable.getInstance().getTemplate(val); if (player.getClan() == null) { player.sendMessage("No Estas en un clan"); return; } if (player.isClanLeader()) { // Teleport all online members of the clan for (L2PcInstance member : player.getClan().getOnlineMembers("")) { // Skip the player and any members that are in a different duel if ((member == null) || (member == player) || (member.isInDuel() && (member.getDuelId() != member.getDuelId()))) { continue; } // Check if the member meets the level requirement if (member.getLevel() >= 76 && member.isInsideRadius(player, 1000, false, false)) { member.teleToLocation(list.getLocX(), list.getLocY(), list.getLocZ()); member.sendMessage("Entrando A una Zona De Clan"); } else { player.sendMessage("El Jugador " + member.getName() + " Esta muy Lejos y no sera teleportado."); } } // Teleport the clan leader player.teleToLocation(list.getLocX(), list.getLocY(), list.getLocZ()); } else { player.sendMessage("Solo El lider de Clan Puede Usar El Teleport"); } }
  13. Hello, I need help with this. I wanted to make a teleport so that a clan leader can take the whole clan, but they have to be close to the clan leader so that he can teleport. I was able to do it, but if 1 pj is not close, it won't let me travel to no one what he wanted to do if 1 pj of the clan is not close that pj does not travel but the others do thanks anyway private void doClanTeleport(L2PcInstance player, int val) { L2TeleportLocation list = TeleportLocationTable.getInstance().getTemplate(val); if(!player.isClanLeader() && player.getClan() != null) { player.sendMessage("Solo El lider de Clan Puede Usar El Teleport"); return; } if(player.getClan() == null) { player.sendMessage("No Estas en un clan"); return; } for (L2PcInstance member : player.getClan().getOnlineMembers("")) { if (!member.isInsideRadius(player, 1000, false, false)) { player.sendMessage("El Jugador " + member.getName() + " Esta muy Lejos y no sera teleportado."); return; } } for (L2PcInstance member : player.getClan().getOnlineMembers("")) { if ((member == null) || (member == player)) { continue; } if (member.isInDuel() && ((member.getDuelId() != member.getDuelId()))) { continue; } if (player.getClanId() == member.getClanId() && member.getLevel() >= 76 && member.getClan() != null && player.getClan() != null && member.getClanId() == player.getClanId()) { member.teleToLocation(list.getLocX(), list.getLocY(), list.getLocZ()); member.sendMessage("Entrando A una Zona De Clan"); player.teleToLocation(list.getLocX(), list.getLocY(), list.getLocZ()); } else { player.sendMessage("No Cumples Los Requisitos."); return; } } }
×
×
  • Create New...