- 0
Help AntiFeed
-
Posts
-
Hi everyone, I'm looking for someone to create a website for me with a pale, whitish design, inspired by Talking Island. I also need an auto-updater and a Discord logo included. I already have the domain and hosting set up on OVH, with PHP ready to go. However, I'm new to website development, so you may need to guide me through the installation process. Please do not contact me if you're charging unreasonable prices like $800 for "VIP" packages — I'm looking for fair and realistic offers. Payment will be made once the job is completed. If you have previous work to show, that's definitely a plus. The website, auto-updater, and Discord elements should all be in English. Thanks!
-
Make your own topic. Don’t be so rude and post in mine just to sell your stuff 😉 @Celestine
-
Server Client: Server is running on custom Classic Interlude Client. Enjoy the innovations that classic offers to players while maintaining the stability of Interlude features that we all loved. Birth of a new character A new character spawns in the basement of Ivory Tower. There, you can buff yourself via AIO buffer and then teleport to a low level zone for xp. A new character starts with full no grade gear and a newbie supply box. AIO npc Buffer There are AIO npc Buffers spawned in every town. The buffs’ duration is 1hour and are free of charge. The only buffs that are not included in the list are summoner’s buffs, third class dances, third class songs, and resists. Class transfer When you hit level 20, 40 and 76, you can seek for the Class Changer Carola in Aden or Castle Town in order to perform your 1st , 2nd and 3rd class change or simply use the .menu feature located in your character skills list. There are no further quests required. Boosted Buffers and Summoners In order to boost Prophets, Bladedancers and Swordsingers for PvP action and Olympiad games, they have been given special self-buffs. All of these classes are gifted with higher level buffs which they can be casted on themselves only. Also, summoner classes are boosted since they can buff their pets with more than usual servitor’s buffs There are 4 main custom shops in the server where you can buy the following items: 1) Harvana (Misc Shop): Consumables 2) Albert (Weapon Shop): D, C, B and A grade weapons 3) Meredion (Armor Shop): D, C and B grade armor and jewels 4) Wilbrand (Mantra Manager): A/S armor, S grade weapons and more Event Shop Event Shop Dianne can either be found in Aden Castle Town or Giran. You can buy several useful items in exchange for Vote Coins or Event Medals. Via Event Shop Dianne you can have access to the following items: 1) Blessed Enchants 2) Books of Giants 3) Common and Custom Accessories 4)Raidbombs and many more Weapons’ Special Abilities The Special Abilities (SA) for every C, B and A grade weapons can be bestowed by Mantra Manager Wilbrand in exchange for some animal bones, water mantras or wind mantras respectively. Rebirth System When you reach level 76, you can perform your first rebirth via Rebirth Manager. Once you perform a rebirth, your character will be deleveled to level 40 and you will obtain a book of rebirth. You can exchange the book of rebirth for a unique accesories via Rebirth Manager. A character can have 3 rebirths maximum. Remember once you have chosen your rebirth skills, you can anytime change your mind and choose your rebirths once again. Noblesse system Once you have performed 3 rebirths, you need to collect a set of four crowns from the following Raid Bosses: 1) Death Lord Hallate (Black Crown) 2) Kernon (Gold Crown) 3) Longhorn Golkonda (Red Crown) 4) Shilen’s Messenger Cabrio (Silver Crown) Once you’ve collected all the crowns and your character is at level 76, you can talk to the Noblesse Manager Eddy Wally, located in Aden Castle Town and become a Noblesse. Crown Raids Bosses’ respawn time is every 12 (±2) hours and have 1 spot Spawn spot: Giants Cave Unique L2Halcyon weapons and shields L2Halcyon weapons are S grade weapons with a unique SA. There are also three unique L2Halcyon shields. Both of them can be dropped only by Raid Bosses. Remember you can check the possible drops of any Raid Boss by pressing Shift+left click. Find bellow more details regarding L2Halcyon items. Duals Crokian blade*Crokian blade: Increases Critical Attack by 95 and Accuracy by 6 Doll knife*Doll knife <-Daggers: Increases Atk. speed by 7% and Accuracy by 6 Swords Crokian Blade: Increases Atk. speed by 7% and Accuracy by 6 Sword of Apostle: Increases Accuracy by 6 and maximum HP by 25% Mage weapons Lady’s Fan: Increases Casting Spd. by 17.5% Dusk Staff: Increases Casting Spd. by 17.5% Dusk Sword: Increases M. Atk. by 15% Polearms Dreadbane: 360° hit rate, increases hit number from 4 to 8 and Accuracy by 6 Axe of Ketra: Increases Accuracy by 6 and P. Atk. by 265 during a critical attack Daggers Doll Knife: Increases Critical Attack by 95 and P. Atk. by 265 during a critical attack Giant Trident: Increases Evasion by 3 and P. Atk. by 265 during a critical attack 2-Handed Sword Sword of Vampire: Increases Critical Attack by 95 and maximum HP by 25% Blunt Cudgel: Increases Critical Attack by 95 and Atk. speed by 7% Bow Bow of Halisha: Increases Critical Attack by 95 and Accuracy by 6 Shields Shield of Reflect: Reflect magic debuffs and shield damage reflect Shield of Evasion: No evasion penalty and Speed +7 Dusk Shield: Bow resistance Ancient L2Halcyon weapons Ancient L2Halcyon weapons can be obtained through refining the normal ones. Unique L2Halcyon Jewels L2Halcyon Jewels are S grade Jewels which provide unique bonuses. They can be dropped by specific Raid Bosses. Remember you can check the possible drops of any Raid Boss by pressing Shift+left click. Find bellow the bonuses of L2Halcyon Jewels: -Earring of Garacsia: MP +31, +10% bow resistance and +7 speed -Earring of Ipos: MP +31, +10% dagger resistance and +7 speed -Earring of Kandra: MP +31, +20% wind resistance and +7 speed -Earring of Von Helman: MP +31, +20% dark resistance and +7 speed -Earring of Vermilion: MP +31, +20% fire resistance and +7 speed -Earring of Falston: MP +31, +20% water resistance and +7 speed -Ring of Horuth: MP +21 and +10% P.Def. -Ring of Mos: MP +21 and +10% M.Def. -Ring of Shadith: MP +21 and 500% HP regen -Ring of Tayr: MP +21 and +100 Bow Range -Necklace of Hekaton: MP +42 and +15% max CP -Necklace of Brakki: MP +42 and +60% resistance to most of the debuffs -Necklace of Naga: MP +42 and +15% max HP Refining S grade armors/jewels Any S grade armor can be refined via Mantra Manager Wilbrand. S grade armors and Tateossian jewels start at 55% and they can both be upgraded all the way up to 100% in order to gain extra P.def or M.def. Once your armor reach 100%, you can transform it into Apella and gain extra stats (Jewels cannot be further refined). In addition, Apella armors start at 55% and can be upgraded up to 100% too. Then, you can transform your Apella into Dynasty Armor or Ancient Apella depends on your preference (which can also be refined up to 100%). Refining Epic Jewels (Core and Orfen) There is an option to refine Ring of Core and Earring of Orfen via Mantra Manager Wilbert. If you have two Rings of Core, you can combine them and receive an Enchanted Ring of Core. Then, you can combine two Enchanted Rings of Core in order to create a Refined Ring of Core (4 Rings of Core in total). The same procedure can be applied to Earring of Orfen, in order to create Enchanted Earring of Orfen or Refined Earring of Orfen. In this case, the enchantment of the ring/earring will be reset, so do not enchant those epic jewels before refining. Events: Korean TvT Squash Event Watermelon Event Raidboss Event Highrate Features List is not the final and changes/additions can be made! Join us and say your ideas! WEBSITE: L2Halcyon Join our discord server for more information about the server development and also join access early to test features, and get a glimpse on what we are working on. Discord Server
-
https://l2halcyon.com join discord server , you can actually get access to test. Classic Interlude.
-
Topics
Question
Xenokage
Dunno if that one is shared its for acis 370 i found that on a br ? website its antifeed pvp protection
unfortunately it works exept this part
+# If character died faster than timeout - pvp/pk points for killer will not increase
+# and clan reputation will not be transferred
+AntiFeedInterval = 120
any thoughts ?
*code inside Spoiler*
### Eclipse Workspace Patch 1.0
#P aCis_gameserver
Index: java/net/sf/l2j/gameserver/GameServer.java
===================================================================
--- java/net/sf/l2j/gameserver/GameServer.java (revision 13)
+++ java/net/sf/l2j/gameserver/GameServer.java (working copy)
@@ -81,6 +81,7 @@
import net.sf.l2j.gameserver.instancemanager.SevenSignsFestival;
import net.sf.l2j.gameserver.instancemanager.ZoneManager;
import net.sf.l2j.gameserver.instancemanager.games.MonsterRace;
+import net.sf.l2j.gameserver.instancemanager.AntiFeedManager;
import net.sf.l2j.gameserver.model.World;
import net.sf.l2j.gameserver.model.entity.Hero;
import net.sf.l2j.gameserver.model.olympiad.Olympiad;
@@ -257,7 +258,10 @@
StringUtil.printSection("Four Sepulchers");
FourSepulchersManager.getInstance().init();
-
+ //ANTIFEED MANAGER
+ StringUtil.printSection("AntiFeedManager");
+ AntiFeedManager.getInstance().registerEvent(AntiFeedManager.GAME_ID);
+
StringUtil.printSection("Quests & Scripts");
ScriptManager.getInstance();
Index: java/net/sf/l2j/Config.java
===================================================================
--- java/net/sf/l2j/Config.java (revision 12)
+++ java/net/sf/l2j/Config.java (working copy)
@@ -465,6 +465,12 @@
public static boolean STORE_SKILL_COOLTIME;
public static int MAX_BUFFS_AMOUNT;
+ /** AntiFeed Protection by Thug */
+ public static boolean ANTIFEED_ENABLE;
+ public static boolean ANTIFEED_DUALBOX;
+ public static boolean ANTIFEED_DISCONNECTED_AS_DUALBOX;
+ public static int ANTIFEED_INTERVAL;
+
/** Instance */
public static int INSTANCE_FINISH_TIME;
public static boolean RESTORE_PLAYER_INSTANCE;
@@ -1167,6 +1173,11 @@
MAX_BUFFS_AMOUNT = players.getProperty("MaxBuffsAmount", 20);
STORE_SKILL_COOLTIME = players.getProperty("StoreSkillCooltime", true);
+ //ANTIFEED MANAGER
+ ANTIFEED_ENABLE = players.getProperty("AntiFeedEnable", false);
+ ANTIFEED_DUALBOX = players.getProperty("AntiFeedDualbox", true);
+ ANTIFEED_DISCONNECTED_AS_DUALBOX = players.getProperty("AntiFeedDisconnectedAsDualbox", true);
+ ANTIFEED_INTERVAL = players.getProperty("AntiFeedInterval", 120) * 1000;
INSTANCE_FINISH_TIME = players.getProperty("DefaultFinishTime", 300) * 1000;
RESTORE_PLAYER_INSTANCE = players.getProperty("RestorePlayerInstance", false);
Index: java/net/sf/l2j/gameserver/instancemanager/AntiFeedManager.java
===================================================================
--- java/net/sf/l2j/gameserver/instancemanager/AntiFeedManager.java (nonexistent)
+++ java/net/sf/l2j/gameserver/instancemanager/AntiFeedManager.java (working copy)
@@ -0,0 +1,218 @@
+/*
+ * 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 net.sf.l2j.gameserver.instancemanager;
+
+import java.util.Map;
+import java.util.concurrent.ConcurrentHashMap;
+import java.util.concurrent.atomic.AtomicInteger;
+
+import net.sf.l2j.Config;
+import net.sf.l2j.commons.concurrent.ThreadPool;
+import net.sf.l2j.gameserver.model.actor.Creature;
+import net.sf.l2j.gameserver.model.actor.instance.Player;
+import net.sf.l2j.gameserver.network.L2GameClient;
+
+/**
+ * @author Thug
+ *
+ */
+public final class AntiFeedManager
+{
+ public static final int GAME_ID = 0;
+
+ final Map<Integer, Long> _lastDeathTimes = new ConcurrentHashMap<>();
+ private final Map<Integer, Map<Integer, AtomicInteger>> _eventIPs = new ConcurrentHashMap<>();
+
+ protected AntiFeedManager()
+ {
+ }
+
+ /**
+ * Set time of the last player's death to current
+ * @param objectId Player's objectId
+ */
+ public final void setLastDeathTime(int objectId)
+ {
+ _lastDeathTimes.put(objectId, System.currentTimeMillis());
+ ThreadPool.schedule(new DeleteDeathTime(objectId), 120000);
+ }
+
+ private class DeleteDeathTime implements Runnable
+ {
+ int id;
+ public DeleteDeathTime(int objectId)
+ {
+ id = objectId;
+ }
+
+ @Override
+ public void run()
+ {
+ _lastDeathTimes.remove(id);
+ }
+ }
+
+ /**
+ * Check if current kill should be counted as non-feeded.
+ * @param attacker Attacker character
+ * @param target Target character
+ * @return True if kill is non-feeded.
+ */
+ public final boolean check(Creature attacker, Creature target)
+ {
+ if (!Config.ANTIFEED_ENABLE)
+ {
+ return true;
+ }
+
+ if (target == null)
+ {
+ return false;
+ }
+
+ final Player targetPlayer = target.getActingPlayer();
+ if (targetPlayer == null)
+ {
+ return false;
+ }
+
+ if ((Config.ANTIFEED_INTERVAL > 0) && _lastDeathTimes.containsKey(targetPlayer.getObjectId()))
+ {
+ if ((System.currentTimeMillis() - _lastDeathTimes.get(targetPlayer.getObjectId())) < Config.ANTIFEED_INTERVAL)
+ {
+ return false;
+ }
+ }
+
+ if (Config.ANTIFEED_DUALBOX && (attacker != null))
+ {
+ final Player attackerPlayer = attacker.getActingPlayer();
+ if (attackerPlayer == null)
+ {
+ return false;
+ }
+
+ final L2GameClient targetClient = targetPlayer.getClient();
+ final L2GameClient attackerClient = attackerPlayer.getClient();
+ if ((targetClient == null) || (attackerClient == null) || targetClient.isDetached() || attackerClient.isDetached())
+ {
+ return !Config.ANTIFEED_DISCONNECTED_AS_DUALBOX;
+ }
+
+ return !targetClient.getConnection().getInetAddress().equals(attackerClient.getConnection().getInetAddress());
+ }
+
+ return true;
+ }
+
+ /**
+ * Clears all timestamps
+ */
+ public final void clear()
+ {
+ _lastDeathTimes.clear();
+ }
+
+ /**
+ * Register new event for dualbox check. Should be called only once.
+ * @param eventId
+ */
+ public final void registerEvent(int eventId)
+ {
+ _eventIPs.putIfAbsent(eventId, new ConcurrentHashMap<Integer, AtomicInteger>());
+ }
+
+ /**
+ * Decreasing number of active connection from player's IP address
+ * @param eventId
+ * @param player
+ * @return true if success and false if any problem detected.
+ */
+ public final boolean removePlayer(int eventId, Player player)
+ {
+ return removeClient(eventId, player.getClient());
+ }
+
+ /**
+ * Decreasing number of active connection from player's IP address
+ * @param eventId
+ * @param client
+ * @return true if success and false if any problem detected.
+ */
+ public final boolean removeClient(int eventId, L2GameClient client)
+ {
+ if (client == null)
+ {
+ return false; // unable to determine IP address
+ }
+
+ final Map<Integer, AtomicInteger> event = _eventIPs.get(eventId);
+ if (event == null)
+ {
+ return false; // no such event registered
+ }
+
+ final Integer addrHash = Integer.valueOf(client.getConnection().getInetAddress().hashCode());
+
+ return event.computeIfPresent(addrHash, (k, v) ->
+ {
+ if ((v == null) || (v.decrementAndGet() == 0))
+ {
+ return null;
+ }
+ return v;
+ }) != null;
+ }
+
+ /**
+ * Remove player connection IP address from all registered events lists.
+ * @param client
+ */
+ public final void onDisconnect(L2GameClient client)
+ {
+ if (client == null)
+ {
+ return;
+ }
+
+ _eventIPs.forEach((k, v) ->
+ {
+ removeClient(k, client);
+ });
+ }
+
+ /**
+ * Clear all entries for this eventId.
+ * @param eventId
+ */
+ public final void clear(int eventId)
+ {
+ final Map<Integer, AtomicInteger> event = _eventIPs.get(eventId);
+ if (event != null)
+ {
+ event.clear();
+ }
+ }
+
+ public static final AntiFeedManager getInstance()
+ {
+ return SingletonHolder._instance;
+ }
+
+ private static class SingletonHolder
+ {
+ protected static final AntiFeedManager _instance = new AntiFeedManager();
+ }
+}
\ No newline at end of file
Index: java/net/sf/l2j/gameserver/model/actor/instance/Player.java
===================================================================
--- java/net/sf/l2j/gameserver/model/actor/instance/Player.java (revision 16)
+++ java/net/sf/l2j/gameserver/model/actor/instance/Player.java (working copy)
@@ -24,9 +24,11 @@
import erengine.ErPlayerBonuses;
import erengine.ErUtils;
+
import net.sf.l2j.commons.concurrent.ThreadPool;
import net.sf.l2j.commons.math.MathUtil;
import net.sf.l2j.commons.random.Rnd;
+
import museum.MuseumPlayer;
import net.sf.l2j.Config;
@@ -50,6 +52,7 @@
import net.sf.l2j.gameserver.handler.IItemHandler;
import net.sf.l2j.gameserver.handler.ItemHandler;
import net.sf.l2j.gameserver.handler.admincommandhandlers.AdminEditChar;
+import net.sf.l2j.gameserver.instancemanager.AntiFeedManager;
import net.sf.l2j.gameserver.instancemanager.CastleManager;
import net.sf.l2j.gameserver.instancemanager.CoupleManager;
import net.sf.l2j.gameserver.instancemanager.CursedWeaponsManager;
@@ -246,6 +249,7 @@
import net.sf.l2j.gameserver.templates.skills.L2EffectType;
import net.sf.l2j.gameserver.templates.skills.L2SkillType;
import net.sf.l2j.gameserver.util.Broadcast;
+
import vote.VotingPlayer;
/**
@@ -3964,7 +3964,8 @@
{
// PK Points are increased only if you kill a player.
//erlandys museum
- if (target instanceof Player) {
+ if (target instanceof Player && AntiFeedManager.getInstance().check(this, target))
+ {
setPkKills(getPkKills() + 1);
//erlandys museum
((Player) target).getMuseumPlayer().addData("pk_defeats", 1);
@@ -3721,12 +3725,15 @@
// if clans got mutual war, then use the reputation calcul
if (_clan.isAtWarWith(pk.getClanId()) && pk.getClan().isAtWarWith(_clan.getClanId()))
{
- // when your reputation score is 0 or below, the other clan cannot acquire any reputation points
- if (getClan().getReputationScore() > 0)
- pk.getClan().addReputationScore(1);
- // when the opposing sides reputation score is 0 or below, your clans reputation score doesn't decrease
- if (pk.getClan().getReputationScore() > 0)
- _clan.takeReputationScore(1);
+ if (AntiFeedManager.getInstance().check(killer, this))
+ {
+ // when your reputation score is 0 or below, the other clan cannot acquire any reputation points
+ if (getClan().getReputationScore() > 0)
+ pk.getClan().addReputationScore(1);
+ // when the opposing sides reputation score is 0 or below, your clans reputation score doesn't decrease
+ if (pk.getClan().getReputationScore() > 0)
+ _clan.takeReputationScore(1);
+ }
}
}
}
Index: config/players.properties
===================================================================
--- config/players.properties (revision 12)
+++ config/players.properties (working copy)
@@ -284,4 +284,23 @@
# When a player dies, is removed from instance after a fixed period of time.
# Time in seconds.
# Default: 60
-EjectDeadPlayerTime = 60
\ No newline at end of file
+EjectDeadPlayerTime = 60
+
+# ================================================================
+# Anti feed protection
+# ================================================================
+
+# This option will enable antifeed for pvp/pk/clanrep points
+AntiFeedEnable = True
+
+# If set to True, kills from dualbox will not increase pvp/pk points
+# and clan reputation will not be transferred
+AntiFeedDualbox = False
+
+# If set to True, server will count disconnected (unable to determine ip address)
+# as dualbox
+AntiFeedDisconnectedAsDualbox = False
+
+# If character died faster than timeout - pvp/pk points for killer will not increase
+# and clan reputation will not be transferred
+AntiFeedInterval = 120
\ No newline at end of file
3 answers to this question
Recommended Posts