Jump to content

Recommended Posts

Posted
Index: /trunk/L2Jdash_Core/java/config/customs/l2jdash.ini

===================================================================

--- /trunk/L2Jdash_Core/java/config/customs/l2jdash.ini (revision 42)

+++ /trunk/L2Jdash_Core/java/config/customs/l2jdash.ini (revision 43)

@@ -86,4 +86,21 @@

# Factor weight limit for players

WeightLimit = 1

+

+##############################################

+#          Clan Full Comand                #

+##############################################

+

+# Enable and Disable Command //clanfull

+EnableClanSystem = True

+

+# List of Skills reward for clan usage //clanfull

+# Format : skillid,skilllvl;skillid2,skilllvl2;....skillidn,skilllvln

+ClanSkills = 370,3;371,3;372,3;373,3;374,3;375,3;376,3;377,3;378,3;379,3;380,3;381,3;382,3;383,3;384,3;385,3;386,3;387,3;388,3;389,3;390,3;391,3;

+

+# LvL Clan Reward Usage //clanfull

+ClanSetLevel = 8

+

+# Quantity Reputation Points Reward for usage //clanfull

+ReputationScore = 10000

 

#--------------------------------------------- #

Index: /trunk/L2Jdash_Core/java/net/sf/l2j/Config.java

===================================================================

--- /trunk/L2Jdash_Core/java/net/sf/l2j/Config.java    (revision 41)

+++ /trunk/L2Jdash_Core/java/net/sf/l2j/Config.java    (revision 43)

@@ -499,4 +499,8 @@

    public static boolean ALLOWFISHING;

    public static boolean ALLOW_MANOR;

+    public static boolean ENABLE_CLAN_SYSTEM;

+    public static Map CLAN_SKILLS;

+    public static byte CLAN_LEVEL;

+    public static int REPUTATION_QUANTITY;

    public static boolean JAIL_IS_PVP;

    public static boolean JAIL_DISABLE_CHAT;

@@ -1477,4 +1481,33 @@

                    ABORT_RR  = l2ddtSettings.getProperty("AbortRestart", "L2jBlack");

                ONLINE_PLAYERS_AT_STARTUP = Boolean.parseBoolean(l2ddtSettings.getProperty("ShowOnlinePlayers", "true"));

+                ENABLE_CLAN_SYSTEM = Boolean.parseBoolean(l2ddtSettings.getProperty("EnableClanSystem", "True"));

+                if(ENABLE_CLAN_SYSTEM)

+                {

+                    String AioSkillsSplit[] = l2ddtSettings.getProperty("ClanSkills", "").split(";");

+                    CLAN_SKILLS = new FastMap(AioSkillsSplit.length);

+                    String arr$[] = AioSkillsSplit;

+                    int len$ = arr$.length;

+                    for(int i$ = 0; i$ < len$; i$++)

+                    {

+                        String skill = arr$[i$];

+                        String skillSplit[] = skill.split(",");

+                        if(skillSplit.length != 2)

+                        {

+                            System.out.println((new StringBuilder()).append("[Clan System L2JDash]: invalid config property in L2JDash.ini -> ClanSkills \"").append(skill).append("\"").toString());

+                            continue;

+                        }

+                        try

+                        {

+                            CLAN_SKILLS.put(Integer.valueOf(Integer.parseInt(skillSplit[0])), Integer.valueOf(Integer.parseInt(skillSplit[1])));

+                            continue;

+                        }

+                        catch(NumberFormatException nfe) { }

+                        if(!skill.equals(""))

+                            System.out.println((new StringBuilder()).append("[Clan System L2JDash]: invalid config property in L2JDash.ini -> ClanSkills \"").append(skillSplit[0]).append("\"").append(skillSplit[1]).toString());

+                    }

+

+                }

+                CLAN_LEVEL = Byte.parseByte(l2ddtSettings.getProperty("ClanSetLevel", "8"));

+                REPUTATION_QUANTITY = Integer.parseInt(l2ddtSettings.getProperty("ReputationScore", "10000"));

                INVUL_NPC_LIST = new FastList<Integer>();

                            String t = l2ddtSettings.getProperty("InvulNpcList", "30001-32132,35092-35103,35142-35146,35176-35187,35218-35232,35261-35278,35308-35319,35352-35367,35382-35407,35417-35427,35433-35469,35497-35513,35544-35587,35600-35617,35623-35628,35638-35640,35644,35645,50007,70010,99999");

Index: /trunk/L2Jdash_Core/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java

===================================================================

--- /trunk/L2Jdash_Core/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java      (revision 35)

+++ /trunk/L2Jdash_Core/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java      (revision 43)

@@ -10935,6 +10935,25 @@

                return _vip_endTime;

        }

-

-    //Suporte All Npc Buffer (Heall) !

+   

+      public void ClanSkills()

+    {

+        for(Iterator i$ = Config.CLAN_SKILLS.keySet().iterator(); i$.hasNext(); broadcastUserInfo())

+        {

+            Integer skillid = (Integer)i$.next();

+            int skilllvl = ((Integer)Config.CLAN_SKILLS.get(skillid)).intValue();

+            L2Skill skill = SkillTable.getInstance().getInfo(skillid.intValue(), skilllvl);

+            if(skill != null)

+                addSkill(skill, true);

+            getClan().addNewSkill(skill);

+            sendSkillList();

+        }

+

+        L2Clan clan = getClan();

+        clan.setReputationScore(clan.getReputationScore() + Config.REPUTATION_QUANTITY, true);

+        sendMessage((new StringBuilder()).append("Admin give to you ").append(Config.REPUTATION_QUANTITY).append(" Reputation Points.").toString());

+        sendMessage("GM give to you all Clan Skills");

+    }

+

+      //Suporte All Npc Buffer (Heall) !

        public void restoreHP()

        {

Index: /trunk/L2Jdash_Core/java/net/sf/l2j/gameserver/handler/AdminCommandHandler.java

===================================================================

--- /trunk/L2Jdash_Core/java/net/sf/l2j/gameserver/handler/AdminCommandHandler.java    (revision 2)

+++ /trunk/L2Jdash_Core/java/net/sf/l2j/gameserver/handler/AdminCommandHandler.java    (revision 43)

@@ -35,4 +35,5 @@

import net.sf.l2j.gameserver.handler.admincommandhandlers.AdminCache;

import net.sf.l2j.gameserver.handler.admincommandhandlers.AdminChangeAccessLevel;

+import net.sf.l2j.gameserver.handler.admincommandhandlers.AdminClanFull;

import net.sf.l2j.gameserver.handler.admincommandhandlers.AdminCreateItem;

import net.sf.l2j.gameserver.handler.admincommandhandlers.AdminCTFEngine;

@@ -106,4 +107,5 @@

                registerAdminCommandHandler(new AdminVip());

                registerAdminCommandHandler(new AdminAio());

+        registerAdminCommandHandler(new AdminClanFull());

                registerAdminCommandHandler(new AdminInvul());

                registerAdminCommandHandler(new AdminDelete());

Index: /trunk/L2Jdash_Core/java/net/sf/l2j/gameserver/handler/admincommandhandlers/AdminClanFull.java

===================================================================

--- /trunk/L2Jdash_Core/java/net/sf/l2j/gameserver/handler/admincommandhandlers/AdminClanFull.java      (revision 43)

+++ /trunk/L2Jdash_Core/java/net/sf/l2j/gameserver/handler/admincommandhandlers/AdminClanFull.java      (revision 43)

@@ -0,0 +1,74 @@

+// Decompiled by DJ v3.11.11.95 Copyright 2009 Atanas Neshkov  Date: 26/7/2011 21:21:40

+// Home Page: http://members.fortunecity.com/neshkov/dj.html  http://www.neshkov.com/dj.html - Check often for new version!

+// Decompiler options: packimports(3)

+// Source File Name:  AdminClanFull.java

+

+package net.sf.l2j.gameserver.handler.admincommandhandlers;

+

+import net.sf.l2j.Config;

+import net.sf.l2j.gameserver.handler.IAdminCommandHandler;

+import net.sf.l2j.gameserver.model.L2Clan;

+import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;

+import net.sf.l2j.gameserver.network.SystemMessageId;

+import net.sf.l2j.gameserver.network.serverpackets.EtcStatusUpdate;

+import net.sf.l2j.gameserver.network.serverpackets.SystemMessage;

+

+/**

+ * @author Tayran.Cannabis

+ * @Contato : Tayran@l2jcannabis.com

+ *

+ */

+public class AdminClanFull

+    implements IAdminCommandHandler

+{

+

+    public AdminClanFull()

+    {

+    }

+

+    public boolean useAdminCommand(String command, L2PcInstance activeChar)

+    {

+        if(command.startsWith("admin_clanfull"))

+        {

+            try

+            {

+                adminAddClanSkill(activeChar);

+                activeChar.sendMessage("Sucessfull usage //clanfull !");

+            }

+            catch(Exception e)

+            {

+                activeChar.sendMessage("Usage: //clanfull");

+            }

+        }

+        return true;

+    }

+

+    private void adminAddClanSkill(L2PcInstance activeChar)

+    {

+        net.sf.l2j.gameserver.model.L2Object target = activeChar.getTarget();

+        if(target == null)

+            target = activeChar;

+        L2PcInstance player = null;

+        if(target instanceof L2PcInstance)

+        {

+            player = (L2PcInstance)target;

+        } else

+        {

+            activeChar.sendPacket(new SystemMessage(SystemMessageId.INCORRECT_TARGET));

+            return;

+        }

+            if(!player.isClanLeader())

+            {

+                player.sendPacket((new SystemMessage(SystemMessageId.S1_IS_NOT_A_CLAN_LEADER)).addString(player.getName()));

+                return false;

+            }

+        player.getClan().changeLevel(Config.CLAN_LEVEL);

+        player.ClanSkills();

+        player.sendPacket(new EtcStatusUpdate(activeChar));

+    }

+

+    public String[] getAdminCommandList()

+    {

+        return ADMIN_COMMANDS;

+    }

+

+    private static final String ADMIN_COMMANDS[] = {

+        "admin_clanfull"

+    };

+

+}

 

INSERT INTO `admin_command_access_rights` VALUES ('admin_clanfull', '1');

 

command-privileges.ini

 

#----------------------

#- Clan Full

#----------------------

admin_clanfull = 1

 

credits: Tayran.Cannabis

  • 3 weeks later...
  • 3 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Update: Advanced Rate Limiting Rate limiting is now applied to: Login attempts Account registration Password recovery Email confirmation resends WhatsApp verification Checkout access The system maintains independent counters by IP address and user identity, helping prevent traditional brute-force attacks as well as distributed credential-stuffing attempts using multiple proxies. Brute-Force and Credential-Stuffing Protection Protection is not limited to the visitor's IP address. The system also tracks attempts associated with the account, username, or email address, reducing the effectiveness of attacks performed through rotating IP addresses, proxies, or VPN services. Global HTTP Security Headers Security headers are applied across the entire website: X-Frame-Options X-Content-Type-Options Referrer-Policy HTTP Strict Transport Security These headers help protect the website against clickjacking, MIME-type confusion, insecure referrer exposure, and HTTP downgrade attempts. Secure Error Handling Internal exceptions are recorded in protected security logs while visitors receive sanitized error messages. This prevents the accidental exposure of: Internal file paths Database information SQL errors Server configuration Application stack traces Private Storage Exposure Monitoring The system automatically checks whether the private storage directory is publicly accessible in production. If exposure is detected, a security warning is recorded for the administrator without interrupting the website. This directory may contain licensing information, rate-limit records, and security logs and must never be publicly accessible. OAuth Request Protection Google and Facebook authentication flows use cryptographically random state values stored in the user's session. Returned state values are validated using constant-time comparison, helping prevent OAuth request forgery and unauthorized account-linking attacks. Telegram Authentication Validation Telegram login information is protected through: HMAC signature validation Constant-time hash comparison Authentication timestamp verification Expired-login rejection Secure Verification Tokens Email, password recovery, and WhatsApp verification systems include: Cryptographically secure random tokens Hashed WhatsApp verification codes Automatic expiration Limited verification attempts Resend cooldowns One-time token invalidation Account Activation Protection When email or WhatsApp verification is required, the game account remains restricted until all required verification steps are completed. Unverified users cannot bypass the confirmation process through standard or social login. Secure Upload Processing Administrative image uploads include: Real MIME-type inspection Image-content validation File-size limits Extension allowlists Server-generated random filenames Rejection of invalid or disguised files Original user-provided filenames are never used as the final stored filename. Path Traversal Protection Theme and template identifiers are restricted to validated slugs and must exist in the internal list of allowed themes. This prevents directory traversal and unauthorized local-file access through manipulated template names. Atomic Ticket Transfer Protection Ticket transfers use transactional and durable delivery processing. The balance is conditionally debited, the delivery is recorded before communication with the game database, and failed deliveries remain pending for safe reprocessing. This helps prevent: Free-item delivery Inconsistent balances Duplicate delivery Partial transaction failures Lost transfer records Concurrent Balance Protection Administrative balance adjustments use database transactions and row-level locking. This prevents simultaneous balance operations from overwriting each other or creating inconsistent account balances. Secure Redirect Handling Redirect values are sanitized against header injection, and external redirects are restricted to HTTPS destinations. Password Security Improvements The website uses modern password hashing for player-panel accounts and bcrypt with a configurable cost for supported game-server account systems. Compatibility is included for game-server implementations requiring the $2a$ bcrypt prefix. Duplicate Payment Prevention Built-in protections include: Idempotency control Transaction reference validation Payment status verification Unique external payment references Database transactions and rollback Durable payment history Completed-order verification These protections prevent: Double credits Repeated processing Duplicate payment callbacks Incomplete financial operations Signed Payment Callback Protection Payment callbacks are protected through: HMAC-SHA256 authentication Constant-time signature comparison Signed callback timestamps Callback freshness validation Shared callback secrets This helps prevent forged payment notifications, callback manipulation, and replay attacks. SQL Injection Protection The database layer uses: PDO Prepared statements Parameter binding Controlled internal allowlists for dynamic identifiers User-controlled values are not directly concatenated into SQL queries. XSS Protection Output and form data are protected through: HTML escaping Attribute escaping Input filtering HttpOnly session cookies MIME-sniffing protection Frame embedding restrictions These measures reduce the risk of Cross-Site Scripting, malicious HTML injection, session theft, and clickjacking. CSRF Protection Sensitive forms and administrative operations use session-based CSRF tokens. Requests without a valid token are rejected, helping prevent unauthorized actions performed through malicious external websites. Secure Session Protection The session system includes: HttpOnly cookies Secure cookie support SameSite restrictions Session ID regeneration Authentication state validation Session timeout controls These protections reduce the risks of session fixation, session theft, and unauthorized account reuse. reCAPTCHA Protection Google reCAPTCHA may be enabled on sensitive public forms to reduce: Automated account registrations Spam submissions Bot login attempts Automated password recovery abuse Confirmation Resend Limits Email and WhatsApp confirmation resends are protected through: Cooldown periods Rate limiting Expiring verification codes Attempt counters This prevents verification-message flooding and excessive external API usage. Licensing and Anti-Cloning Protection The website includes centralized licensing controls with: License-key validation Domain binding Signed license responses Cached license validation Temporary offline grace period Circuit-breaker protection Unauthorized-domain rejection These measures help prevent unauthorized installation, cloning, and redistribution of the system.
    • Tool that allows you to download the Lineage 2 game client directly from the official publisher CDNs. It fetches the CDN's file list and downloads every patch file, decompresses it (LZMA / Zip) and writes the finished client to disk — and can resume or repair an existing installation instead of starting over. It runs several client downloads at once through a batch queue, so you can prepare multiple regions or versions in a single session.   Supported: NCSoft CDNs (TW / KR / JP / NA) and  4game CDNs(RU / EU)   Download: https://drive.google.com/file/d/11SDcNASqO2GKOBT79LFu7mqvSRSJZvBS
    • https://l2avokado.com/ Hello everyone,   After some time of development, we've decided to open L2Avokado to the public in its current development stage. We're looking for players who enjoy Interlude and would like to help shape the project before its official release.   This isn't a "launch" announcement. Instead, we're inviting the community to log in, explore the server, test the systems we've built, and provide honest feedback. Whether it's bug reports, balance suggestions, progression ideas, or quality-of-life improvements, we'd love to hear them.   Our goal has always been to create an Interlude server that feels familiar while offering a fresh progression experience. We've intentionally avoided custom weapons, armor, and client modifications. Instead, we've focused on redesigning progression through reworked hunting grounds, quests, crafting, and gameplay systems while remaining compatible with a clean Interlude client.   At this stage, the core progression path has been implemented, including the main hunting grounds, quests, custom systems, and events. However, as the project is still under active development, there will inevitably be bugs, balance issues, and areas that require further polishing.   This is exactly why we'd like your help.   We're looking for players who are willing to: Test gameplay and progression. Report bugs and exploits. Suggest balance improvements. Share ideas for new features or quality-of-life changes. Help us build a server that the community genuinely enjoys playing.   The Client and System downloads are already available on our website, so you can jump straight into the game. We're also working on a dedicated launcher that will simplify installation and future updates.   If you're interested in helping develop a unique Interlude project and want your feedback to genuinely influence the direction of the server, we'd love to have you with us.   We look forward to seeing you in-game and hearing your thoughts on Discord. https://l2avokado.com/
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..