ThelwHelpRePaidia

Members
  • Content Count

    230
  • Joined

  • Last visited

  • Feedback

    0%

Community Reputation

2 Neutral

About ThelwHelpRePaidia

  • Rank
    Knight

Profile Information

  • Current Mood
    Sneaky
  • Gender
    Male
  • Country
    Greece
  • Location
    Στο Περίπτερο

Recent Profile Visitors

1,653 profile views
  1. hello can some help me to add this to acis? ### Eclipse Workspace Patch 1.0 #P elfobitch Index: gameserver/head-src/com/l2jfrozen/gameserver/model/L2Attackable.java =================================================================== --- gameserver/head-src/com/l2jfrozen/gameserver/model/L2Attackable.java (revision 903) +++ gameserver/head-src/com/l2jfrozen/gameserver/model/L2Attackable.java (working copy) @@ -244,12 +244,22 @@ protected int _itemId; protected int _count; + private int _enchant = -1; + private int _chance = 0; + public RewardItem(int itemId, int count) { _itemId = itemId; _count = count; } + public RewardItem(int itemId, int count, int enchant, int chance) + { + this(itemId, count); + _enchant = enchant; + _chance = chance; + } + public int getItemId() { return _itemId; @@ -259,6 +269,9 @@ { return _count; } + + public int getEnchant() { return _enchant; } + public int getEnchantChance() { return _chance; } } /** @@ -1560,7 +1573,7 @@ } if(itemCount > 0) - return new RewardItem(drop.getItemId(), itemCount); + return new RewardItem(drop.getItemId(), itemCount, drop.getEnchant(), drop.getEnchantChance()); else if(itemCount == 0 && Config.DEBUG) { _log.fine("Roll produced 0 items to drop..."); @@ -1845,7 +1858,7 @@ } if(itemCount > 0) - return new RewardItem(drop.getItemId(), itemCount); + return new RewardItem(drop.getItemId(), itemCount, drop.getEnchant(), drop.getEnchantChance()); else if(itemCount == 0 && Config.DEBUG) { _log.fine("Roll produced 0 items to drop..."); @@ -2503,6 +2516,16 @@ // Init the dropped L2ItemInstance and add it in the world as a visible object at the position where mob was last ditem = ItemTable.getInstance().createItem("Loot", item.getItemId(), item.getCount(), mainDamageDealer, this); ditem.getDropProtection().protect(mainDamageDealer); + if(item.getEnchant() > 0) + { + if(ditem.getItem().getType1() == L2Item.TYPE1_WEAPON_RING_EARRING_NECKLACE + || ditem.getItem().getType1() == L2Item.TYPE1_SHIELD_ARMOR) + { + double chance = Rnd.get(1, 100); + if(chance <= item.getEnchantChance()) + ditem.setEnchantLevel(item.getEnchant()); + } + } ditem.dropMe(this, newX, newY, newZ); // Add drop to auto destroy item task Index: gameserver/head-src/com/l2jfrozen/gameserver/datatables/sql/NpcTable.java =================================================================== --- gameserver/head-src/com/l2jfrozen/gameserver/datatables/sql/NpcTable.java (revision 903) +++ gameserver/head-src/com/l2jfrozen/gameserver/datatables/sql/NpcTable.java (working copy) @@ -247,7 +247,7 @@ { statement = con.prepareStatement("SELECT " + L2DatabaseFactory.getInstance().safetyString(new String[] { - "mobId", "itemId", "min", "max", "category", "chance" + "mobId", "itemId", "min", "max", "category", "chance", "enchant", "enchantChance" }) + " FROM custom_droplist ORDER BY mobId, chance DESC"); ResultSet dropData = statement.executeQuery(); @@ -270,6 +270,8 @@ dropDat.setMinDrop(dropData.getInt("min")); dropDat.setMaxDrop(dropData.getInt("max")); dropDat.setChance(dropData.getInt("chance")); + dropDat.setEnchant(dropData.getInt("enchant")); + dropDat.setEnchantChance(dropData.getInt("enchantChance")); int category = dropData.getInt("category"); @@ -295,7 +297,7 @@ { statement = con.prepareStatement("SELECT " + L2DatabaseFactory.getInstance().safetyString(new String[] { - "mobId", "itemId", "min", "max", "category", "chance" + "mobId", "itemId", "min", "max", "category", "chance", "enchant", "enchantChance" }) + " FROM droplist ORDER BY mobId, chance DESC"); ResultSet dropData = statement.executeQuery(); L2DropData dropDat = null; @@ -319,6 +321,8 @@ dropDat.setMinDrop(dropData.getInt("min")); dropDat.setMaxDrop(dropData.getInt("max")); dropDat.setChance(dropData.getInt("chance")); + dropDat.setEnchant(dropData.getInt("enchant")); + dropDat.setEnchantChance(dropData.getInt("enchantChance")); int category = dropData.getInt("category"); Index: gameserver/head-src/com/l2jfrozen/gameserver/script/faenor/FaenorInterface.java =================================================================== --- gameserver/head-src/com/l2jfrozen/gameserver/script/faenor/FaenorInterface.java (revision 903) +++ gameserver/head-src/com/l2jfrozen/gameserver/script/faenor/FaenorInterface.java (working copy) @@ -82,6 +82,27 @@ addDrop(npc, drop, false); } + public void addQuestDrop(int npcID, int itemID, int min, int max, int chance, String questID, String[] states, + int enchant, int enchantChance) + { + L2NpcTemplate npc = npcTable.getTemplate(npcID); + if (npc == null) + { + _log.info("FeanorInterface: Npc "+npcID+" is null.."); + return; + } + L2DropData drop = new L2DropData(); + drop.setItemId(itemID); + drop.setMinDrop(min); + drop.setMaxDrop(max); + drop.setEnchant(enchant); + drop.setEnchantChance(enchantChance); + drop.setChance(chance); + drop.setQuestID(questID); + drop.addStates(states); + addDrop(npc, drop, false); + } + /** * Adds a new Drop to an NPC * @@ -106,7 +127,31 @@ addDrop(npc, drop, sweep); } + + public void addDrop(int npcID, int itemID, int min, int max, boolean sweep, int chance, + int enchant, int enchantChance) throws NullPointerException + { + L2NpcTemplate npc = npcTable.getTemplate(npcID); + if (npc == null) + { + if (Config.DEBUG) + { + _log.warning("Npc doesnt Exist"); + } + throw new NullPointerException(); + } + L2DropData drop = new L2DropData(); + drop.setItemId(itemID); + drop.setMinDrop(min); + drop.setMaxDrop(max); + drop.setChance(chance); + drop.setEnchant(enchant); + drop.setEnchantChance(enchantChance); + + addDrop(npc, drop, sweep); + } + /** * Adds a new drop to an NPC. If the drop is sweep, it adds it to the NPC's Sweep category If the drop is non-sweep, * it creates a new category for this drop. Index: gameserver/head-src/com/l2jfrozen/gameserver/handler/admincommandhandlers/AdminEditNpc.java =================================================================== --- gameserver/head-src/com/l2jfrozen/gameserver/handler/admincommandhandlers/AdminEditNpc.java (revision 903) +++ gameserver/head-src/com/l2jfrozen/gameserver/handler/admincommandhandlers/AdminEditNpc.java (working copy) @@ -407,7 +407,7 @@ e.printStackTrace(); } } - else if(st.countTokens() == 6) + else if(st.countTokens() == 8) { try { @@ -417,8 +417,10 @@ int min = Integer.parseInt(st.nextToken()); int max = Integer.parseInt(st.nextToken()); int chance = Integer.parseInt(st.nextToken()); + int enchant = Integer.parseInt(st.nextToken()); + int enchantChance = Integer.parseInt(st.nextToken()); - updateDropData(activeChar, npcId, itemId, min, max, category, chance); + updateDropData(activeChar, npcId, itemId, min, max, category, chance, enchant, enchantChance); } catch(Exception e) { @@ -430,7 +432,7 @@ } else { - activeChar.sendMessage("Usage: //edit_drop <npc_id> <item_id> <category> [<min> <max> <chance>]"); + activeChar.sendMessage("Usage: //edit_drop <npc_id> <item_id> <category> [<min> <max> <chance> <enchant> <enchantChance>]"); } st = null; @@ -440,7 +442,7 @@ if(Config.ENABLE_ALL_EXCEPTIONS) e.printStackTrace(); - activeChar.sendMessage("Usage: //edit_drop <npc_id> <item_id> <category> [<min> <max> <chance>]"); + activeChar.sendMessage("Usage: //edit_drop <npc_id> <item_id> <category> [<min> <max> <chance> <enchant> <enchantChance>]"); } } else if(command.startsWith("admin_add_drop ")) @@ -474,7 +476,7 @@ npcData = null; } } - else if(st.countTokens() == 6) + else if(st.countTokens() == 8) { try { @@ -484,8 +486,10 @@ int min = Integer.parseInt(st.nextToken()); int max = Integer.parseInt(st.nextToken()); int chance = Integer.parseInt(st.nextToken()); + int enchant = Integer.parseInt(st.nextToken()); + int enchantChance = Integer.parseInt(st.nextToken()); - addDropData(activeChar, npcId, itemId, min, max, category, chance); + addDropData(activeChar, npcId, itemId, min, max, category, chance, enchant, enchantChance); } catch(Exception e) { @@ -497,7 +501,7 @@ } else { - activeChar.sendMessage("Usage: //add_drop <npc_id> [<item_id> <category> <min> <max> <chance>]"); + activeChar.sendMessage("Usage: //add_drop <npc_id> [<item_id> <category> <min> <max> <chance> <enchant> <enchantChance>]"); } st = null; @@ -507,7 +511,7 @@ if(Config.ENABLE_ALL_EXCEPTIONS) e.printStackTrace(); - activeChar.sendMessage("Usage: //add_drop <npc_id> [<item_id> <category> <min> <max> <chance>]"); + activeChar.sendMessage("Usage: //add_drop <npc_id> [<item_id> <category> <min> <max> <chance> <enchant> <enchantChance>]"); } } else if(command.startsWith("admin_del_drop ")) @@ -1323,7 +1327,7 @@ { con = L2DatabaseFactory.getInstance().getConnection(false); - PreparedStatement statement = con.prepareStatement("SELECT mobId, itemId, min, max, category, chance FROM droplist WHERE mobId=" + npcId + " AND itemId=" + itemId + " AND category=" + category); + PreparedStatement statement = con.prepareStatement("SELECT mobId, itemId, min, max, category, chance, enchant, enchantChance FROM droplist WHERE mobId=" + npcId + " AND itemId=" + itemId + " AND category=" + category); ResultSet dropData = statement.executeQuery(); NpcHtmlMessage adminReply = new NpcHtmlMessage(5); @@ -1340,9 +1344,11 @@ replyMSG.append("<tr><td>MIN(" + dropData.getInt("min") + ")</td><td><edit var=\"min\" width=80></td></tr>"); replyMSG.append("<tr><td>MAX(" + dropData.getInt("max") + ")</td><td><edit var=\"max\" width=80></td></tr>"); replyMSG.append("<tr><td>CHANCE(" + dropData.getInt("chance") + ")</td><td><edit var=\"chance\" width=80></td></tr>"); + replyMSG.append("<tr><td>ENC-VALUE(" + dropData.getInt("enchant") + ")</td><td><edit var=\"enchant\" width=80></td></tr>"); + replyMSG.append("<tr><td>ENC-CHANCE(" + dropData.getInt("enchantChance") + ")</td><td><edit var=\"enchantChance\" width=80></td></tr>"); replyMSG.append("</table>"); replyMSG.append("<center>"); - replyMSG.append("<button value=\"Save Modify\" action=\"bypass -h admin_edit_drop " + npcId + " " + itemId + " " + category + " $min $max $chance\" width=100 height=15 back=\"sek.cbui94\" fore=\"sek.cbui92\">"); + replyMSG.append("<button value=\"Save Modify\" action=\"bypass -h admin_edit_drop " + npcId + " " + itemId + " " + category + " $min $max $chance $enchant $enchantChance\" width=100 height=15 back=\"sek.cbui94\" fore=\"sek.cbui92\">"); replyMSG.append("<br><button value=\"DropList\" action=\"bypass -h admin_show_droplist " + dropData.getInt("mobId") + "\" width=100 height=15 back=\"sek.cbui94\" fore=\"sek.cbui92\">"); replyMSG.append("</center>"); } @@ -1383,9 +1389,11 @@ replyMSG.append("<tr><td>MAX</td><td><edit var=\"max\" width=80></td></tr>"); replyMSG.append("<tr><td>CATEGORY(sweep=-1)</td><td><edit var=\"category\" width=80></td></tr>"); replyMSG.append("<tr><td>CHANCE(0-1000000)</td><td><edit var=\"chance\" width=80></td></tr>"); + replyMSG.append("<tr><td>ENC-VALUE(0-65535)</td><td><edit var=\"enchant\" width=80></td></tr>"); + replyMSG.append("<tr><td>ENC-CHANCE(0-100)</td><td><edit var=\"enchantChance\" width=80></td></tr>"); replyMSG.append("</table>"); replyMSG.append("<center>"); - replyMSG.append("<button value=\"SAVE\" action=\"bypass -h admin_add_drop " + npcData.npcId + " $itemId $category $min $max $chance\" width=100 height=15 back=\"sek.cbui94\" fore=\"sek.cbui92\">"); + replyMSG.append("<button value=\"SAVE\" action=\"bypass -h admin_add_drop " + npcData.npcId + " $itemId $category $min $max $chance $enchant $enchantChance\" width=100 height=15 back=\"sek.cbui94\" fore=\"sek.cbui92\">"); replyMSG.append("<br><button value=\"DropList\" action=\"bypass -h admin_show_droplist " + npcData.npcId + "\" width=100 height=15 back=\"sek.cbui94\" fore=\"sek.cbui92\">"); replyMSG.append("</center>"); replyMSG.append("</body></html>"); @@ -1397,7 +1405,7 @@ replyMSG = null; } - private void updateDropData(L2PcInstance activeChar, int npcId, int itemId, int min, int max, int category, int chance) + private void updateDropData(L2PcInstance activeChar, int npcId, int itemId, int min, int max, int category, int chance, int enchant, int enchantChance) { Connection con = null; @@ -1405,13 +1413,15 @@ { con = L2DatabaseFactory.getInstance().getConnection(false); - PreparedStatement statement = con.prepareStatement("UPDATE droplist SET min=?, max=?, chance=? WHERE mobId=? AND itemId=? AND category=?"); + PreparedStatement statement = con.prepareStatement("UPDATE droplist SET min=?, max=?, chance=?, enchant=?, enchantChance=? WHERE mobId=? AND itemId=? AND category=?"); statement.setInt(1, min); statement.setInt(2, max); statement.setInt(3, chance); statement.setInt(4, npcId); statement.setInt(5, itemId); statement.setInt(6, category); + statement.setInt(7, enchant); + statement.setInt(8, enchantChance); statement.execute(); statement.close(); @@ -1464,7 +1474,7 @@ } } - private void addDropData(L2PcInstance activeChar, int npcId, int itemId, int min, int max, int category, int chance) + private void addDropData(L2PcInstance activeChar, int npcId, int itemId, int min, int max, int category, int chance, int enchant, int enchantChance) { Connection con = null; @@ -1472,13 +1482,16 @@ { con = L2DatabaseFactory.getInstance().getConnection(false); - PreparedStatement statement = con.prepareStatement("INSERT INTO droplist(mobId, itemId, min, max, category, chance) values(?,?,?,?,?,?)"); + PreparedStatement statement = con.prepareStatement("INSERT INTO droplist(mobId, itemId, min, max, category, chance, enchant, enchantChance) values(?,?,?,?,?,?,?,?)"); statement.setInt(1, npcId); statement.setInt(2, itemId); statement.setInt(3, min); statement.setInt(4, max); statement.setInt(5, category); statement.setInt(6, chance); + statement.setInt(7, enchant); + statement.setInt(8, enchantChance); + statement.execute(); statement.close(); statement = null; @@ -1573,7 +1586,7 @@ PreparedStatement statement = con.prepareStatement("SELECT " + L2DatabaseFactory.getInstance().safetyString(new String[] { - "mobId", "itemId", "min", "max", "category", "chance" + "mobId", "itemId", "min", "max", "category", "chance", "enchant", "enchantChance" }) + " FROM droplist WHERE mobId=?"); statement.setInt(1, npcId); ResultSet dropDataList = statement.executeQuery(); @@ -1586,6 +1599,8 @@ dropData.setMinDrop(dropDataList.getInt("min")); dropData.setMaxDrop(dropDataList.getInt("max")); dropData.setChance(dropDataList.getInt("chance")); + dropData.setEnchant(dropDataList.getInt("enchant")); + dropData.setEnchantChance(dropDataList.getInt("enchantChance")); int category = dropDataList.getInt("category"); Index: gameserver/head-src/com/l2jfrozen/gameserver/model/L2DropData.java =================================================================== --- gameserver/head-src/com/l2jfrozen/gameserver/model/L2DropData.java (revision 903) +++ gameserver/head-src/com/l2jfrozen/gameserver/model/L2DropData.java (working copy) @@ -33,6 +33,8 @@ private int _minDrop; private int _maxDrop; private int _chance; + private int _dropEnchant = -1; + private int _enchantChance = 0; private String _questID = null; private String[] _stateID = null; @@ -55,7 +57,17 @@ { _itemId = itemId; } - + + public void setEnchant(final int enchant) + { + _dropEnchant = enchant; + } + + public void setEnchantChance(final int chance) + { + _enchantChance = chance; + } + /** * Returns the minimum quantity of items dropped * @@ -86,6 +98,16 @@ return _chance; } + public int getEnchant() + { + return _dropEnchant; + } + + public int getEnchantChance() + { + return _enchantChance; + } + /** * Sets the value for minimal quantity of dropped items * ALTER TABLE `droplist` ADD `enchant` int(5) DEFAULT -1; ALTER TABLE `droplist` ADD `enchantChance` int(3) DEFAULT 0; ALTER TABLE `custom_droplist` ADD `enchant` int(5) DEFAULT -1; ALTER TABLE `custom_droplist` ADD `enchantChance` int(3) DEFAULT 0;
  2. h5 doesnt neeed you to put anything in there go to the abnormal effects and you will see it
  3. Does anyone how can i make basemul work on hi5 project? i know i can use mul but as i have seen they are not working the same way
  4. Does anyone know how can i remove from the stats this numbers? here is a picture https://prnt.sc/s8acll let's say from the patk i want to remove the .0 in the end here is the code /* * Copyright (C) 2004-2015 L2J DataPack * * This file is part of L2J DataPack. * * L2J DataPack 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 3 of the License, or * (at your option) any later version. * * L2J DataPack 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, see <http://www.gnu.org/licenses/>. */ package handlers.actionshifthandlers; import l2r.Config; import l2r.gameserver.data.xml.impl.ItemData; import l2r.gameserver.enums.InstanceType; import l2r.gameserver.handler.IActionShiftHandler; import l2r.gameserver.instancemanager.WalkingManager; import l2r.gameserver.model.Elementals; import l2r.gameserver.model.L2DropCategory; import l2r.gameserver.model.L2DropData; import l2r.gameserver.model.L2Object; import l2r.gameserver.model.actor.L2Attackable; import l2r.gameserver.model.actor.L2Character; import l2r.gameserver.model.actor.L2Npc; import l2r.gameserver.model.actor.instance.L2PcInstance; import l2r.gameserver.model.items.L2Item; import l2r.gameserver.model.stats.BaseStats; import l2r.gameserver.model.stats.Stats; import l2r.gameserver.network.serverpackets.NpcHtmlMessage; import l2r.util.StringUtil; public class L2NpcActionShift implements IActionShiftHandler { /** * Manage and Display the GM console to modify the L2NpcInstance (GM only).<BR> * <BR> * <B><U> Actions (If the L2PcInstance is a GM only)</U> :</B><BR> * <BR> * <li>Set the L2NpcInstance as target of the L2PcInstance player (if necessary)</li> * <li>Send a Server->Client packet MyTargetSelected to the L2PcInstance player (display the select window)</li> * <li>If L2NpcInstance is autoAttackable, send a Server->Client packet StatusUpdate to the L2PcInstance in order to update L2NpcInstance HP bar</li> * <li>Send a Server->Client NpcHtmlMessage() containing the GM console about this L2NpcInstance</li><BR> * <BR> * <FONT COLOR=#FF0000><B> <U>Caution</U> : Each group of Server->Client packet must be terminated by a ActionFailed packet in order to avoid that client wait an other packet</B></FONT><BR> * <BR> * <B><U> Example of use </U> :</B><BR> * <BR> * <li>Client packet : Action</li><BR> * <BR> */ @Override public boolean action(L2PcInstance activeChar, L2Object target, boolean interact) { // Check if the L2PcInstance is a GM if (activeChar.getAccessLevel().isGm()) { // Set the target of the L2PcInstance activeChar activeChar.setTarget(target); final NpcHtmlMessage html = new NpcHtmlMessage(); html.setFile(activeChar, activeChar.getHtmlPrefix(), "data/html/admin/npcinfo.htm"); html.replace("%objid%", String.valueOf(target.getObjectId())); html.replace("%class%", target.getClass().getSimpleName()); html.replace("%id%", String.valueOf(((L2Npc) target).getTemplate().getId())); html.replace("%lvl%", String.valueOf(((L2Npc) target).getTemplate().getLevel())); html.replace("%name%", String.valueOf(((L2Npc) target).getTemplate().getName())); html.replace("%tmplid%", String.valueOf(((L2Npc) target).getTemplate().getId())); html.replace("%aggro%", String.valueOf((target instanceof L2Attackable) ? ((L2Attackable) target).getAggroRange() : 0)); html.replace("%hp%", String.valueOf((int) ((L2Character) target).getCurrentHp())); html.replace("%hpmax%", String.valueOf(((L2Character) target).getMaxHp())); html.replace("%mp%", String.valueOf((int) ((L2Character) target).getCurrentMp())); html.replace("%mpmax%", String.valueOf(((L2Character) target).getMaxMp())); html.replace("%pAtk%", String.valueOf((int) ((L2Character) target).getPAtk(null))); html.replace("%mAtk%", String.valueOf((int) ((L2Character) target).getMAtk(null, null))); html.replace("%pDef%", String.valueOf((int) ((L2Character) target).getPDef(null))); html.replace("%mDef%", String.valueOf((int) ((L2Character) target).getMDef(null, null))); html.replace("%accu%", String.valueOf(((L2Character) target).getAccuracy())); html.replace("%evas%", String.valueOf(((L2Character) target).getEvasionRate(null))); html.replace("%crit%", String.valueOf(((L2Character) target).getCriticalHit(null, null))); html.replace("%runspd%", String.valueOf(((L2Character) target).getRunSpeed())); html.replace("%pAtkSpd%", String.valueOf(((L2Character) target).getPAtkSpd())); html.replace("%mAtkSpd%", String.valueOf(((L2Character) target).getMAtkSpd())); html.replace("%str%", String.valueOf(((L2Character) target).getSTR())); html.replace("%dex%", String.valueOf(((L2Character) target).getDEX())); html.replace("%con%", String.valueOf(((L2Character) target).getCON())); html.replace("%int%", String.valueOf(((L2Character) target).getINT())); html.replace("%wit%", String.valueOf(((L2Character) target).getWIT())); html.replace("%men%", String.valueOf(((L2Character) target).getMEN())); html.replace("%loc%", String.valueOf(target.getX() + " " + target.getY() + " " + target.getZ())); html.replace("%heading%", String.valueOf(((L2Character) target).getHeading())); html.replace("%collision_radius%", String.valueOf(((L2Character) target).getTemplate().getfCollisionRadius())); html.replace("%collision_height%", String.valueOf(((L2Character) target).getTemplate().getfCollisionHeight())); html.replace("%dist%", String.valueOf((int) activeChar.calculateDistance(target, true, false))); byte attackAttribute = ((L2Character) target).getAttackElement(); html.replace("%ele_atk%", Elementals.getElementName(attackAttribute)); html.replace("%ele_atk_value%", String.valueOf(((L2Character) target).getAttackElementValue(attackAttribute))); html.replace("%ele_dfire%", String.valueOf(((L2Character) target).getDefenseElementValue(Elementals.FIRE))); html.replace("%ele_dwater%", String.valueOf(((L2Character) target).getDefenseElementValue(Elementals.WATER))); html.replace("%ele_dwind%", String.valueOf(((L2Character) target).getDefenseElementValue(Elementals.WIND))); html.replace("%ele_dearth%", String.valueOf(((L2Character) target).getDefenseElementValue(Elementals.EARTH))); html.replace("%ele_dholy%", String.valueOf(((L2Character) target).getDefenseElementValue(Elementals.HOLY))); html.replace("%ele_ddark%", String.valueOf(((L2Character) target).getDefenseElementValue(Elementals.DARK))); if (((L2Npc) target).getSpawn() != null) { html.replace("%territory%", ((L2Npc) target).getSpawn().getSpawnTerritory() == null ? "None" : ((L2Npc) target).getSpawn().getSpawnTerritory().getName()); if (((L2Npc) target).getSpawn().isTerritoryBased()) { html.replace("%spawntype%", "Random"); html.replace("%spawn%", ((L2Npc) target).getSpawn().getX(target) + " " + ((L2Npc) target).getSpawn().getY(target) + " " + ((L2Npc) target).getSpawn().getZ(target)); } else { html.replace("%spawntype%", "Fixed"); html.replace("%spawn%", ((L2Npc) target).getSpawn().getX() + " " + ((L2Npc) target).getSpawn().getY() + " " + ((L2Npc) target).getSpawn().getZ()); } html.replace("%loc2d%", String.valueOf((int) target.calculateDistance(((L2Npc) target).getSpawn().getLocation(target), false, false))); html.replace("%loc3d%", String.valueOf((int) target.calculateDistance(((L2Npc) target).getSpawn().getLocation(target), true, false))); if (((L2Npc) target).getSpawn().getRespawnMinDelay() == 0) { html.replace("%resp%", "None"); } else if (((L2Npc) target).getSpawn().hasRespawnRandom()) { html.replace("%resp%", String.valueOf(((L2Npc) target).getSpawn().getRespawnMinDelay() / 1000) + "-" + String.valueOf((((L2Npc) target).getSpawn().getRespawnMaxDelay() / 1000) + " sec")); } else { html.replace("%resp%", String.valueOf(((L2Npc) target).getSpawn().getRespawnMinDelay() / 1000) + " sec"); } } else { html.replace("%territory%", "<font color=FF0000>--</font>"); html.replace("%spawntype%", "<font color=FF0000>--</font>"); html.replace("%spawn%", "<font color=FF0000>null</font>"); html.replace("%loc2d%", "<font color=FF0000>--</font>"); html.replace("%loc3d%", "<font color=FF0000>--</font>"); html.replace("%resp%", "<font color=FF0000>--</font>"); } if (((L2Npc) target).hasAI()) { html.replace("%ai_intention%", "<tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color=FFAA00>Intention:</font></td><td align=right width=170>" + String.valueOf(((L2Npc) target).getAI().getIntention().name()) + "</td></tr></table></td></tr>"); html.replace("%ai%", "<tr><td><table width=270 border=0><tr><td width=100><font color=FFAA00>AI</font></td><td align=right width=170>" + ((L2Npc) target).getAI().getClass().getSimpleName() + "</td></tr></table></td></tr>"); html.replace("%ai_type%", "<tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color=FFAA00>AIType</font></td><td align=right width=170>" + String.valueOf(((L2Npc) target).getAiType()) + "</td></tr></table></td></tr>"); html.replace("%ai_clan%", "<tr><td><table width=270 border=0><tr><td width=100><font color=FFAA00>Clan & Range:</font></td><td align=right width=170>" + String.valueOf(((L2Npc) target).getTemplate().getAIDataStatic().getClan()) + " " + String.valueOf(((L2Npc) target).getTemplate().getAIDataStatic().getClanRange()) + "</td></tr></table></td></tr>"); html.replace("%ai_enemy_clan%", "<tr><td><table width=270 border=0 bgcolor=131210><tr><td width=100><font color=FFAA00>Enemy & Range:</font></td><td align=right width=170>" + String.valueOf(((L2Npc) target).getTemplate().getAIDataStatic().getEnemyClan()) + " " + String.valueOf(((L2Npc) target).getTemplate().getAIDataStatic().getEnemyRange()) + "</td></tr></table></td></tr>"); html.replace("%ai_can_random_walk%", "<tr><td><table width=270 border=0><tr><td width=100><font color=FFAA00>Random Walk:</font></td><td align=right width=170>" + !((L2Npc) target).isNoRndWalk() + "</td></tr></table></td></tr>"); } else { html.replace("%ai_intention%", ""); html.replace("%ai%", ""); html.replace("%ai_type%", ""); html.replace("%ai_clan%", ""); html.replace("%ai_enemy_clan%", ""); html.replace("%ai_can_random_walk%", ""); } final String routeName = WalkingManager.getInstance().getRouteName((L2Npc) target); if (!routeName.isEmpty()) { html.replace("%route%", "<tr><td><table width=270 border=0><tr><td width=100><font color=LEVEL>Route:</font></td><td align=right width=170>" + routeName + "</td></tr></table></td></tr>"); } else { html.replace("%route%", ""); } activeChar.sendPacket(html); } else if (Config.ALT_GAME_VIEWNPC) { // Set the target of the L2PcInstance activeChar activeChar.setTarget(target); final NpcHtmlMessage html = new NpcHtmlMessage(); int hpMul = Math.round((float) (((L2Character) target).getStat().calcStat(Stats.MAX_HP, 1, (L2Character) target, null) / BaseStats.CON.calcBonus((L2Character) target))); if (hpMul == 0) { hpMul = 1; } final StringBuilder html1 = StringUtil.startAppend(1000, "<html><body><title> Info of " + String.valueOf(((L2Npc) target).getTemplate().getName()) + "</title>" + "<br><center><font color=\"LEVEL\">[Combat Stats]</font></center>" + "<table border=0 width=\"100%\">" + "<tr><td width=30>HP</td><td>", String.valueOf((int) ((L2Character) target).getCurrentHp()), "</td><td>MP</td><td>", String.valueOf((int) ((L2Character) target).getCurrentMp()), "</td></tr>" + "<tr><td>P.Atk</td><td>", String.valueOf(((L2Character) target).getPAtk(null)), "</td><td>M.Atk</td><td>", String.valueOf(((L2Character) target).getMAtk(null, null)), "</td></tr>" + "<tr><td>P.Def</td><td>", String.valueOf(((L2Character) target).getPDef(null)), "</td><td>M.Def</td><td>", String.valueOf(((L2Character) target).getMDef(null, null)), "</td></tr>" + "<tr><td>Accuracy</td><td>", String.valueOf(((L2Character) target).getAccuracy()), "</td><td>Evasion</td><td>", String.valueOf(((L2Character) target).getEvasionRate(null)), "</td></tr>" + "<tr><td>Critical</td><td>", String.valueOf(((L2Character) target).getCriticalHit(null, null)), "</td><td>Speed</td><td>", String.valueOf(((L2Character) target).getRunSpeed()), "</td></tr>" + "<tr><td>Atkspd</td><td>", String.valueOf(((L2Character) target).getPAtkSpd()), "</td><td>Cstspd</td><td>", String.valueOf(((L2Character) target).getMAtkSpd()), "</td></tr>" + "<tr><td>Race</td><td>", ((L2Npc) target).getTemplate().getRace().toString(), "</td><td>Respawn</td><td>", String.valueOf(((L2Npc) target).getSpawn().getRespawnMaxDelay() / 1000) + " sec" + "</td></tr>", "</table>"); if (!((L2Npc) target).getTemplate().getDropData().isEmpty()) { String dropcount = drop.getPartyDropCount() >= 1 ? drop.getPartyDropCount() + "x" + drop.getMinDrop() : drop.getMinDrop() + "-" + drop.getMaxDrop(); StringUtil.append(html1, "<tr><td><img src=\"" + item.getIcon() + "\" height=32 width=32></td>" + "<td><font color=\"", color, "\">", item.getName(), "</font></td><td>", dropcount, "</td><td>", (drop.isQuestDrop() ? "Q" : (cat.isSweep() ? "S" : "D")), "</td></tr>"); } } html1.append("</table>"); } html1.append("</body></html>"); html.setHtml(html1.toString()); activeChar.sendPacket(html); } return true; } @Override public InstanceType getInstanceType() { return InstanceType.L2Npc; } }
  5. cant i edit them to be visual like dual swords and not daggers?
  6. hello i'm trying to do somthing but i dont think im doing it right im trying to fix the animation on kamaels and orcs with dual daggers make them visible as dual swords because their animation stucks here is the weapongrp 0 16152 1 1 7 10 0 LineageWeapons.SkullEdge_m00_wp LineageWeapons.SkullEdge_m00_wp LineageWeaponsTex.SkullEdge_t00 LineageWeaponsTex.SkullEdge_t00 0 0 0 0 0 1 1 0 icon.dual_dagger_i00 -1 2050 8 1 0 0 1 7 10 2 LineageWeapons.SkullEdge_m00_wp LineageWeapons.SkullEdge_m00_wp 1 1 2 LineageWeaponsTex.SkullEdge_t00 LineageWeaponsTex.SkullEdge_t00 1 ItemSound.itemdrop_sword ItemSound.itemequip_sword 10 415 183 15 7 12 -3 0 0 0 433 0 1 1 1000 0 -1 0 LineageEffect.c_u000 LineageEffect.c_u000 -2.00000000 0.00000000 0.00000000 -5.00000000 0.00000000 0.00000000 0.69999999 1.20000005 0.89999998 0.60000002 LineageWeapons.rangesample LineageWeapons.rangesample 1.10000002 0.60000002 0.60000002 1.20000005 0.80000001 0.80000001 10.00000000 0.00000000 0.00000000 8.50000000 0.00000000 0.00000000 4 4 -1 -1 -1 -1
  7. http://www.mediafire.com/file/2v9rygc4j6tul5z/DEADZ_2.4_Fix.rar/file
  8. Με αυτο θα εισαι ενταξει https://www.eclipse.org/downloads/packages/release/2019-12/r/eclipse-ide-enterprise-java-developers Τωρα πως περνας το pack ειναι πολυ απλο Ανοιγεις το Eclipse πας εκει που λεει "file" πατας αριστερο κλικ και πατας την επιλογη "import" πας στο φακελο "General" και διαλεγεις την επιλογη "Existing project in Workspace" next μετα κανεις αντιγραφη το Url απο το Source που θες να περασεις και το κανεις επικολληση εκει που λεει "Select root directory" πατας το κουμπι Browse για να βρει το url που εβαλες και μετα Finish αυτο ηταν.
  9. can i edit it some how not to gain + stats after 80+ levels?
  10. Does anyone know how can i reduce the accuracy per level? because on my char i removed all buffs/skills (actives-passives) and it gains +3 pre level hi5