shavloxa Posted April 19, 2017 Posted April 19, 2017 Where in L2PcInstance should i add this code? im using l2jfrozen. @@ -4321,6 +4339,22 @@ teleToLocation(184351, 20318, -3174, 0); } + if (isAutoPot(728)) + { + sendPacket(new ExAutoSoulShot(728, 0)); + setAutoPot(728, null, false); + } + if (isAutoPot(1539)) + { + sendPacket(new ExAutoSoulShot(1539, 0)); + setAutoPot(1539, null, false); + } + if (isAutoPot(5592)) + { + sendPacket(new ExAutoSoulShot(5592, 0)); + setAutoPot(5592, null, false); + } + return true; } Man Where have you: :D:D:D data/xml/items/1500-1599.xml data/xml/items/0700-0799.xml data/xml/items/5500-5599.xml
BaM4yYy Posted April 28, 2017 Posted April 28, 2017 (edited) with small changes on the code it work perfect on acis 361 rev. tested + if (isAutoPot(728)) + { + sendPacket(new ExAutoSoulShot(728, 0)); + setAutoPot(728, null, false); + } + if (isAutoPot(1539)) + { + sendPacket(new ExAutoSoulShot(1539, 0)); + setAutoPot(1539, null, false); + } + if (isAutoPot(5592)) + { + sendPacket(new ExAutoSoulShot(5592, 0)); + setAutoPot(5592, null, false); + Bro do u know on which line the code should be on cuz i didn't find this @@ -4321,6 +4339,22 @@ teleToLocation(184351, 20318, -3174, 0); }. Thank u in advance PS: All good thank u anyway ^^ Edited April 28, 2017 by BaM4yYy
Ionian Posted November 29, 2018 Posted November 29, 2018 i have problem...my pack dont have threadpoolmanager any help? or someone can send me full code of threadpoolmanager ?
martuxas1 Posted May 16, 2019 Posted May 16, 2019 Any help? CODE: activeChar.setAutoPot(5592, ThreadPool.getInstance().scheduleGeneralAtFixedRate(new AutoPot(5592, activeChar), 1000, CP_POT_CD*1000), true); ERROR: [javac] aCis_gameserver\java\net\sf\l2j\gameserver\handler\itemhandlers\SoulShots.java:118: error: cannot find symbol [javac] activeChar.setAutoPot(5592, ThreadPool.getInstance().scheduleGeneralAtFixedRate(new AutoPot(5592, activeChar), 1000, CP_POT_CD*1000), true); [javac] ^ [javac] symbol: method getInstance() [javac] location: class ThreadPool
SweeTs Posted May 16, 2019 Posted May 16, 2019 ThreadPool.scheduleAtFixedRate( or something, just type schedule after the dot and choose correct naming.
protoftw Posted March 19, 2020 Posted March 19, 2020 On 4/28/2017 at 5:50 PM, BaM4yYy said: + if (isAutoPot(728)) + { + sendPacket(new ExAutoSoulShot(728, 0)); + setAutoPot(728, null, false); + } + if (isAutoPot(1539)) + { + sendPacket(new ExAutoSoulShot(1539, 0)); + setAutoPot(1539, null, false); + } + if (isAutoPot(5592)) + { + sendPacket(new ExAutoSoulShot(5592, 0)); + setAutoPot(5592, null, false); + Bro do u know on which line the code should be on cuz i didn't find this @@ -4321,6 +4339,22 @@ teleToLocation(184351, 20318, -3174, 0); } . Thank u in advance PS: All good thank u anyway ^^ Put it over there, Player.java if (_activeSoulShots.contains(itemId)) { removeAutoSoulShot(itemId); sendPacket(new ExAutoSoulShot(itemId, 0)); sendPacket(SystemMessage.getSystemMessage(SystemMessageId.AUTO_USE_OF_S1_CANCELLED).addItemName(itemId)); return true; } + if (isAutoPot(728)) + { + sendPacket(new ExAutoSoulShot(728, 0)); + setAutoPot(728, null, false); + } + if (isAutoPot(1539)) + { + sendPacket(new ExAutoSoulShot(1539, 0)); + setAutoPot(1539, null, false); + } + if (isAutoPot(5592)) + { + sendPacket(new ExAutoSoulShot(5592, 0)); + setAutoPot(5592, null, false); + } + return false; }
KejbL Posted February 9, 2021 Posted February 9, 2021 (edited) working it for acis 398 rev ? some1 try ? Edited May 3, 2021 by KabLe21
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now