Jump to content

En3rgik

Members
  • Posts

    216
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by En3rgik

  1. No one will give you ready code.

    
    // Source File Name:   CommunityBoard.java
    
    package com.l2jfrozen.gameserver.communitybbs;
    
    import com.l2jfrozen.Config;
    import com.l2jfrozen.gameserver.communitybbs.Manager.BaseBBSManager;
    import com.l2jfrozen.gameserver.communitybbs.Manager.BuffBBSManager;
    import com.l2jfrozen.gameserver.communitybbs.Manager.ClanBBSManager;
    import com.l2jfrozen.gameserver.communitybbs.Manager.FriendsBBSManager;
    import com.l2jfrozen.gameserver.communitybbs.Manager.MailBBSManager;
    import com.l2jfrozen.gameserver.communitybbs.Manager.PostBBSManager;
    import com.l2jfrozen.gameserver.communitybbs.Manager.RegionBBSManager;
    import com.l2jfrozen.gameserver.communitybbs.Manager.RepairBBSManager;
    import com.l2jfrozen.gameserver.communitybbs.Manager.TeleBBSManager;
    import com.l2jfrozen.gameserver.communitybbs.Manager.TopBBSManager;
    import com.l2jfrozen.gameserver.communitybbs.Manager.TopicBBSManager;
    import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
    import com.l2jfrozen.gameserver.network.L2GameClient;
    import com.l2jfrozen.gameserver.network.SystemMessageId;
    
    public class CommunityBoard
    {
        private static class SingletonHolder
        {
    
            protected static final CommunityBoard _instance = new CommunityBoard();
    
    
            private SingletonHolder()
            {
            }
        }
    
    
        protected CommunityBoard()
        {
        }
    
        public static CommunityBoard getInstance()
        {
            return SingletonHolder._instance;
        }
    
        public void handleCommands(L2GameClient client, String command)
        {
            L2PcInstance activeChar = client.getActiveChar();
            if(activeChar == null)
                return;
            if(!Config.ENABLE_COMMUNITY_BOARD)
            {
                activeChar.sendPacket(SystemMessageId.CB_OFFLINE);
                return;
            }
            if(command.startsWith("_bbshome"))
                TopBBSManager.getInstance().parseCmd(command, activeChar);
            else
            if(command.startsWith("_bbsloc"))
                RegionBBSManager.getInstance().parseCmd(command, activeChar);
            else
            if(command.startsWith("_bbsclan"))
                ClanBBSManager.getInstance().parseCmd(command, activeChar);
            else
            if(command.startsWith("_bbsmemo"))
                TopicBBSManager.getInstance().parseCmd(command, activeChar);
            else
            if(command.startsWith("_maillist_0_1_0_"))
                MailBBSManager.getInstance().parseCmd(command, activeChar);
            else
            if(command.startsWith("_friend") || command.startsWith("_block"))
                FriendsBBSManager.getInstance().parseCmd(command, activeChar);
            else
            if(command.startsWith("_bbstopics"))
                TopicBBSManager.getInstance().parseCmd(command, activeChar);
            else
            if(command.startsWith("_bbsposts"))
                PostBBSManager.getInstance().parseCmd(command, activeChar);
            else
            if(command.startsWith("_bbstop"))
                TopBBSManager.getInstance().parseCmd(command, activeChar);
            else
            if(command.startsWith("_bbstele"))
                TeleBBSManager.getInstance().parseCmd(command, activeChar);
            else
            if(command.startsWith("_bbsbuff"))
                BuffBBSManager.getInstance().parseCmd(command, activeChar);
            else
            if(command.startsWith("_bbsrepair"))
                RepairBBSManager.getInstance().parseCmd(command, activeChar);
            else
                BaseBBSManager.separateAndSend((new StringBuilder()).append("<html><body><br><br><center>The command: ").append(command).append(" isn't implemented.</center></body></html>").toString(), activeChar);
        }
    
        public void handleWriteCommands(L2GameClient client, String url, String arg1, String arg2, String arg3, String arg4, String arg5)
        {
            L2PcInstance activeChar = client.getActiveChar();
            if(activeChar == null)
                return;
            if(!Config.ENABLE_COMMUNITY_BOARD)
            {
                activeChar.sendPacket(SystemMessageId.CB_OFFLINE);
                return;
            }
            if(url.equals("Topic"))
                TopicBBSManager.getInstance().parseWrite(arg1, arg2, arg3, arg4, arg5, activeChar);
            else
            if(url.equals("Post"))
                PostBBSManager.getInstance().parseWrite(arg1, arg2, arg3, arg4, arg5, activeChar);
            else
            if(url.equals("Region"))
                RegionBBSManager.getInstance().parseWrite(arg1, arg2, arg3, arg4, arg5, activeChar);
            else
            if(url.equals("Notice"))
                ClanBBSManager.getInstance().parseWrite(arg1, arg2, arg3, arg4, arg5, activeChar);
            else
            if(url.equals("Mail"))
                MailBBSManager.getInstance().parseWrite(arg1, arg2, arg3, arg4, arg5, activeChar);
            else
                BaseBBSManager.separateAndSend((new StringBuilder()).append("<html><body><br><br><center>The command: ").append(url).append(" isn't implemented.</center></body></html>").toString(), activeChar);
        }
    }
    
    
    
    // Source File Name:   CommunityBoard.java
    
    package com.l2jfrozen.gameserver.communitybbs;
    
    
    // Referenced classes of package com.l2jfrozen.gameserver.communitybbs:
    //            CommunityBoard
    
    private static class CommunityBoard$SingletonHolder
    {
    
        protected static final CommunityBoard _instance = new CommunityBoard();
    
    
        private CommunityBoard$SingletonHolder()
        {
        }
    }
    

    i have this code for Community Board but i dont know adapted  : https://mega.nz/#!QRwzXRYK

     

    Key:

    !9ymvkLtzucGflvi3uhD5FxW_SMupwV7UHSjUEDPS14g

    Mirror: http://www.megafileupload.com/k5cg/Community_Board_by____________For_Interlude.rar

  2. ENG:

     

    How can i create my personal Item " All in one Item " buffer & gmshop/seller  or my personal  Community  Shop & Buffer for interlude L2jfrozen i need info and ur help maxchaters  i dont want copy from another ppl.

     

    Thanks & sry for my bad english !

     

    RO: Salut 

    Pot sa si platesc prin paypal pentru a fi invatat si ajutat numai sa aveti rabdare cu mine  ms  . 

     

    Cum as putea crea si eu un ITEM care sa il aiba orice prieten care intra pe servar sa il aiba in inventar  "Pentru l2jfrozen si nu numai "  cu buffer si gmshop ecc. sau de preferat ar fi Community Board  tot cu buffer. gmshop, augment, info server  ecc... va rog frumos dati-mi si mie o mana de ajutor as doar sa le invat sa fac si nu sa copiez dupa alti.

     

    *sunt disponibil sa  folosesc si skype sau alte prog pentru mai multe info. 

     

    Multumesc

     

     

    Exemplu:

     

    Community Board : 

    https://www.youtube.com/watch?v=UshGItD0VUM

    40887741.jpg CommunityBoard_008.jpg

     

     

     

    Item GmShop Buffer ecc. :

     

    xXXHdCI.png Vik3Rzz.png  

     

     

     

  3. in 

     

    so what is this? ????

     

    B39nNVz.png

     

    you try to add the code and you got errors?

     

    and i ask you for what pack is the community board code of you have? no in what pack you want add

    man this my file fronzen,  you need adapt the code net.sf.l2j in l2jfrozen    and i dont know adapt  i dont have this experience for adapt 

     

     

     

    net.sf.l2j -  i found of another site and i need for my server ( l2jfrozen )

  4. I was searching on internet for erheia pack and found this pack and decide to share it,maybe some one will need it,it does work with latest erheia client

     

    Here is link for compiled pack with backup and with patched system,works on java 8

    https://mega.co.nz/#!Ux1GCRiD!ebB9YY6fvpjqalhAGghlz_H-R5uyZ8qOO2bTXJEA8Zo

    Here is Svn link

    http://svn.l2jfree.com/l2jtw_server/L2JTW_Server_Ertheia/

    http://svn.l2jfree.com/l2jtw_dp/L2JTW_DataPack_Ertheia/

     

    Some SS

    Shot00001-4.png

    Shot00003-1.png

     

     

    Link is Down ? 

    https://mega.co.nz/#!Ux1GCRiD!ebB9YY6fvpjqalhAGghlz_H-R5uyZ8qOO2bTXJEA8Zo
    
  5. 
    

    GameServer: Loading Scripts.

    Annotation processing got disabled, since it requires a 1.6 compliant JVM

    Annotation processing got disabled, since it requires a 1.6 compliant JVM

    Annotation processing got disabled, since it requires a 1.6 compliant JVM

    Annotation processing got disabled, since it requires a 1.6 compliant JVM

    Annotation processing got disabled, since it requires a 1.6 compliant JVM

    Annotation processing got disabled, since it requires a 1.6 compliant JVM

    Annotation processing got disabled, since it requires a 1.6 compliant JVM

    Annotation processing got disabled, since it requires a 1.6 compliant JVM

    Annotation processing got disabled, since it requires a 1.6 compliant JVM

    Annotation processing got disabled, since it requires a 1.6 compliant JVM

    Annotation processing got disabled, since it requires a 1.6 compliant JVM

    Annotation processing got disabled, since it requires a 1.6 compliant JVM

    Annotation processing got disabled, since it requires a 1.6 compliant JVM

    Annotation processing got disabled, since it requires a 1.6 compliant JVM

    Annotation processing got disabled, since it requires a 1.6 compliant JVM

    Annotation processing got disabled, since it requires a 1.6 compliant JVM

    Annotation processing got disabled, since it requires a 1.6 compliant JVM

    Annotation processing got disabled, since it requires a 1.6 compliant JVM

    Annotation processing got disabled, since it requires a 1.6 compliant JVM

    Annotation processing got disabled, since it requires a 1.6 compliant JVM

    Annotation processing got disabled, since it requires a 1.6 compliant JVM

    Annotation processing got disabled, since it requires a 1.6 compliant JVM

    Annotation processing got disabled, since it requires a 1.6 compliant JVM

    Annotation processing got disabled, since it requires a 1.6 compliant JVM

    Annotation processing got disabled, since it requires a 1.6 compliant JVM

    Annotation processing got disabled, since it requires a 1.6 compliant JVM

    Annotation processing got disabled, since it requires a 1.6 compliant JVM

    Annotation processing got disabled, since it requires a 1.6 compliant JVM

    Annotation processing got disabled, since it requires a 1.6 compliant JVM

    Annotation processing got disabled, since it requires a 1.6 compliant JVM

    ----------

    1. ERROR in \Orfen.java (at line 247)

    npc.broadcastPacket(new NpcSay(npc.getObjectId(),0,npc.getNpcId(),Text[R

    nd.get(4)].replace("PLAYERNAME",caster.getName().toString())));

    ^^^^^^

    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    The type java.lang.CharSequence cannot be resolved. It is indirectly referenced

    from required .class files

    ----------

    2. ERROR in \Orfen.java (at line 247)

    npc.broadcastPacket(new NpcSay(npc.getObjectId(),0,npc.getNpcId(),Text[R

    nd.get(4)].replace("PLAYERNAME",caster.getName().toString())));

     

    ^^^^^^^

    The method replace(char, char) in the type String is not applicable for the argu

    ments (String, String)

    ----------

    3. ERROR in \Orfen.java (at line 296)

    npc.broadcastPacket(new NpcSay(npc.getObjectId(),0,npcId,Text[Rnd.get(3)

    ].replace("PLAYERNAME",attacker.getName().toString())));

     

    ^^^^^^^

    The method replace(char, char) in the type String is not applicable for the argu

    ments (String, String)

    ----------

    3 problems (3 errors)The type java.lang.CharSequence cannot be resolved. It is i

    ndirectly referenced from required .class files

    The method replace(char, char) in the type java.lang.String is not applicable fo

    r the arguments (java.lang.String, java.lang.String)

    The method replace(char, char) in the type java.lang.String is not applicable fo

    r the arguments (java.lang.String, java.lang.String)

    Failed executing script: C:\L2JHellas\gameserver\data\scripts\ai\individual\Orfe

    n.java. See Orfen.java.error.log for details.

    Annotation processing got disabled, since it requires a 1.6 compliant JVM

    Annotation processing got disabled, since it requires a 1.6 compliant JVM

    Annotation processing got disabled, since it requires a 1.6 compliant JVM

    Annotation processing got disabled, since it requires a 1.6 compliant JVM

    GameServer: The Cache of scripts is disabled.

  6. Buildfile: D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\L2JHellasC\build.xml
         [echo] Building L2j Hellas.
    Clean:
       [delete] Deleting directory D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\build\Core
    Building Dirs:
        [mkdir] Created dir: D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\build\Core
        [mkdir] Created dir: D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\build\Core\classes
        [mkdir] Created dir: D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\build\Core\dist
        [mkdir] Created dir: D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\build\Core\dist\doc
        [mkdir] Created dir: D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\build\Core\dist\doc\3rdPartyLicenses
        [mkdir] Created dir: D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\build\Core\dist\login
        [mkdir] Created dir: D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\build\Core\dist\gameserver
        [mkdir] Created dir: D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\build\Core\dist\libs
    Version:
         [echo] version = 454
    Compile:
         [echo] Compiling L2J Hellas.
        [javac] Compiling 1448 source files to D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\build\Core\classes
        [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
        [javac] D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\L2JHellasC\java\com\l2jhellas\logs\FileLogFormatter.java:32: warning: '_' used as an identifier
        [javac] 	private static final String _ = "\t";
        [javac] 	                            ^
        [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
        [javac] D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\L2JHellasC\java\com\l2jhellas\logs\FileLogFormatter.java:41: warning: '_' used as an identifier
        [javac] 		output.append(_);
        [javac] 		              ^
        [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
        [javac] D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\L2JHellasC\java\com\l2jhellas\logs\FileLogFormatter.java:43: warning: '_' used as an identifier
        [javac] 		output.append(_);
        [javac] 		              ^
        [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
        [javac] D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\L2JHellasC\java\com\l2jhellas\logs\FileLogFormatter.java:47: warning: '_' used as an identifier
        [javac] 			output.append(_);
        [javac] 			              ^
        [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
        [javac] D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\L2JHellasC\java\com\l2jhellas\logs\FileLogFormatter.java:49: warning: '_' used as an identifier
        [javac] 			output.append(_);
        [javac] 			              ^
        [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
        [javac] D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\L2JHellasC\java\com\l2jhellas\logs\FileLogFormatter.java:52: warning: '_' used as an identifier
        [javac] 		output.append(_);
        [javac] 		              ^
        [javac]   (use of '_' as an identifier might not be supported in releases after Java SE 8)
        [javac] 7 warnings
    Jar:
          [jar] Building jar: D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\build\Core\l2jhellas.jar
         [copy] Copying 1 file to D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\build\Core\dist\libs
    dist:
    Build:
         [echo] Creating L2J Hellas Server:
         [copy] Copying 18 files to D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\build\Core\dist\libs
         [copy] Copying 3 files to D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\build\Core\dist\login
         [copy] Copying 1 file to D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\build\Core\dist\gameserver
         [copy] Copying 3 files to D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\build\Core\dist\doc
         [copy] Copying 9 files to D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\build\Core\dist\doc\3rdPartyLicenses
         [copy] Copying 1 file to D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\build\Core\dist\gameserver\config
         [copy] Copying 1 file to D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\build\Core\dist\login\config
         [copy] Copying 1 file to D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\build\Core\dist\gameserver\config\Admin
         [copy] Copying 8 files to D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\build\Core\dist\gameserver\config\Events
         [copy] Copying 13 files to D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\build\Core\dist\gameserver\config\Main
         [copy] Copying 8 files to D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\build\Core\dist\gameserver\config\Mods
         [copy] Copying 4 files to D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\build\Core\dist\gameserver\config\Network
         [copy] Copying 1 file to D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\build\Core\dist\gameserver\config\Network\IPConfig
         [copy] Copying 1 file to D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\build\Core\dist\gameserver\config\Olympiad
         [copy] Copying 4 files to D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\build\Core\dist\login\config\Network
         [copy] Copying 1 file to D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\build\Core\dist\login\config\Network\IPConfig
         [copy] Copying 4 files to D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\build\Core\dist\gameserver\config\Others
         [copy] Copying 3 files to D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\build\Core\dist\login\config\Others
          [zip] Building zip: D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\build\Core\L2J_Hellas_Core_454.zip
        [mkdir] Created dir: C:\L2JHellas
        [mkdir] Created dir: C:\L2JHellas\Backup
         [echo] Store L2jhellas.
        [unzip] Expanding: D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\build\Core\L2J_Hellas_Core_454.zip into C:\L2JHellas
         [echo] Backup L2jhellas.
         [copy] Copying 1 file to C:\L2JHellas\Backup
       [delete] Deleting directory D:\Line][age C6 Interlude Server + Client\Dev.Server\workspace\build\Core
         [echo] L2J Hellas Server version:454 stored in C:/L2JHellas.
         [echo] Please visit our forum http://l2jhellas.info/
         [echo] Owner Boorinio.
    BUILD SUCCESSFUL
    Total time: 27 seconds
    
×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock