-
Posts
40 -
Credits
0 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by mutant3x
-
make a logo and a banner for me? written L2 Suicida
-
you no have icon.etc_parasite_i01 ?
-
What is the best h5 to edit? Does anyone indicate one?
-
Guide Creating Monsters Properly (With Attack Effect And Sound)
mutant3x replied to GLO's topic in Client Development Discussion
Obrigado -
I created the table and made the errors stop only the problem of the java continues.
-
I'm new to this, can anyone tell me the way to fix this ?? I know it does not exist I just do not know how to do it
-
could someone help me comn this error ?? I created a table to know if it would stop the error, but still it did not stop .. does anyone have any idea how to fix it? .. Note: it appears when soon in the lineage
-
Help how can i do the same npc enchant have 3 id
mutant3x posted a topic in [Request] Client Dev Help
how can i do the same npc enchant have 3 id with different enchant items ?? -
I'm new to this but I created these splash High Five Link download Download credits : Suicida
-
Share [H5] Icons (Augs,transf,talisms)
mutant3x replied to camenomat0's topic in Client Development Discussion
Does anyone else get the link? -
When I click on the NPCs this is giving me this error could anyone help me? How do I get this?
-
Could someone help me with this error?
-
Help How To Change Max Enchant In Npc Enchanter ?
mutant3x replied to mutant3x's question in Request Server Development Help [L2J]
Yes, actually wanted to put maximum gun 10k and set 6k -
Help How To Change Max Enchant In Npc Enchanter ?
mutant3x posted a question in Request Server Development Help [L2J]
Anyone know where I put the maximum enchant for set and weapon ?? Example weapon +20 and set +15 public class Enchant extends Quest { public static final Logger _log = Logger.getLogger(Enchant.class.getName()); private final static int npcId = 9994; // Item required to enchant armor +1 private final static int itemRequiredArmor = 5558; private final static int itemRequiredArmorCount = 1; // Item required to enchant jewels +1 private final static int itemRequiredJewels = 5558; private final static int itemRequiredJewelsCount = 1; // Item required to enchant weapon +1 private final static int itemRequiredWeapon = 5558; private final static int itemRequiredWeaponCount = 1; // Item required to enchant belt/shirt +1 private final static int itemRequiredBeltShirt = 5558; private final static int itemRequiredBeltShirtCount = 1; public Enchant(int questId, String name, String descr) { super(questId, name, descr); addStartNpc(npcId); addFirstTalkId(npcId); addTalkId(npcId); } public static void main(String[] args) { new Enchant(-1, Enchant.class.getSimpleName(), "custom"); } public String onFirstTalk(L2Npc npc, L2PcInstance player) { String enchantType = "Enchant.htm"; if (player.getQuestState(getName()) == null) { newQuestState(player); } else if (player.isInCombat()) { return drawHtml("You are in combat", "Don't fight if you want to talk with me!", enchantType); } else if (player.getPvpFlag() == 1) { return drawHtml("You are flagged", "Don't fight if you want to talk with me!", enchantType); } else if (player.getKarma() != 0) { return drawHtml("You are in chaotic state", "Don't fight if you want to talk with me!", enchantType); } else if (OlympiadManager.getInstance().isRegistered(player)) { return drawHtml("You are registered for Olympiad", "You can't use my services<br1>while playing the Olympiad.", enchantType); } return "Enchant.htm"; } public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) { String htmlText = event; String enchantType = "Enchant.htm"; int armorType = -1; // Armor parts if (event.equals("enchantHelmet")) { armorType = Inventory.PAPERDOLL_HEAD; enchantType = "EnchantArmor.htm"; htmlText = enchant(enchantType, player, armorType, itemRequiredArmor, itemRequiredArmorCount); } else if (event.equals("enchantChest")) { armorType = Inventory.PAPERDOLL_CHEST; enchantType = "EnchantArmor.htm"; htmlText = enchant(enchantType, player, armorType, itemRequiredArmor, itemRequiredArmorCount); } else if (event.equals("enchantLeggings")) { armorType = Inventory.PAPERDOLL_LEGS; enchantType = "EnchantArmor.htm"; htmlText = enchant(enchantType, player, armorType, itemRequiredArmor, itemRequiredArmorCount); } else if (event.equals("enchantGloves")) { armorType = Inventory.PAPERDOLL_GLOVES; enchantType = "EnchantArmor.htm"; htmlText = enchant(enchantType, player, armorType, itemRequiredArmor, itemRequiredArmorCount); } else if (event.equals("enchantBoots")) { armorType = Inventory.PAPERDOLL_FEET; enchantType = "EnchantArmor.htm"; htmlText = enchant(enchantType, player, armorType, itemRequiredArmor, itemRequiredArmorCount); } else if (event.equals("enchantShieldOrSigil")) { armorType = Inventory.PAPERDOLL_LHAND; enchantType = "EnchantArmor.htm"; htmlText = enchant(enchantType, player, armorType, itemRequiredArmor, itemRequiredArmorCount); } // Jewels else if (event.equals("enchantUpperEarring")) { armorType = Inventory.PAPERDOLL_LEAR; enchantType = "EnchantJewels.htm"; htmlText = enchant(enchantType, player, armorType, itemRequiredJewels, itemRequiredJewelsCount); } else if (event.equals("enchantLowerEarring")) { armorType = Inventory.PAPERDOLL_REAR; enchantType = "EnchantJewels.htm"; htmlText = enchant(enchantType, player, armorType, itemRequiredJewels, itemRequiredJewelsCount); } else if (event.equals("enchantNecklace")) { armorType = Inventory.PAPERDOLL_NECK; enchantType = "EnchantJewels.htm"; htmlText = enchant(enchantType, player, armorType, itemRequiredJewels, itemRequiredJewelsCount); } else if (event.equals("enchantUpperRing")) { armorType = Inventory.PAPERDOLL_LFINGER; enchantType = "EnchantJewels.htm"; htmlText = enchant(enchantType, player, armorType, itemRequiredJewels, itemRequiredJewelsCount); } else if (event.equals("enchantLowerRing")) { armorType = Inventory.PAPERDOLL_RFINGER; enchantType = "EnchantJewels.htm"; htmlText = enchant(enchantType, player, armorType, itemRequiredJewels, itemRequiredJewelsCount); } // Belt/Shirt else if (event.equals("enchantBelt")) { armorType = Inventory.PAPERDOLL_BELT; enchantType = "EnchantBeltShirt.htm"; htmlText = enchant(enchantType, player, armorType, itemRequiredBeltShirt, itemRequiredBeltShirtCount); } else if (event.equals("enchantShirt")) { armorType = Inventory.PAPERDOLL_UNDER; enchantType = "EnchantBeltShirt.htm"; htmlText = enchant(enchantType, player, armorType, itemRequiredBeltShirt, itemRequiredBeltShirtCount); } // Weapon else if (event.equals("enchantWeapon")) { armorType = Inventory.PAPERDOLL_RHAND; enchantType = "EnchantWeapon.htm"; htmlText = enchant(enchantType, player, armorType, itemRequiredWeapon, itemRequiredWeaponCount); } return htmlText; } private String enchant(String enchantType, L2PcInstance player, int armorType, int itemRequired, int itemRequiredCount) { QuestState st = player.getQuestState(getName()); int currentEnchant = 0; int newEnchantLevel = 0; if (st.getQuestItemsCount(itemRequired) >= itemRequiredCount) { try { L2ItemInstance item = getItemToEnchant(player, armorType); if (item != null) { if ( item.isItem() && item.isEquipable() && !item.isConsumable() && !item.isCommonItem() && !item.isOlyRestrictedItem() && !item.isShadowItem() && !item.isQuestItem() ) { currentEnchant = item.getEnchantLevel(); if ( currentEnchant < 25 ) { newEnchantLevel = setEnchant(player, item, currentEnchant+100, armorType); if ( newEnchantLevel > 0 ) { st.takeItems(itemRequired, itemRequiredCount); player.sendMessage("You successfully enchanted your " + item.getItem().getName() +" from +" + currentEnchant + " to +" + newEnchantLevel + "!"); String htmlContent = "<center>You successfully enchanted your:<br>"+ "<font color=\"FF7200\">" + item.getItem().getName() + "</font><br>"+ "From: <font color=\"AEFF00\">+" + currentEnchant + "</font> to <font color=\"AEFF00\">+" + newEnchantLevel + "</font>"+ "</center>"; return drawHtml("Congratulations!", htmlContent, enchantType); } } else { player.sendMessage("Your " + item.getItem().getName() + " is already +25!"); return drawHtml("It's already +25", "<center>Your <font color=\"FF7200\">" + item.getItem().getName() +"</font> is already +25!</center>", enchantType); } } else { player.sendMessage("Your " + item.getItem().getName() + " is not enchantable!"); return drawHtml("Not enchantable item!", "<center>Your <font color=\"FF7200\">" + item.getItem().getName() +"</font> is not enchantable!</center>", enchantType); } } } catch (StringIndexOutOfBoundsException e) { player.sendMessage("Something went wrong. Are equiped with the item?"); return drawHtml("Error Enchant", "<center>Something went wrong.<br>Are equiped with the item?</center>", enchantType); } catch (NumberFormatException e) { player.sendMessage("Something went wrong. Are equiped with the item?"); return drawHtml("Error Enchant", "<center>Something went wrong.<br>Are equiped with the item?</center>", enchantType); } player.sendMessage("Something went wrong. Are equiped with the item?"); return drawHtml("Error Enchant", "<center>Something went wrong.<br>Are equiped with the item?</center>", enchantType); } else { String content = "<center>"+ "Not enough <font color=\"FF7200\">Fir Tree</font>!<br>"; if ( st.getQuestItemsCount(itemRequired) > 0 ) { content += "You have " + st.getQuestItemsCount(itemRequired) + " Fir Tree,<br1>"+ "Need " + (itemRequiredCount - st.getQuestItemsCount(itemRequired)) + " more."; } else { content += "You need <font color=\"FF7200\">" + itemRequiredCount + " Fir Tree</font>!"; } content += "</center>"; return drawHtml("Not Enough Items", content, enchantType); } } private L2ItemInstance getItemToEnchant(L2PcInstance player, int armorType) { L2ItemInstance itemInstance = null; L2ItemInstance parmorInstance = player.getInventory().getPaperdollItem(armorType); if ((parmorInstance != null) && (parmorInstance.getLocationSlot() == armorType)) { itemInstance = parmorInstance; if (itemInstance != null) { return itemInstance; } } return null; } private int setEnchant(L2PcInstance player, L2ItemInstance item, int newEnchantLevel, int armorType) { if (item != null) { // set enchant value player.getInventory().unEquipItemInSlot(armorType); item.setEnchantLevel(newEnchantLevel); player.getInventory().equipItem(item); // send packets InventoryUpdate iu = new InventoryUpdate(); iu.addModifiedItem(item); player.sendPacket(iu); player.broadcastPacket(new CharInfo(player)); player.sendPacket(new UserInfo(player)); player.broadcastPacket(new ExBrExtraUserInfo(player)); return newEnchantLevel; } return -1; } public String drawHtml(String title, String content, String enchantType) { String html = "<html>"+ "<title>NPC Enchanter</title>"+ "<body>"+ "<center><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>"+ "<font color=\"FF9900\">" + title + "</font></center><br>"+ content + "<br><br>"+ "<center><a action=\"bypass -h Quest Enchant " + enchantType + "\">Go Back</a></center>"+ "</body>"+ "</html>"; return html; } -
Project L2Jwz Team Project - H5 Stable Project
mutant3x replied to DEV HazoR's topic in Server Development Discussion [L2J]
Does anyone know how to take out the items that have the sale in the NPC olympiad? -
Weapon Virus Weapon Rufous Lineage 2 "hf5 & Interlude"
mutant3x replied to ◄√i®uS►'s topic in Client Development Discussion
But do not have the files to add the items in l2jserver ? -
How To Compile And Add L2Jserver Mod
mutant3x posted a question in Request Server Development Help [L2J]
Can anybody help me ? I would like to learn how to compile and add Mods in L2jServer h5 Can anybody help me ? I would like to learn how to compile and add Mods in L2jServer h5 -
Request Does Anyone Have These Npcs?
mutant3x replied to mutant3x's question in Request Server Development Help [L2J]
Okay, I'm new here so I'm kind of lost