Search the Community

Showing results for tags 'Help'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Categories

  • Lineage II Development [L2J]
    • Sources
    • Addons & Mods
    • Tools
  • Lineage II Development [L2OFF]
    • Package Files
    • Mods & Extenders
    • Tools
  • Lineage II Client Development
    • Equipments
    • Npcs
    • Maps
    • Tools
    • Skills
  • Lineage II Bots & Tools
    • Bot Systems
    • Bot Scripts
    • Tools
  • Website Templates
  • DenArt Designs's Demo Updater

Forums

  • General Zone
    • Announcements and News
    • Newbies Introduce Urself
    • Maxcheaters Competitions & Events
    • Votes/Polls Area
    • Report Section
    • Downloads Section
    • Suggestions/Feedback Board
  • Lineage II General Section
    • General Discussion [English]
    • Request Support [English]
  • Lineage II Hacks,Cheats and Bots
    • Hacks & Cheats [English]
    • Request Hacks & Cheats [English]
    • Botting [English]
    • Request Botting [English]
  • Lineage II Private Servers
    • L2Tales.com "BЯATVA" High Five x15 - Coming up early October
    • Private Servers
    • L2Elixir Interlude x3 Launching this October
    • [Previews] L2 Private Servers
    • Clans and Alliances
  • Lineage II Verified Marketplace
    • Marketplace [Items & Chars]
    • Marketplace [L2Packs & Files]
    • Marketplace [Powerlvl & Support]
  • Lineage II Marketplace
    • Marketplace [Items & Chars]
    • Marketplace [L2Packs & Files]
    • Marketplace [Powerlvl & Support]
  • Lineage II OFF Server Development
    • Server Development Discussion [L2OFF]
    • Request Server Development Help [L2OFF]
    • Server Shares & Files [L2OFF]
  • Lineage II Java Server Development
    • Server Development Discussion [L2J]
    • Request Server Development Help [L2J]
    • Server Shares & Files [L2J]
    • Private Projects [L2J]
  • Lineage II Client Development
    • Client Development Discussion
  • MMO Games
    • Fortnite
    • PlayerUnknown's Battlegrounds PUBG
    • League of Legends
    • World Of Warcraft Area
    • Other Multiplayer Games
  • General Section
  • Graphics/GFX Zone
  • VIP/Donators Zone
  • MaxCheaters Corner
  • TEST's Topics
  • L2Classic Club's Just trying this thing out
  • Lineage 2 Revolution Club's Discussions
  • Lineage 2 Revolution Club's Tutorials
  • Lineage 2 Revolution Club's Request Help
  • DenArt Designs's Hello and welcome to my club!
  • DenArt Designs's News
  • `Kara for staff's Topics
  • `Kara for staff's Kara`

Product Groups

  • Advertisements
  • Special Groups

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 7,337 results

  1. Hello, why if character no enter for few days premium is canceled? I must fix this, please help!
  2. Hey guys, i want to change the party icons to retail, I'm using a interface that is shared here, but it has custom party icons and I want to change them to retail ones, someone can help me ?
  3. Hello all..i was wondering how i can set a place as party zone..(i have multifunction code also may i can do it from there? and how.) also if the player isn't in a party of 5+ players he will not be aible to walk in party area that i will set for... sorry for bad english..
  4. I've bought they're protection and im phasing some errors they are not willing to help me at all :D When you purchase the anti-bot they give you they're patch or you can put they're files to yours. The problem is when i put they're files to my patch i get this https://prnt.sc/umny0k When i put my armorgrp/itemname bla bla to the patch they gave me,l2.exe is not willing to open,i will see it running on Task manager but thats it. Does anyone know or have any solution about this weird problem? Client is Gracia Final.
  5. Is there any way to add a packet in the game? I want to add a new enchant book, I've done everything on the client but I'm missing the server side, I've created a 'RequestExEnchantSkillGOD' class that looks like 'RequestExEnchantSkillSafe', and I added it in L2GamePacketHandler, but it does not work, does anyone know if there is a way? Packet i want to add: Added in L2GamePacketHandler: I have the client-side working fine: But when I click on it nothing happens with my packet. But isnt works. Thanks in advance.
  6. Hi guys once again i need your help. I added a shift + click droplist panel on my server works fine except one missfaction. When the droplist is too big for example grandbosses the html page crashes. "Your html is too long use database for this action" So i need to seperate the droplist data in pages [1,2,3] or adding a next page button. Looking for someone to help me! Thank you! My java code is here i use only requestbypasstoserver.java : else if (_command.startsWith("DropListNpc")) { final L2Object object = activeChar.getTarget(); if (object instanceof L2NpcInstance) { NpcHtmlMessage html = new NpcHtmlMessage(0); StringBuilder html1 = new StringBuilder("<html>"); html1.append("<title>Npc Name: " + object.getName() + "</title>"); html1.append("<body>"); html1.append("<br>"); html1.append("<table cellspacing=2 cellpadding=1 width=\"280\">"); if (((L2NpcInstance) object).getTemplate().getDropData() != null) { for (L2DropCategory cat : ((L2NpcInstance) object).getTemplate().getDropData()) { for (L2DropData drop : cat.getAllDrops()) { final L2Item item = ItemTable.getInstance().getTemplate(drop.getItemId()); if (item == null) continue; int mind = 0, maxd = 0; String smind = null, smaxd = null; String name = item.getName(); if (cat.isSweep()) { mind = (int) (Config.RATE_DROP_SPOIL * drop.getMinDrop()); maxd = (int) (Config.RATE_DROP_SPOIL * drop.getMaxDrop()); } else if (drop.getItemId() == 57) { mind = 300 * drop.getMinDrop(); maxd = 300 * drop.getMaxDrop(); } else { mind = (int) (Config.RATE_DROP_ITEMS * drop.getMinDrop()); maxd = (int) (Config.RATE_DROP_ITEMS * drop.getMaxDrop()); } if (mind > 999999) { DecimalFormat df = new DecimalFormat("###.#"); smind = df.format(((double) (mind)) / 1000000) + " KK"; smaxd = df.format(((double) (maxd)) / 1000000) + " KK"; } else if (mind > 999) { smind = ((mind / 1000)) + " K"; smaxd = ((maxd / 1000)) + " K"; } else { smind = Integer.toString(mind); smaxd = Integer.toString(maxd); } if (name.startsWith("Common Item - ")) { name = "(CI)" + name.substring(14); } if (name.length() >= 34) { name = name.substring(0, 30) + "..."; } html1.append("<tr>"); html1.append("<td valign=top align=center height=38 width=40><img src=\"" + getIcon(item.getItemId()) + "\" height=32 width=32></td>"); html1.append("<td>"); html1.append("<table cellpadding=0 cellspacing=1 width=260>"); html1.append("<tr>"); html1.append("<td><font color=fff600>" + name + "</font> " + (maxd == 1 ? "[1]" : "[" + smind + " - " + smaxd + "]") + "</td>"); html1.append("</tr>"); html1.append("<tr>"); html1.append("<td><font color=00ff00>Chance: </font>" + (drop.getChance() >= 10000 ? (double) drop.getChance() / 10000 : drop.getChance() < 10000 ? (double) drop.getChance() / 10000 : "N/A") + "% "+ "</td>"); html1.append("</tr>"); html1.append("<tr>"); html1.append("<td><font color=00b3b3>Drop Type:</font> " + (drop.isQuestDrop() ? "<font color=00b3b3>[Quest]</font>" : (cat.isSweep() ? "<font color=ff00ff>[Spoil]</font> " : "<font color=00b3b3>[Drop]</font>")) + "</td>"); html1.append("</tr>"); html1.append("</table><img src=L2UI.SquareGray width=260 height=1>"); html1.append("</td>"); } } } html1.append("</tr></table>"); html1.append("</body>"); html1.append("</html>"); html.setHtml(html1.toString()); activeChar.sendPacket(html); html1 = null; html = null; } } }
  7. Hello members of Max I need help converting images that I can use on the H5 server Please give me the correct way to start, and I hope that the links to the helper programs invite me to do so. Please new links or one of you will upload them again because most of the links are unfortunately corrupted. Here is the link to the images I want to use. I put them with the extension: :( .png and .tga) Download Link : https://mega.nz/file/jlExSY5L#Fel-0MHQdD-0hQ7uKiyVFqCnX3O433UwRaS50IqBA0E ........................... thanks for your support
  8. Im using a L2JWZ custom server.. how can i change the skills shortcuts for a new characters? It starts with F1 = /attack F4 = /pickup F11 = /sit How can i change it to my custom shortcuts?
  9. Hi, some1 who know set skillgrp for H5 client ? IL skillgrp effekt NPHRN_skill.phenomenon.269 H5 client have simple only ID 1092 for effekt, how can see on pictures, thx
  10. Please, someone could show me where can i find the best bot for c4? i dont know if it`s free or private. thanks
  11. HI all, i set in my npc to make character hero. In next settings you will see. But, i want to set hero for 1 month. Now, if player buy hero, after restart, hero it's gone. Here it is few setting. else if (event.equalsIgnoreCase("hero")) { if (!player.isHero()) { player.setHero(true); player.broadcastPacket(new SocialAction(player.getObjectId(), 20016)); // Hero Animation player.broadcastUserInfo(); player.destroyItemByItemId("Get your hero!", 6391, 25000, player, true); return "character.htm"; } else if (player.isHero()) { player.setHero(false); player.broadcastUserInfo(); return "character.htm"; } } How i can set a "period" ? I check olympiad method. But those settings are much and i don't understand nothing. Greetings
  12. Hi, have little problem :) when spawn npc, all npcs spawn only for 1 side... i cant set NPC to side how need any fix for it ? :/ thx https://imgur.com/a/Bt2ynkO
  13. Hello, maybe someone knows where to edit this character creation room from God's clients,which file responds to it?
  14. Hello, I try to add worldmap texture in game, but when i use low details, it always looks muddy, how can i make it look always sharp no matter the game detail? I use unreal edit, i import a tga file, i tried with generate mip maps and without, compression dxt 1, 3 also, size is 1024x1024 what am i doing wrong?
  15. Does anyone have the abnormal effects list from 1 to 69 (client side , with effect names ) ty
  16. Hello I am facing a problem adding some things to the private server (PVP Zone - NPC Buff ......) Of course, I found her files here on the site, but when I follow the steps, I cannot find the correct path; Does every server have a private path or there is another reason I do not know. I hope for a reply anything useful, my servants are H5 .........................thank you
  17. I'm in need of assistance for someone to give me some guidelines. What programs is needed to decrypt, edit, encrypt files and how can I run Lineage 2 in dev mode.
  18. Hello, I edited the file EtcItemgrp.dat in L2file edit but now i cannot save , TXT file here , can some one save in Gracia epilogue 413? thanks you very mutch!
  19. Hello, Anybody knows the name of this effect in the effects .u file? It s some kind of stun
  20. There is a file inside "systextures" responsible for making the client look "square" I wanted to take it out, does anyone know the name? ps: I know it is a file that is inside the "systextures", because when replacing the complete folder this appearance is removed. NOTE: I don't want to replace my entire "systextures" folder, I just want to remove that appearance. Can someone help me? thank you in advance to anyone who can help me!
  21. hi guys, i still trying to adapt the skin system + 2 click items. I have some errors in the skin1.java and i just dont know how to fix it. My skin1.java package com.l2jfrozen.gameserver.handler.itemhandlers; import com.l2jfrozen.Config; import com.l2jfrozen.gameserver.handler.IItemHandler; import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance; import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance; import com.l2jfrozen.gameserver.network.clientpackets.RequestBypassToServer; public class skin1 implements IItemHandler { @Override public void useItem(L2PlayableInstance playable, L2ItemInstance item) { if(Config.ALLOW_DRESS_ME_SYSTEM) { if(!(playable instanceof L2PcInstance)) return; L2PcInstance activeChar = (L2PcInstance)playable; RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME1); RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME1); RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME1); RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME1); if (activeChar.isDressMeEnabled()) { activeChar.setDressMeEnabled(false); activeChar.broadcastUserInfo(); activeChar.sendMessage("You have disabled skin."); } else { activeChar.setDressMeEnabled(true); activeChar.broadcastUserInfo(); activeChar.sendMessage("You have activated " + Config.SKIN_NAME1 + " skin."); } } else playable.sendMessage("Sorry, admin has disabled skins."); } @Override public int[] getItemIds() { return ITEM_IDS; } private static final int ITEM_IDS[] = { Config.SKIN_ITEM_1 }; } and the errors
  22. https://uploaddeimagens.com.br/imagens/IB5ZaFw https://uploaddeimagens.com.br/imagens/nvmF864 when I Change the weapon it looks like the previous weapon that I removed can someone help me ?
  23. Hello guys, i use acis pack and i don't have some tables on navicat like custom_npc , custom_teleport , custom_armor , custom_teleport and etc ... can someone tell me how to create this tables ?
  24. 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;
  25. Hello , i download this buffer for l2 acis https://maxcheaters.com/topic/223485-npc-player-buffer-acis/?tab=comments#comment-2688248 The only that i did is to make a folder in gameserver/data/html/mods/buffer and i paste the html files there, then i create a new npc in xml. After that i spawn buffer, i can see the Index of buffer ( buffs,heal,fighter set,mage set, etc) but i cant get buffs from this npc. No any message showed up on my screen. Any idea on how can i fix the problem above? ( if yes, be specific at comments ) Thnx in advance