Skip to content

Meydex

Members
  • Joined

  • Last visited

  • Trader rating

    N/A

Everything posted by Meydex

  1. I tested it but it seems it stops completely after a skill. Code below: if ((skill.nextActionIsAttack()) && (getTarget() instanceof L2Character) && (getTarget() != this) && (target != null) && (getTarget() == target) && target.canBeAttacked()) { long lastAttack = System.currentTimeMillis() + 850; //less than a second delay between skill and attack if ((getAI().getNextIntention() == null) || (getAI().getNextIntention().getCtrlIntention() != CtrlIntention.AI_INTENTION_MOVE_TO)) { if (System.currentTimeMillis() > lastAttack) { getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, target); } } }
  2. Hello, A simple question. What would be the most efficient way to add a delay on nextActionIsAttack reference in L2Character? Example code below: if ((skill.nextActionIsAttack()) && (getTarget() instanceof L2Character) && (getTarget() != this) && (target != null) && (getTarget() == target) && target.canBeAttacked()) { if ((getAI().getNextIntention() == null) || (getAI().getNextIntention().getCtrlIntention() != CtrlIntention.AI_INTENTION_MOVE_TO)) { getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, target); } } The reason for doing this is because it works pretty buggy overall. Specifically, sometimes the next attack doesn't take enough time to finish but it registers the damage which shouldn't be the case.
  3. Take a look at this: https://bitbucket.org/l2jserver/ Current project is High Five unless stated otherwise. Specifically you'll have to go to branches and download the develop one. Have fun!
  4. Have a look at this: http://www.maxcheaters.com/topic/139771-multifunctionzone/ It might help with your situation.
  5. Its not that unfortunately. I already tested it and I also checked images from previous chronicles to confirm.
  6. Hello I am trying to create a function using an old system message (SystemMessageId.S1_S2_SUCCESSFULLY_ENCHANTED). The code in which the packet is sent can be seen below: SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.S1_S2_SUCCESSFULLY_ENCHANTED); sm.addInt(enchant); sm.addItemName(this); player.sendPacket(sm); player.broadcastUserInfo(); The message is sent properly with the name and the enchant level, however I noticed it also opens a small dialog window with a confirm button that should show the exact same message. Instead the dialog does not show the item nor its enchantlevel (See attachment below). Should I create a new ConfirmDlg sending the packet again or is there a more efficient way? Any help would be greatly appreciated!
  7. Oh yes, it happens only with spells, not physical damage :)
  8. It happens with all spells and it happens every single time, which probably eliminates the lack of sync possibility. Additionally, this damage really does kill the NPC, that's why I assumed it is a display error. Should I limit my search within the L2AttackableAiScript or should I check something else too? I Appreciate your help btw guys.
  9. Does it have to do with delay in general or is it code enumeration issue? That's what I am trying to figure out and I can't seem to find the answer anywhere :S
  10. Hello, Whilst trying to investigate and solve issues on my pack, I came across this problem: As you can see, the damage message is displayed after the monster is dead which doesn't seem right. This only happens with spells (fighter-mage included) ,not auto attacks. Any ideas how to fix it? Thanks! UPDATE: After countless tests I realised that damage is displayed even when the monster is dead. For example I had a friend of mine kill a monster and with the right timing I managed to start a skill cast right before the monster's death and the damage msg appeared even though it was dead :S . Any guidance on which file to search for the solution of this issue?
  11. The question is.. can I limit my gameplay only in board? Farm, pvp etc.
  12. Oh sry I misunderstood then :P Makes sense then but I've got little to no knowledge at all on how client and server packets work. Could you give me a specific example on what to write and where? Thanks again.
  13. Thanks for the quick reply! Decent idea there ! Correct me if I am wrong but wouldn't this return a new item id enchanted to +0?
  14. Hey, Would it be viable to create a code that changes a weapon's grade from lets say D grade to C grade after enchanting it to +12? If yes would anyone mind sharing some ideas how to implement such thing? I know it sounds weird but it definitely adds a twist to what I am trying to achieve behind this idea :) Thanks in advance.
  15. Hello, I came across this topic ---> http://www.maxcheaters.com/topic/170046-autoshots-autoarrows-no-consumption/page-1 while searching for shares and I found it pretty interesting as an idea. Despite some compatibility complications, I managed to adapt it for my high 5 master branch release. At first it seemed to be working properly until I found something buggy. Whenever I remove one part of my armor/accesories the soulshots stop recharging. However if I remove and equip my weapon , it recharges them again. I am pretty newbie in this whole java thing so if anyone has a solution to this problem I would really appreciate it!! The pastebin code: http://pastebin.com/pHACrzYp I repeat this is an already implemented code and not done by me so credits go its respective owner--> ^Wyatt Thanks in advance.
  16. Hey I am having the exact same error. Could someone come up with an explanation please?
  17. Omg...I tested it and it works 100%...Hopefully a buffer that deserves to be in every server around . Thnks a lot for this wonderful share!!:D
  18. Hey..thanks for your share....i really like this armor. But i have a problem. When i copy the lines to the decrypted armorgrp.dat file and i save and encrypt...it sends me an error and the file dissappears..... Btw i used the CT2.3....Can anyone send me an armorgrp.dat file that already has the Epic armor code lines in it? I would Really appreciate it...thank you :)
  19. Cool Share man But,do they work on CT2.3 too?

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.