-
Posts
1,562 -
Joined
-
Last visited
-
Days Won
21 -
Feedback
100%
Content Type
Articles
Profiles
Forums
Store
Everything posted by Psyancy
-
Index: config/head/altsettings.properties =================================================================== --- config/head/altsettings.properties (revision 1118) +++ config/head/altsettings.properties (working copy) # Maximum number of debuffs MaxDebuffAmount = 6 +# ----------------------------------------- +# Canceled Buffs Return +# ----------------------------------------- +# With this feature, players will get their +# canceled buffs back after the amount of +# seconds you've set on CustomCancelSeconds +# Enable Canceled Buffs Return? +# Default : False +AllowCustomCancelTask = False + +# Time for buffs to return in seconds +# Default: 15 +CustomCancelSeconds = 15 Index: head-src/com/l2jfrozen/Config.java =================================================================== --- head-src/com/l2jfrozen/Config.java (revision 1118) +++ head-src/com/l2jfrozen/Config.java (working copy) public static boolean ALT_MOBS_STATS_BONUS; public static boolean ALT_PETS_STATS_BONUS; + public static boolean ALLOW_CUSTOM_CANCEL; + public static int CUSTOM_CANCEL_SECONDS; =================================================================== ALT_LOTTERY_2_AND_1_NUMBER_PRIZE = Integer.parseInt(altSettings.getProperty("AltLottery2and1NumberPrize", "200")); BUFFS_MAX_AMOUNT = Byte.parseByte(altSettings.getProperty("MaxBuffAmount", "24")); DEBUFFS_MAX_AMOUNT = Byte.parseByte(altSettings.getProperty("MaxDebuffAmount", "6")); + ALLOW_CUSTOM_CANCEL = Boolean.parseBoolean(altSettings.getProperty("AllowCustomCancelTask", "false")); + CUSTOM_CANCEL_SECONDS = Integer.parseInt(altSettings.getProperty("CustomCancelSeconds", "15")); Index: head-src/com/l2jfrozen/gameserver/handler/skillhandlers/Disablers.java =================================================================== --- head-src/com/l2jfrozen/gameserver/handler/skillhandlers/Disablers.java (revision 1118) +++ head-src/com/l2jfrozen/gameserver/handler/skillhandlers/Disablers.java (working copy) import java.io.IOException; +import java.util.Vector; import org.apache.log4j.Logger; =================================================================== import com.l2jfrozen.gameserver.model.actor.instance.L2PetInstance; import com.l2jfrozen.gameserver.model.actor.instance.L2SiegeSummonInstance; +import com.l2jfrozen.gameserver.model.entity.CustomCancelTask; import com.l2jfrozen.gameserver.network.SystemMessageId; import com.l2jfrozen.gameserver.network.serverpackets.SystemMessage; import com.l2jfrozen.gameserver.skills.Formulas; import com.l2jfrozen.gameserver.skills.Stats; +import com.l2jfrozen.gameserver.thread.ThreadPoolManager; import com.l2jfrozen.util.random.Rnd; =================================================================== case CANCEL: { + Vector<L2Skill> cancelledBuffs = new Vector<>(); if (target.reflectSkill(skill)) { target = activeChar; } =================================================================== else if (rate < 5) { rate = 5; } if (Rnd.get(100) < rate) { + if (Config.ALLOW_CUSTOM_CANCEL) + { + if (!cancelledBuffs.contains(e.getSkill()) && !((L2PcInstance)activeChar).isInOlympiadMode()) + { + cancelledBuffs.add(e.getSkill()); + } + } e.exit(true); maxfive--; if (maxfive == 0) { break; } } } } } + if (Config.ALLOW_CUSTOM_CANCEL) + { + + if (cancelledBuffs.size() > 0) + ThreadPoolManager.getInstance().scheduleGeneral(new CustomCancelTaskManager((L2PcInstance)target, cancelledBuffs), Config.CUSTOM_CANCEL_SECONDS *1000); + } effects = null; } =================================================================== else if (rate < 5) { rate = 5; } if (Rnd.get(100) < rate) { + if (Config.ALLOW_CUSTOM_CANCEL) + { + if (!cancelledBuffs.contains(e.getSkill()) && !((L2PcInstance)activeChar).isInOlympiadMode()) + { + cancelledBuffs.add(e.getSkill()); + } + } e.exit(true); maxdisp--; if (maxdisp == 0) { break; } } } } } + if (Config.ALLOW_CUSTOM_CANCEL) + { + if (cancelledBuffs.size() > 0) + ThreadPoolManager.getInstance().scheduleGeneral(new CustomCancelTaskManager((L2PcInstance)target, cancelledBuffs), Config.CUSTOM_CANCEL_SECONDS *1000); + } // effects = null; Index: head-src/com/l2jfrozen/gameserver/model/entity/CustomCancelTask.java =================================================================== --- head-src/com/l2jfrozen/gameserver/model/entity/CustomCancelTask.java (nonexistent) +++ head-src/com/l2jfrozen/gameserver/model/entity/CustomCancelTask.java (working copy) /* * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License along with * this program. If not, see <http://www.gnu.org/licenses/>. */ package com.l2jfrozen.gameserver.model.entity; import java.util.Vector; import com.l2jfrozen.gameserver.model.L2Skill; import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; /** * @author Psyancy * */ public class CustomCancelTaskManager implements Runnable { private L2PcInstance player = null; private Vector<L2Skill> buffsCanceled = null; public CustomCancelTaskManager(L2PcInstance p, Vector<L2Skill> skill) { player = p; buffsCanceled = skill; } @Override public void run() { if (player == null) return; for (L2Skill skill : buffsCanceled) { if (skill == null) continue; skill.getEffects(player, player); } } } Credits for the original Code: Anarchy Credits for the modifications: Bluur
-
i joined and couldn't understand anything.. random spawned npcs, 0 explanation on what a newbie should do to start play on the server and from what i've seen the online also must be low, i was 30 mins online and i only saw a single spam on shout
-
Source L2Excess Source Files
Psyancy replied to DrenepiaWorld's topic in Server Shares & Files [L2J]
because link is valid, the files were shared before and it's just a reshare -
i'm not looking for RU servers anyway so go for it ;p
-
tbh i saw more players fishing on official then farming/pvping so yeah you're right on this
-
this is what i though when i saw its rates and i didn't join ;p
-
Looking for Grand Crusader private servers Mid or High! (x20 - x99999) INTERNATIONAL ENGLISH SPEAKING ONLY PLEASE!! Thanks in advance!
-
low online :/
-
New Web Design [v1.0] Design Only [PSD] Price: Negotiable. Contacts: MxC or Skype Preview:
-
Code Multi Shop [Services/donate Npc] + Vip System
Psyancy replied to 'Baggos''s topic in Server Shares & Files [L2J]
Amazing share mate, thanks for sharing! -
I remember you guys, skilled persons! Best of luck with your server, I'll be there for sure.
-
only on tales xd
-
I'm out of Lineage 2 scene as player since 2k14,2k15 so yes :P
-
Really dude?
-
That's great! I hope you will success on that because this is a must for a server.
-
Best of luck with your server mate. seems interesting :)
-
Project L2Jfrozen Interlude Project
Psyancy replied to shivan's topic in Server Development Discussion [L2J]
He's not the topic author. -
The scammer is back lul.. The guy asks for designs and pays nothing at all.
-
Yes you're right, i moved the icons on the C:/ and it worked. lel xd thank you very much mate :)
-
Can you send me ur installer? Check my problem here p.s. sorry about the lag i did it like that so i will decrease the size of the video
-
Noone?
-
Source L2Excess Source Files
Psyancy replied to DrenepiaWorld's topic in Server Shares & Files [L2J]
there are no files on server files to protect you against ddos attacks, you need a proper host with anti ddos protection -
On my old pc i had no problems with unreal but on my new pc i downloaded unreal engine and every time i tried to import icons and create a new pack it will show up this screen and it won't import or create the new pack. P.S. Dunno if the problem is that i had Windows 7 on the old pc and now i have Windows 10 on the new pc. Anyone knows how i can make it work?
-
Είναι απλό, ότι έχει σχέση με codes, sources και γενικά server side θα τα βρείς εδώ -> http://www.maxcheaters.com/forum/42-server-shares-files-l2j/ Ότι έχει σχεση με Client (Weapons,Armors,Jewels,κλπ κλπ) θα τα βρείς εδω -> http://www.maxcheaters.com/forum/41-client-development-discussion/ Δεν άλλαξε κάτι απλά η "οργάνωση" των κατηγοριών άλλαξε και ουσιαστικά το θεωρώ πολύ πιο εύκολο και οργανωμένο πλέον.


