Jump to content

criss22

Members
  • Posts

    505
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by criss22

  1. [04/08 21:35:42] MultisellData: Cannot find list ID: 10058 requested by player: L2PcInstance:Admin[268481726], NPC ID: 10002! how i can edit xml? i edit like that <?xml version='1.0' encoding='utf-8'?> <!-- H5 weapons --> <!-- © 2011 by 007Florin --> <?xml version="1.0" encoding="UTF-8"?> <list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd"> <npcs> <npc>31228</npc> <!-- Roy the Cat (Event Manager) --> </npcs> <!-- Hellblade --> <item id="1"> <production id="21919" count="1"/> </item> <!-- Hellblade - Haste --> <item id="2"> <production id="21920" count="1"/> </item> <!-- Hellblade - Health --> <item id="3"> <production id="21921" count="1"/> </item> <!-- Hellblade - Focus --> <item id="4"> <production id="21922" count="1"/> </item> <!-- Hellblade - Lightning --> <item id="5"> <production id="21927" count="1"/> </item> <!-- Hellblade - Lightning - Haste --> <item id="6"> <production id="21928" count="1"/> </item> <!-- Hellblade - Lightning - Health --> <item id="7"> <production id="21929" count="1"/> </item> <!-- Hellblade - Lightning - Focus --> <item id="8"> <production id="21930" count="1"/> </item> <!-- Butcher Blades --> <item id="9"> <production id="21935" count="1"/> </item> <!-- Butcher Blades - Confusion --> <item id="10"> <production id="21937" count="1"/> </item> <!-- Claw of Destruction --> <item id="11"> <production id="21939" count="1"/> </item> <!-- Claw of Destruction - HP Drain --> <item id="12"> <production id="21940" count="1"/> </item> <!-- Claw of Destruction - Health --> <item id="13"> <production id="21941" count="1"/> </item> <!-- Claw of Destruction - HP Regeneration --> <item id="14"> <production id="21942" count="1"/> </item> <!-- Claw of Destruction - Landslide --> <item id="15"> <production id="21947" count="1"/> </item> <!-- Claw of Destruction - Landslide - HP Drain --> <item id="16"> <production id="21948" count="1"/> </item> <!-- Claw of Destruction - Landslide - Health --> <item id="17"> <production id="21949" count="1"/> </item> <!-- Claw of Destruction - Landslide - HP Regeneration --> <item id="18"> <production id="21950" count="1"/> </item> <!-- Blades of Delusion --> <item id="19"> <production id="21955" count="1"/> </item> <!-- Blades of Delusion - Earth --> <item id="20"> <production id="21957" count="1"/> </item> <!-- Blood Brother --> <item id="21"> <production id="21959" count="1"/> </item> <!-- Blood Brother - Focus --> <item id="22"> <production id="21960" count="1"/> </item> <!-- Blood Brother - Health --> <item id="23"> <production id="21961" count="1"/> </item> <!-- Blood Brother - Light --> <item id="24"> <production id="21962" count="1"/> </item> <!-- Blood Brother - Great Gale --> <item id="25"> <production id="21966" count="1"/> </item> <!-- Blood Brother - Great Gale - Focus --> <item id="26"> <production id="21967" count="1"/> </item> <!-- Blood Brother - Great Gale - Health --> <item id="27"> <production id="21968" count="1"/> </item> <!-- Blood Brother - Great Gale - Light --> <item id="28"> <production id="21969" count="1"/> </item> <!-- Mardil's Fan --> <item id="29"> <production id="21973" count="1"/> </item> <!-- Mardil's Fan - M. Atk. --> <item id="30"> <production id="21974" count="1"/> </item> <!-- Mardil's Fan - Magic Silence --> <item id="31"> <production id="21975" count="1"/> </item> <!-- Mardil's Fan - Acumen --> <item id="32"> <production id="21976" count="1"/> </item> <!-- Mardil's Fan - Holy Spirit --> <item id="33"> <production id="21977" count="1"/> </item> <!-- Mardil's Fan - Holy Spirit - M. Atk. --> <item id="35"> <production id="21978" count="1"/> </item> <!-- Mardil's Fan - Holy Spirit - Magic Silence --> <item id="36"> <production id="21979" count="1"/> </item> <!-- Mardil's Fan - Holy Spirit - Acumen --> <item id="37"> <production id="21980" count="1"/> </item> </list> what is wrong?
  2. https://ibb.co/ey26zv who know how i can set Multisell options for access in game gm shop?
  3. https://ibb.co/cCav9v i no have that sql...
  4. how i can add npc's in my server? ( when is missing tables from Navicat Npc adn Custom_Npc) and how i can create this both tables? # --------------------------------------------------------------------------- # Custom Components # --------------------------------------------------------------------------- # Default: False CustomSpawnlistTable = True # Option to save GM spawn only in the custom table. # Default: False SaveGmSpawnOnCustom = True # Default: False CustomNpcData = True # Default: False CustomTeleportTable = True # Default: False CustomNpcBufferTables = True # Default: False CustomSkillsLoad = True # Default: False CustomItemsLoad = True # Default: False CustomMultisellLoad = True # Default: False CustomBuyListLoad = True i have set here from Config. (still missing tables from navicat)
  5. ok..i found this : /* * Copyright (C) 2004-2016 L2J Server * * This file is part of L2J Server. * * L2J Server 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 Server 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 com.l2jserver.gameserver.network.clientpackets; import java.util.logging.Level; import java.util.logging.LogRecord; import java.util.logging.Logger; import com.l2jserver.Config; import com.l2jserver.gameserver.data.xml.impl.EnchantItemData; import com.l2jserver.gameserver.model.L2World; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.items.L2Item; import com.l2jserver.gameserver.model.items.enchant.EnchantResultType; import com.l2jserver.gameserver.model.items.enchant.EnchantScroll; import com.l2jserver.gameserver.model.items.enchant.EnchantSupportItem; import com.l2jserver.gameserver.model.items.instance.L2ItemInstance; import com.l2jserver.gameserver.model.skills.CommonSkill; import com.l2jserver.gameserver.model.skills.Skill; import com.l2jserver.gameserver.network.SystemMessageId; import com.l2jserver.gameserver.network.serverpackets.EnchantResult; import com.l2jserver.gameserver.network.serverpackets.InventoryUpdate; import com.l2jserver.gameserver.network.serverpackets.ItemList; import com.l2jserver.gameserver.network.serverpackets.MagicSkillUse; import com.l2jserver.gameserver.network.serverpackets.StatusUpdate; import com.l2jserver.gameserver.network.serverpackets.SystemMessage; import com.l2jserver.gameserver.util.Util; public final class RequestEnchantItem extends L2GameClientPacket { protected static final Logger _logEnchant = Logger.getLogger("enchant"); private static final String _C__5F_REQUESTENCHANTITEM = "[C] 5F RequestEnchantItem"; private int _objectId; private int _supportId; @Override protected void readImpl() { _objectId = readD(); _supportId = readD(); } @Override protected void runImpl() { final L2PcInstance activeChar = getClient().getActiveChar(); if ((activeChar == null) || (_objectId == 0)) { return; } if (!activeChar.isOnline() || getClient().isDetached()) { activeChar.setActiveEnchantItemId(L2PcInstance.ID_NONE); return; } if (activeChar.isProcessingTransaction() || activeChar.isInStoreMode()) { activeChar.sendPacket(SystemMessageId.CANNOT_ENCHANT_WHILE_STORE); activeChar.setActiveEnchantItemId(L2PcInstance.ID_NONE); return; } L2ItemInstance item = activeChar.getInventory().getItemByObjectId(_objectId); L2ItemInstance scroll = activeChar.getInventory().getItemByObjectId(activeChar.getActiveEnchantItemId()); L2ItemInstance support = activeChar.getInventory().getItemByObjectId(activeChar.getActiveEnchantSupportItemId()); if ((item == null) || (scroll == null)) { activeChar.setActiveEnchantItemId(L2PcInstance.ID_NONE); return; } // template for scroll final EnchantScroll scrollTemplate = EnchantItemData.getInstance().getEnchantScroll(scroll); // scroll not found in list if (scrollTemplate == null) { return; } // template for support item, if exist EnchantSupportItem supportTemplate = null; if (support != null) { if (support.getObjectId() != _supportId) { activeChar.setActiveEnchantItemId(L2PcInstance.ID_NONE); return; } supportTemplate = EnchantItemData.getInstance().getSupportItem(support); } // first validation check if (!scrollTemplate.isValid(item, supportTemplate)) { activeChar.sendPacket(SystemMessageId.INAPPROPRIATE_ENCHANT_CONDITION); activeChar.setActiveEnchantItemId(L2PcInstance.ID_NONE); activeChar.sendPacket(new EnchantResult(2, 0, 0)); return; } // fast auto-enchant cheat check if ((activeChar.getActiveEnchantTimestamp() == 0) || ((System.currentTimeMillis() - activeChar.getActiveEnchantTimestamp()) < 2000)) { Util.handleIllegalPlayerAction(activeChar, "Player " + activeChar.getName() + " use autoenchant program ", Config.DEFAULT_PUNISH); activeChar.setActiveEnchantItemId(L2PcInstance.ID_NONE); activeChar.sendPacket(new EnchantResult(2, 0, 0)); return; } // attempting to destroy scroll scroll = activeChar.getInventory().destroyItem("Enchant", scroll.getObjectId(), 1, activeChar, item); if (scroll == null) { activeChar.sendPacket(SystemMessageId.NOT_ENOUGH_ITEMS); Util.handleIllegalPlayerAction(activeChar, "Player " + activeChar.getName() + " tried to enchant with a scroll he doesn't have", Config.DEFAULT_PUNISH); activeChar.setActiveEnchantItemId(L2PcInstance.ID_NONE); activeChar.sendPacket(new EnchantResult(2, 0, 0)); return; } // attempting to destroy support if exist if (support != null) { support = activeChar.getInventory().destroyItem("Enchant", support.getObjectId(), 1, activeChar, item); if (support == null) { activeChar.sendPacket(SystemMessageId.NOT_ENOUGH_ITEMS); Util.handleIllegalPlayerAction(activeChar, "Player " + activeChar.getName() + " tried to enchant with a support item he doesn't have", Config.DEFAULT_PUNISH); activeChar.setActiveEnchantItemId(L2PcInstance.ID_NONE); activeChar.sendPacket(new EnchantResult(2, 0, 0)); return; } } final InventoryUpdate iu = new InventoryUpdate(); synchronized (item) { // last validation check if ((item.getOwnerId() != activeChar.getObjectId()) || (item.isEnchantable() == 0)) { activeChar.sendPacket(SystemMessageId.INAPPROPRIATE_ENCHANT_CONDITION); activeChar.setActiveEnchantItemId(L2PcInstance.ID_NONE); activeChar.sendPacket(new EnchantResult(2, 0, 0)); return; } final EnchantResultType resultType = scrollTemplate.calculateSuccess(activeChar, item, supportTemplate); switch (resultType) { case ERROR: { activeChar.sendPacket(SystemMessageId.INAPPROPRIATE_ENCHANT_CONDITION); activeChar.setActiveEnchantItemId(L2PcInstance.ID_NONE); activeChar.sendPacket(new EnchantResult(2, 0, 0)); break; } case SUCCESS: { Skill enchant4Skill = null; L2Item it = item.getItem(); // Increase enchant level only if scroll's base template has chance, some armors can success over +20 but they shouldn't have increased. if (scrollTemplate.getChance(activeChar, item) > 0) { item.setEnchantLevel(item.getEnchantLevel() + 20); item.updateDatabase(); } activeChar.sendPacket(new EnchantResult(0, 0, 0)); if (Config.LOG_ITEM_ENCHANTS) { LogRecord record = new LogRecord(Level.INFO, "Success"); record.setParameters(new Object[] { activeChar, item, scroll, support, }); record.setLoggerName("item"); _logEnchant.log(record); } // announce the success int minEnchantAnnounce = item.isArmor() ? 6 : 7; int maxEnchantAnnounce = item.isArmor() ? 0 : 15; if ((item.getEnchantLevel() == minEnchantAnnounce) || (item.getEnchantLevel() == maxEnchantAnnounce)) { SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.C1_SUCCESSFULY_ENCHANTED_A_S2_S3); sm.addCharName(activeChar); sm.addInt(item.getEnchantLevel()); sm.addItemName(item); activeChar.broadcastPacket(sm); Skill skill = CommonSkill.FIREWORK.getSkill(); if (skill != null) { activeChar.broadcastPacket(new MagicSkillUse(activeChar, activeChar, skill.getId(), skill.getLevel(), skill.getHitTime(), skill.getReuseDelay())); } } if ((item.isArmor()) && (item.getEnchantLevel() == 4) && item.isEquipped()) { enchant4Skill = it.getEnchant4Skill(); if (enchant4Skill != null) { // add skills bestowed from +4 armor activeChar.addSkill(enchant4Skill, false); activeChar.sendSkillList(); } } break; } case FAILURE: { if (scrollTemplate.isSafe()) { // safe enchant - remain old value activeChar.sendPacket(SystemMessageId.SAFE_ENCHANT_FAILED); activeChar.sendPacket(new EnchantResult(5, 0, 0)); if (Config.LOG_ITEM_ENCHANTS) { LogRecord record = new LogRecord(Level.INFO, "Safe Fail"); record.setParameters(new Object[] { activeChar, item, scroll, support, }); record.setLoggerName("item"); _logEnchant.log(record); } } else { // unequip item on enchant failure to avoid item skills stack if (item.isEquipped()) { if (item.getEnchantLevel() > 0) { SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.EQUIPMENT_S1_S2_REMOVED); sm.addInt(item.getEnchantLevel()); sm.addItemName(item); activeChar.sendPacket(sm); } else { SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.S1_DISARMED); sm.addItemName(item); activeChar.sendPacket(sm); } L2ItemInstance[] unequiped = activeChar.getInventory().unEquipItemInSlotAndRecord(item.getLocationSlot()); for (L2ItemInstance itm : unequiped) { iu.addModifiedItem(itm); } activeChar.sendPacket(iu); activeChar.broadcastUserInfo(); } if (scrollTemplate.isBlessed()) { // blessed enchant - clear enchant value activeChar.sendPacket(SystemMessageId.BLESSED_ENCHANT_FAILED); item.setEnchantLevel(0); item.updateDatabase(); activeChar.sendPacket(new EnchantResult(3, 0, 0)); if (Config.LOG_ITEM_ENCHANTS) { LogRecord record = new LogRecord(Level.INFO, "Blessed Fail"); record.setParameters(new Object[] { activeChar, item, scroll, support, }); record.setLoggerName("item"); _logEnchant.log(record); } } else { // enchant failed, destroy item item = activeChar.getInventory().destroyItem("Enchant", item, activeChar, null); if (item == null) { // unable to destroy item, cheater ? Util.handleIllegalPlayerAction(activeChar, "Unable to delete item on enchant failure from player " + activeChar.getName() + ", possible cheater !", Config.DEFAULT_PUNISH); activeChar.setActiveEnchantItemId(L2PcInstance.ID_NONE); activeChar.sendPacket(new EnchantResult(2, 0, 0)); if (Config.LOG_ITEM_ENCHANTS) { LogRecord record = new LogRecord(Level.INFO, "Unable to destroy"); record.setParameters(new Object[] { activeChar, item, scroll, support, }); record.setLoggerName("item"); _logEnchant.log(record); } return; } L2World.getInstance().removeObject(item); final int crystalId = item.getItem().getCrystalItemId(); if ((crystalId != 0) && item.getItem().isCrystallizable()) { int count = item.getCrystalCount() - ((item.getItem().getCrystalCount() + 1) / 2); count = count < 1 ? 1 : count; activeChar.getInventory().addItem("Enchant", crystalId, count, activeChar, item); final SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.EARNED_S2_S1_S); sm.addItemName(crystalId); sm.addLong(count); activeChar.sendPacket(sm); activeChar.sendPacket(new EnchantResult(1, crystalId, count)); } else { activeChar.sendPacket(new EnchantResult(4, 0, 0)); } if (Config.LOG_ITEM_ENCHANTS) { LogRecord record = new LogRecord(Level.INFO, "Fail"); record.setParameters(new Object[] { activeChar, item, scroll, support, }); record.setLoggerName("item"); _logEnchant.log(record); } } } break; } } final StatusUpdate su = new StatusUpdate(activeChar); su.addAttribute(StatusUpdate.CUR_LOAD, activeChar.getCurrentLoad()); activeChar.sendPacket(su); if (!Config.FORCE_INVENTORY_UPDATE) { if (scroll.getCount() == 0) { iu.addRemovedItem(scroll); } else { iu.addModifiedItem(scroll); } if (item.getCount() == 0) { iu.addRemovedItem(item); } else { iu.addModifiedItem(item); } if (support != null) { if (support.getCount() == 0) { iu.addRemovedItem(support); } else { iu.addModifiedItem(support); } } activeChar.sendPacket(iu); } else { activeChar.sendPacket(new ItemList(activeChar, true)); } activeChar.broadcastUserInfo(); activeChar.setActiveEnchantItemId(L2PcInstance.ID_NONE); } } @Override public String getType() { return _C__5F_REQUESTENCHANTITEM; } } and i edit only item.setEnchantLevel(item.getEnchantLevel() + 20); how i can import to compiled server?
  6. but in L2jserver how i can do that? from eclipse or direct from Config files..
  7. SweeTs , i want make server with +5k max enchant...and one by one scrolls it`s hard
  8. Who know how edit each scrolls for enchant +10 Each scroll? for (L2jSunrise) (Reopen Topic)
  9. i solved..Thx guys. ( melron, Solomun)
  10. Please help with that! http://imgur.com/a/wC5Kn
  11. what's happend with gm shop? help me with this error.. [22:38:01] WARN: MultisellData: can't find list id: 90032 requested by player: t est, npcId:572 and i have that multisell into multisell folder and html from gm shop have good config
  12. who can help me with 'Your Target Cannot Be Found?' Is appear this in game when i try to spawn gmshop. I change general.propertise some sintax to `True` and in game still Your Target Cannot Be Found. Please help me somebody
  13. it`s normal to not have NPC in database? how i can edit npc's? (i compile l2jserver now. it`s fresh)
  14. how i can create. From folder Guard?
  15. Hello all, first of all i want to create anti pk for protect newbies from pro players...and i want to create a stronger anti-pk. Who can help me with how i can create one? i need full tutorial (link or something). Thank's.
  16. and how i can create custom_npc table in navicat? you have site?
  17. this is for Status thx up. but i need for set drop
×
×
  • Create New...