Jump to content

Hyo

VIP Member
  • Posts

    124
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Community Answers

  1. Hyo's post in Item Color Name was marked as the answer   
    I edit my itemname.dat
     
    I see the <rare> dynasty helm
    11557 Dynasty Helmet a,Masterwork Item that increases P. Def./Max HP/Resistance to Dark\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 2 and in my Elegia helmet i only change the last number 1 for 2
    23106 Elegia Helmet a, -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 2 and wohala!
     
    Can delete or lock the topic :forever alone like a boss:
  2. Hyo's post in Message On The Screen After Enchant was marked as the answer   
    Problem solved
     
    I edit my RequestExTryToPutEnchantTargetItem.java
    package com.l2jserver.gameserver.network.clientpackets; import java.util.logging.Level; import com.l2jserver.gameserver.datatables.EnchantItemData; import com.l2jserver.gameserver.model.EnchantScroll; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.model.items.instance.L2ItemInstance; import com.l2jserver.gameserver.network.SystemMessageId; import com.l2jserver.gameserver.network.serverpackets.ExPutEnchantTargetItemResult; ++ import com.l2jserver.gameserver.network.serverpackets.ExShowScreenMessage; /** * @author KenM */ public class RequestExTryToPutEnchantTargetItem extends L2GameClientPacket { private static final String _C__D0_4C_REQUESTEXTRYTOPUTENCHANTTARGETITEM = "[C] D0:4C RequestExTryToPutEnchantTargetItem"; private int _objectId = 0; @Override protected void readImpl() { _objectId = readD(); } @Override protected void runImpl() { L2PcInstance activeChar = getClient().getActiveChar(); if ((_objectId == 0) || (activeChar == null)) { return; } if (activeChar.isEnchanting()) { return; } L2ItemInstance item = activeChar.getInventory().getItemByObjectId(_objectId); L2ItemInstance scroll = activeChar.getActiveEnchantItem(); if ((item == null) || (scroll == null)) { return; } EnchantScroll scrollTemplate = EnchantItemData.getInstance().getEnchantScroll(scroll); if ((scrollTemplate == null) || !scrollTemplate.isValid(item)) { activeChar.sendPacket(SystemMessageId.DOES_NOT_FIT_SCROLL_CONDITIONS); activeChar.setActiveEnchantItem(null); activeChar.sendPacket(new ExPutEnchantTargetItemResult(0)); if (scrollTemplate == null) { _log.log(Level.WARNING, getClass().getSimpleName() + ": Undefined scroll have been used id: " + scroll.getItemId()); } return; } activeChar.setIsEnchanting(true); ++ double chance = scrollTemplate.getChance(item, null); ++ activeChar.sendPacket(new ExShowScreenMessage("You have " + chance + "% chance of success!", 3000)); activeChar.setActiveEnchantTimestamp(System.currentTimeMillis()); activeChar.sendPacket(new ExPutEnchantTargetItemResult(_objectId)); } @Override public String getType() { return _C__D0_4C_REQUESTEXTRYTOPUTENCHANTTARGETITEM; } }   :happyforever:
×
×
  • Create New...