Hello I am adapting AntiFeed Manager for now but I have these errors. how would it be in place of these imports?
import gnu.trove.map.hash.TIntObjectHashMap;
import gnu.trove.procedure.TObjectProcedure;
private Map<Integer,Long> _lastDeathTimes;private TIntObjectHashMap<Map<Integer, Connections>> _eventIPs;
/**
* If number of all simultaneous connections from player's IP address lower than max
* then increment connection count and return true.
* Returns false if number of all simultaneous connections from player's IP address
* higher than max.
* @param eventId
* @param player
* @param max
* @return
*/
public final boolean tryAddPlayer(int eventId, L2PcInstance player, int max)
{
return tryAddClient(eventId, player.getClient(), max);
}
/**
* If number of all simultaneous connections from player's IP address lower than max
* then increment connection count and return true.
* Returns false if number of all simultaneous connections from player's IP address
* higher than max.
* @param eventId
* @param player
* @param max
* @return
*/
public final boolean tryAddClient(int eventId, L2GameClient client, int max)
{
if (client == null)
return false; // unable to determine IP address
final Map<Integer, Connections> event = _eventIPs.get(eventId);
if (event == null)
return false; // no such event registered
final Integer addrHash = Integer.valueOf(client.getConnectionAddress().hashCode());
int limit = Config.DUALBOX_CHECK_WHITELIST.get(addrHash);
limit = limit < 0 ? Integer.MAX_VALUE : limit + max;
Connections conns;
synchronized (event)
{
conns = event.get(addrHash);
if (conns == null)
{
conns = new Connections();
event.put(addrHash, conns);
}
}
return conns.testAndIncrement(limit);
}
GRAND OPENING 19.04.2024
OPEN BETA TEST 15.04.2024 - 18.04.2024
RATES
XP/SP - x3
Adena Drop Chance - x2
Adena Drop Amount - x1
Drop Chance - x2
Drop Amount - x1
Spoil Chance - x2
Spoil Amount - x1
Raidboss Drop Chance - x5
Raidboss Drop Amount - x1
Quest Chance - x1
Quest Reward - x1
FEATURES
1. Added NPC Buffer with basic buffs (duration 60m).
2. Added Mana Drugs and Greater Mana Drugs, which work like Healing Potions.
3. Added skills "Summon Mana Drug" & "Summon Greater Mana Drug" to Elven and Shillen Elders.
4. Basic Mana Drugs can be bought in Grocery Store.
5. Blade Dancer and Sword Singer have both, Dances and Songs from Second Profession.
6. No need duals for dances from Second Profession
7. Increase Weight Limit +30%
8. Increase Inventory Slots from 80 to 120
9. Set Raidboss's respawn 24h +/- 30 minutes.
10. Remake monsters spawns.
11. Olympiad Period - 2 weeks.
12. Change Queen Ant, Core, Orfen, Zaken lvl to 75.
13. Increase Epic Jewelery Bonus.
-Ring of Core +2 INT/WIT/MEN
-Earring of Orfen +2 STR/DEX/CON
website - https://www.primeinterlude.com
facebook - https://www.facebook.com/profile.php?id=61550083156269
discord - https://discord.gg/2T7nTTz2Gt
Promo Video
Question
l2jkain
Hello I am adapting AntiFeed Manager for now but I have these errors. how would it be in place of these imports?
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.