Jump to content
  • 0

Requestextrytoputenchanttargetitem On Interlude


Question

Posted

what is the packet of RequestExTryToPutEnchantTargetItem on interlude? You know the box that appears when you right click on enchant scroll?

3 answers to this question

Recommended Posts

  • 0
Posted (edited)

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

 

RequestEnchantItem sounds obvious.

Edited by SweeTs
  • 0
Posted (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 by ErHarD
Guest
This topic is now closed to further replies.


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock