Jump to content

Code Clan Full


Recommended Posts

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

Link to comment
Share on other sites

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchihamkt.mysellix.io/ Join our server for more products : https://discord.gg/hood-services https://campsite.bio/utchihaamkt  
    • Server Rates: » Xp 500x. » Sp 500x. » Aden 500x. » Drop 1x. » PartyXp 2x. » PartySp 2x. » Starting character level -61. Enchant rates: » Safe enchant +4. » Blessed and simple scrolls max enchant (+16). » Crystal scrolls max enchant (+20). » Simple enchant scrolls chance – 65%. » Blessed enchant scrolls chance – 100%. » Crystal enchant scrolls chance – 50% Augmentations: » Mid life stone skill chance – 5%. » High life stone skill chance – 10%. » Top life stone skill chance – 20%. » Augments 1+1 Unique features: » Main town – Giran » Automatic-Manual Potions. » Working 2 castle sieges. (Giran-Aden) » SPS cancel lasts 10 seconds and than buffs come back. » Stackable scrolls, lifestones, book of giants. » Unique pvp zone » More then 11 active raid bosses. » Wedding system. » Unique farming areas. » Npc skill enchanter. » Full npc buffer with auto buff. » Max count of buffs – 55. » Max subclasses – 4. » Free and no quest class change. » Free and no quest sub class. » Raid boss drop nobless item. » No weight limit. » Unique protection anti-hwy armor for archers/daggers etc. » Ingame password change. » Top pvp/pk/online ranks NPC. » Unique monsters & NPC. » Interlude retail skills. » Server up-time [24/7] [99]%. » Perfect class balance (all class can kill all class depending on players skill and setup knowledge,gear,augmentations). » Announcements on double kills triple kills etc. » Announcements on Grand Boss death , with the name of the killer as well as clan name of the player. » Information Npc in game with all servers infromations. Custom server gear : 1). Titanium Armor Lv.1 2). Epic Armor Lv.2 3). Epic Weapons-Kamikaze-Black S grade (Same Stats) 4). Demonic-Angelic Wings-Baium Hair-Custom Accessories (SameStats) 5). Custom Fighter/Mage tattoo Lv1-Lv2-Lv3 6). Shirt (STR,CON,INT +1) 7). Custom Shields Server Commands: .tvtjoin .tvtleave – Join or leave tvt event. .ctfjoin .ctfleave – Join or leave ctf event. .dmjoin .dmleave – Join of leave dm event. .online – current online players count. .repair – repairs stuck character in world. .menu – opens online menu panel. .exit – PVP zone exit in case you are bullied. .changepassword - Opens online menu then u can change ur password in game. .farm - Enable/disable autofarm Event system: » TVT event » CTF event » DM event » Tournament Event » Party Zone » Unique event shop. Olympiad game: » Retail olympiad game. » Competition period [1] week. » Olympiad start time [18:00] end [00:00] GMT+2. » New Heroes every Sunday.
    • Tomorrow grand opening lests go 🙂 
    • New season of Warfire X150 has been postponed to September 28th.
  • Topics

×
×
  • Create New...