Jump to content
  • 0

Requestextrytoputenchanttargetitem On Interlude


ErHarD

Question

3 answers to this question

Recommended Posts

  • 0

Set debug config to true and right click the scroll and check console, you will know the packet.

 

RequestEnchantItem sounds obvious.

Edited by SweeTs
Link to comment
Share on other sites

  • 0

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 by ErHarD
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...