ErHarD 0 Posted June 20, 2015 Posted June 20, 2015 what is the packet of RequestExTryToPutEnchantTargetItem on interlude? You know the box that appears when you right click on enchant scroll? Share this post Link to post Share on other sites
0 SweeTs 193 Posted June 20, 2015 Posted June 20, 2015 (edited) Set debug config to true and right click the scroll and check console, you will know the packet. RequestEnchantItem sounds obvious. Edited June 20, 2015 by SweeTs Share this post Link to post Share on other sites
0 ErHarD 0 Posted June 20, 2015 Posted June 20, 2015 (edited) It's not obviouce cause: http://pastebin.com/H1GmJdBy Where should activeChar.setActiveEnchantTimestamp(System.currentTimeMillis()); go? According to H5 it goes on a missing packege named RequestExTryToPutEnchantTargetItem The client packet on H5 is : case 0x4c: msg = new RequestExTryToPutEnchantTargetItem(); break; also missing from interlude. Related to enchant protection I did the following //fast auto-enchant cheat check if ((activeChar.getActiveEnchantTimestamp() > 0) && (System.currentTimeMillis() - activeChar.getActiveEnchantTimestamp()) < 20000) { activeChar.setPunishLevel(L2PcInstance.PunishLevel.JAIL, 5);//5 minutes jail activeChar.setActiveEnchantItem(null); activeChar.sendPacket(EnchantResult.CANCELLED); _log.log(Level.WARNING ,"Player: "+activeChar+" used phx for auto enchant."); return; } if ((activeChar.getActiveEnchantTimestamp() > 0)) activeChar.sendMessage("getActiveEnchantTimestamp() > 0"); if ((activeChar.getActiveEnchantTimestamp() == 0)) activeChar.sendMessage("getActiveEnchantTimestamp() = 0"); if ((activeChar.getActiveEnchantTimestamp() < 0)) activeChar.sendMessage("getActiveEnchantTimestamp() < 0"); activeChar.setActiveEnchantTimestamp(System.currentTimeMillis()); but each time I enchant one item I get the message getActiveEnchantTimestamp() = 0, why it doesn't keep currentTimeMillis ? What I should do? Edited June 20, 2015 by ErHarD Share this post Link to post Share on other sites
0 ErHarD 0 Posted June 21, 2015 Posted June 21, 2015 Remove my topic or lock it. Thank you. Share this post Link to post Share on other sites
Question
ErHarD 0
what is the packet of RequestExTryToPutEnchantTargetItem on interlude? You know the box that appears when you right click on enchant scroll?
Share this post
Link to post
Share on other sites
3 answers to this question
Recommended Posts