+++ java/com/l2jserver/gameserver/model/actor/tasks/player/RecoverCancelledBuffsTask.java (working copy)
@@ -0,0 +1,64 @@
+/*
+ * Copyright (C) 2004-2014 L2J Server
+ *
+ * This file is part of L2J Server.
+ *
+ * L2J Server 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.
+ *
+ * L2J Server 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.l2jserver.gameserver.model.actor.tasks.player;
+
+import java.util.List;
+
+import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
+import com.l2jserver.gameserver.model.skills.BuffInfo;
+import com.l2jserver.gameserver.model.skills.EffectScope;
+import com.l2jserver.gameserver.model.stats.Env;
+import com.l2jserver.gameserver.network.serverpackets.ExShowScreenMessage;
+
+/**
+ * @author nuLL
+ */
+public class RecoverCancelledBuffsTask implements Runnable
+{
+ private final List<BuffInfo> _buffs;
+ private final L2PcInstance _player;
+
+ public RecoverCancelledBuffsTask(List<BuffInfo> buffs, L2PcInstance player)
+ {
+ _player = player;
+ _buffs = buffs;
+ }
+
+ @Override
+ public void run()
+ {
+ for (BuffInfo buff : _buffs)
+ {
+ final Env env = new Env();
+ env.setCharacter(_player);
+ env.setTarget(_player);
+ env.setSkill(buff.getSkill());
+ final BuffInfo stolenOrCanceled = new BuffInfo(env);
+ stolenOrCanceled.setAbnormalTime(buff.getTime());
+ buff.getSkill().applyEffectScope(EffectScope.GENERAL, stolenOrCanceled, true, true);
+
+ if (stolenOrCanceled.getAbnormalTime() > 0)
+ {
+ _player.getEffectList().add(stolenOrCanceled);
+ }
+ }
+
+ _player.sendPacket(new ExShowScreenMessage("Your cancelled buffs has been given back.", 2000));
+ }
+}
why the "Env.java" file no longer exists in the project
he was my customer many years ago, i setup his acp and some statistics on his website, plus some security it is big difference than "friend"
its more dissapointment than hate, take example acis, how many years still development.
PS: you know i was selling websites and i still sell donate panels for l2 servers right?
While I respect every other admin who launches a server, including L2Gold, I can proudly say that we’ve built a community where each season brings significant changes and numerous updates. We had anywhere from a few hundred players to nearly one thousand unique players (season 2).
The server has already been rebuilt three times on different client protocols, each time introducing something fresh to the table. L2Gold Essence against most other servers; you’ll notice the difference immediately: no lag, no odd movement bugs, the best geodata (which we’ve continually improved), high FPS during mass PvP, and overall smooth gameplay. Just a single in-game click makes the contrast clear compared to servers that still feel stuck in 2007 in terms of innovation. There were times when things went very wrong due to major code reworks, refactors, and the lack of proper testing, but everything was eventually resolved.
Not only that, but we’ve also attracted CPs and clans that had never played L2Gold before. That’s one of the main reasons why we reached a higher player count than any gold-style server when compared to the original one back in the days.
100~ videos playlist:
Question
HARDECORE
Can anyone help me by adapting this mod to l2jserver?
https://gist.github.com/rodrigonull/5d4b2862c56e39f3faa6
This is the only part with error.
why the "Env.java" file no longer exists in the project
Edited by HARDECORE1 answer to this question
Recommended Posts