Everything posted by Meydex
-
Delay On Nextactionisattack.
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); } } }
-
Delay On Nextactionisattack.
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.
-
Download Site
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!
-
Is This Mod Or Codes?
Have a look at this: http://www.maxcheaters.com/topic/139771-multifunctionzone/ It might help with your situation.
- System Message Dialog Problem.
-
System Message Dialog Problem.
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!
-
Incorrect Spell Damage Display.
Oh yes, it happens only with spells, not physical damage :)
-
Incorrect Spell Damage Display.
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.
-
Incorrect Spell Damage Display.
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
-
Incorrect Spell Damage Display.
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?
-
[L2J] Diy
The question is.. can I limit my gameplay only in board? Farm, pvp etc.
- Weapon Grade Change On Certain Enchant.
- Weapon Grade Change On Certain Enchant.
-
Weapon Grade Change On Certain Enchant.
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.
- Autoshots Code Ingame Problem.
-
Autoshots Code Ingame Problem.
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.
-
Auto Soulshot Conversion Error
Hey I am having the exact same error. Could someone come up with an explanation please?
-
[Updated][Share] Rin4a's Buffer v1.3 Edited with Pet Buffer
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
-
[Share]Epic Dark Knight Armor [C4-C5-Interlude-Hellbound-CT2-CT2.2-CT2.3]
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 :)
-
[Share] Infernal Armors
Cool Share man But,do they work on CT2.3 too?