Jump to content

StaticX

Members
  • Posts

    39
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by StaticX

  1. This is a sick share.

    Great and beautifull work.

    Thank you for sharing this beautiful piece of work with us.

    I would like to try adapting this to Interlude aCis latest rev...

    But as far as i know interlude cb is quite different from h5.

    Hope ill manage to do it.

    Thanks in advance!

    ------------

    Edit: Sadly i could not pm you, seems your inbox is full... :-/

  2. On 7/6/2017 at 6:33 PM, 'Baggos' said:

     

    Which acis revision you use?

     

    For latest rev must be like this:

    
    // leave party
    if (playerInstance.getParty() != null)
    playerInstance.getParty().removePartyMember(playerInstance, MessageType.EXPELLED);

    also 

    import net.sf.l2j.gameserver.model.group.Party.MessageType;

    has to be imported on TvTEvent.java in order this to work..

     

    Btw Baggos, maybe you can share with the community an updated version?

    im trying to resolve issues with this code

    but somehow i get this..

     

    Also this after a couple of time.. 

     

    WARNING: Monster: callSkill() failed on skill id: 4065
    java.lang.ClassCastException: net.sf.l2j.gameserver.model.actor.instance.Monster cannot be cast to net.sf.l2j.gameserver.model.actor.instance.Player
     

    that refers to Heal.java as  @Reborn12 said.

     

    EDIT:  Well i finaly managed to fix the whole event... Now its fully working on Acis rev 374.

  3. Well after installing the code of the 1rst post, i would like to report these:

     

    1. Players if register from voice command or npc cannot unregister (registration cannot be canceled in anyway).

    2. Hiting the unregister button from npc gives rewards

    3. PvP kills wont update the event engine, which means during the event the engine always goes to a tie if  TvTEventOnKill = title /  TvTEventOnKill = pmtitle works ok.

    4. When event is on a tie and  one kill happens event finishes and kills are shown correctly , rewards also given. 

    5. If a player dies last when event finishes on a tie the event instantly teleports players back to town which leads to dead player respawn delay summon him back on the event area.

     

    Ill post more as i test it.. if any fix is available or even your new Event Engine is ready, share it if its gonna be for free!

     

    Cheers!

     

    Post Update

    ------------------------

    I remove the code from your 1rst post and now im using this code that you posted:

    https://pastebin.com/xP7NFJv5

     

     

    I removed :

    EventTeam.java

    			// Fireworks for rewarded player
              - player.broadcastPacket(new MagicSkillUse(player, player, 2025, 1, 1, 1));  
               player.addItem("Event Reward", itemId, count, null, true);

    because it was giving critical error to client of the winner team.

     

     

    I also added these:

     

    EventCommons.java

      public void removePlayer(Player player)
       {
           if (_players.containsKey(player))
               _players.remove(player);
          
           player.setTitle(player.getOriginalTitle());
           player.getAppearance().setVisibleTitle(player.getOriginalTitle());
           player.broadcastTitleInfo();
           player.clearPoints();
          + removeRegisteredPlayers(TvTEvent.class);
          + player.setTeam(0);
       }

    Because after event finish the Duel Aura was stuck to players and also they couldnt restart because restriction was still applied.

    I really dont have an idea if its the right code to add there but it worked for me.

    • Thanks 1
  4. That was perfect @melron it worked! There are also some differences between your pastebin file and Elfos pastebin file but i dont know if i should change your code or not... but it worked when i changed only the line you indicated. I really appreciate it!

    Everyone was like it was my fault and i was sure i did everything properly xD .

    Greetings everyone!

  5. I added the files by applying the patch as the .diff patch is posted on pastebin by the author.. no single error appeared in eclipse.

    Tho the problem still exists when i load the server. so its not my part for sure.. maybe you have time to look at the code and give a hand so we can reshare the working version for people that may need it :-)

     

    Thanks in advance

  6. Heya! Well i managed to compile w/o any problems but i get these errors when server loads...

     

    Dec 14, 2018 4:15:37 PM net.sf.l2j.donation.DonationStats parseDocument
    SEVERE: Could not parse donatePackets.xml
    java.lang.ClassNotFoundException: net.sf.l2j.donation.packages.Bronze
    	at java.net.URLClassLoader.findClass(Unknown Source)
    	at java.lang.ClassLoader.loadClass(Unknown Source)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    	at java.lang.ClassLoader.loadClass(Unknown Source)
    	at java.lang.Class.forName0(Native Method)
    	at java.lang.Class.forName(Unknown Source)
    	at net.sf.l2j.donation.DonationStats.parseDocument(DonationStats.java:80)
    	at net.sf.l2j.commons.data.xml.XMLDocument.loadDocument(XMLDocument.java:60)
    	at net.sf.l2j.commons.data.xml.XMLDocument.loadDocument(XMLDocument.java:36)
    	at net.sf.l2j.donation.DonationStats.load(DonationStats.java:28)
    	at net.sf.l2j.donation.DonationStats.<init>(DonationStats.java:22)
    	at net.sf.l2j.donation.DonationStats$SingletonHolder.<clinit>(DonationStats.java:98)
    	at net.sf.l2j.donation.DonationStats.getInstance(DonationStats.java:93)
    	at net.sf.l2j.gameserver.GameServer.<init>(GameServer.java:288)
    	at net.sf.l2j.gameserver.GameServer.main(GameServer.java:120)
    
    Dec 14, 2018 4:15:37 PM net.sf.l2j.donation.DonationStats parseDocument
    SEVERE: Could not parse donatePackets.xml
    java.lang.ClassNotFoundException: net.sf.l2j.donation.packages.Silver
    	at java.net.URLClassLoader.findClass(Unknown Source)
    	at java.lang.ClassLoader.loadClass(Unknown Source)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    	at java.lang.ClassLoader.loadClass(Unknown Source)
    	at java.lang.Class.forName0(Native Method)
    	at java.lang.Class.forName(Unknown Source)
    	at net.sf.l2j.donation.DonationStats.parseDocument(DonationStats.java:80)
    	at net.sf.l2j.commons.data.xml.XMLDocument.loadDocument(XMLDocument.java:60)
    	at net.sf.l2j.commons.data.xml.XMLDocument.loadDocument(XMLDocument.java:36)
    	at net.sf.l2j.donation.DonationStats.load(DonationStats.java:28)
    	at net.sf.l2j.donation.DonationStats.<init>(DonationStats.java:22)
    	at net.sf.l2j.donation.DonationStats$SingletonHolder.<clinit>(DonationStats.java:98)
    	at net.sf.l2j.donation.DonationStats.getInstance(DonationStats.java:93)
    	at net.sf.l2j.gameserver.GameServer.<init>(GameServer.java:288)
    	at net.sf.l2j.gameserver.GameServer.main(GameServer.java:120)
    
    Dec 14, 2018 4:15:37 PM net.sf.l2j.donation.DonationStats parseDocument
    SEVERE: Could not parse donatePackets.xml
    java.lang.ClassNotFoundException: net.sf.l2j.donation.packages.Gold
    	at java.net.URLClassLoader.findClass(Unknown Source)
    	at java.lang.ClassLoader.loadClass(Unknown Source)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    	at java.lang.ClassLoader.loadClass(Unknown Source)
    	at java.lang.Class.forName0(Native Method)
    	at java.lang.Class.forName(Unknown Source)
    	at net.sf.l2j.donation.DonationStats.parseDocument(DonationStats.java:80)
    	at net.sf.l2j.commons.data.xml.XMLDocument.loadDocument(XMLDocument.java:60)
    	at net.sf.l2j.commons.data.xml.XMLDocument.loadDocument(XMLDocument.java:36)
    	at net.sf.l2j.donation.DonationStats.load(DonationStats.java:28)
    	at net.sf.l2j.donation.DonationStats.<init>(DonationStats.java:22)
    	at net.sf.l2j.donation.DonationStats$SingletonHolder.<clinit>(DonationStats.java:98)
    	at net.sf.l2j.donation.DonationStats.getInstance(DonationStats.java:93)
    	at net.sf.l2j.gameserver.GameServer.<init>(GameServer.java:288)
    	at net.sf.l2j.gameserver.GameServer.main(GameServer.java:120)
    
    Dec 14, 2018 4:15:37 PM net.sf.l2j.donation.DonationStats parseDocument
    SEVERE: Could not parse donatePackets.xml
    java.lang.ClassNotFoundException: net.sf.l2j.donation.packages.Platinum
    	at java.net.URLClassLoader.findClass(Unknown Source)
    	at java.lang.ClassLoader.loadClass(Unknown Source)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    	at java.lang.ClassLoader.loadClass(Unknown Source)
    	at java.lang.Class.forName0(Native Method)
    	at java.lang.Class.forName(Unknown Source)
    	at net.sf.l2j.donation.DonationStats.parseDocument(DonationStats.java:80)
    	at net.sf.l2j.commons.data.xml.XMLDocument.loadDocument(XMLDocument.java:60)
    	at net.sf.l2j.commons.data.xml.XMLDocument.loadDocument(XMLDocument.java:36)
    	at net.sf.l2j.donation.DonationStats.load(DonationStats.java:28)
    	at net.sf.l2j.donation.DonationStats.<init>(DonationStats.java:22)
    	at net.sf.l2j.donation.DonationStats$SingletonHolder.<clinit>(DonationStats.java:98)
    	at net.sf.l2j.donation.DonationStats.getInstance(DonationStats.java:93)
    	at net.sf.l2j.gameserver.GameServer.<init>(GameServer.java:288)
    	at net.sf.l2j.gameserver.GameServer.main(GameServer.java:120)
    
    Dec 14, 2018 4:15:37 PM net.sf.l2j.donation.DonationStats parseDocument
    SEVERE: Could not parse donatePackets.xml
    java.lang.ClassNotFoundException: net.sf.l2j.donation.packages.Diamond
    	at java.net.URLClassLoader.findClass(Unknown Source)
    	at java.lang.ClassLoader.loadClass(Unknown Source)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    	at java.lang.ClassLoader.loadClass(Unknown Source)
    	at java.lang.Class.forName0(Native Method)
    	at java.lang.Class.forName(Unknown Source)
    	at net.sf.l2j.donation.DonationStats.parseDocument(DonationStats.java:80)
    	at net.sf.l2j.commons.data.xml.XMLDocument.loadDocument(XMLDocument.java:60)
    	at net.sf.l2j.commons.data.xml.XMLDocument.loadDocument(XMLDocument.java:36)
    	at net.sf.l2j.donation.DonationStats.load(DonationStats.java:28)
    	at net.sf.l2j.donation.DonationStats.<init>(DonationStats.java:22)
    	at net.sf.l2j.donation.DonationStats$SingletonHolder.<clinit>(DonationStats.java:98)
    	at net.sf.l2j.donation.DonationStats.getInstance(DonationStats.java:93)
    	at net.sf.l2j.gameserver.GameServer.<init>(GameServer.java:288)
    	at net.sf.l2j.gameserver.GameServer.main(GameServer.java:120)
    
    Dec 14, 2018 4:15:37 PM net.sf.l2j.donation.DonationStats parseDocument
    SEVERE: Could not parse donatePackets.xml
    java.lang.ClassNotFoundException: net.sf.l2j.donation.packages.Master
    	at java.net.URLClassLoader.findClass(Unknown Source)
    	at java.lang.ClassLoader.loadClass(Unknown Source)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    	at java.lang.ClassLoader.loadClass(Unknown Source)
    	at java.lang.Class.forName0(Native Method)
    	at java.lang.Class.forName(Unknown Source)
    	at net.sf.l2j.donation.DonationStats.parseDocument(DonationStats.java:80)
    	at net.sf.l2j.commons.data.xml.XMLDocument.loadDocument(XMLDocument.java:60)
    	at net.sf.l2j.commons.data.xml.XMLDocument.loadDocument(XMLDocument.java:36)
    	at net.sf.l2j.donation.DonationStats.load(DonationStats.java:28)
    	at net.sf.l2j.donation.DonationStats.<init>(DonationStats.java:22)
    	at net.sf.l2j.donation.DonationStats$SingletonHolder.<clinit>(DonationStats.java:98)
    	at net.sf.l2j.donation.DonationStats.getInstance(DonationStats.java:93)
    	at net.sf.l2j.gameserver.GameServer.<init>(GameServer.java:288)
    	at net.sf.l2j.gameserver.GameServer.main(GameServer.java:120)
    
    Dec 14, 2018 4:15:37 PM net.sf.l2j.donation.DonationStats parseDocument
    SEVERE: Could not parse donatePackets.xml
    java.lang.ClassNotFoundException: net.sf.l2j.donation.packages.Grandmaster
    	at java.net.URLClassLoader.findClass(Unknown Source)
    	at java.lang.ClassLoader.loadClass(Unknown Source)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    	at java.lang.ClassLoader.loadClass(Unknown Source)
    	at java.lang.Class.forName0(Native Method)
    	at java.lang.Class.forName(Unknown Source)
    	at net.sf.l2j.donation.DonationStats.parseDocument(DonationStats.java:80)
    	at net.sf.l2j.commons.data.xml.XMLDocument.loadDocument(XMLDocument.java:60)
    	at net.sf.l2j.commons.data.xml.XMLDocument.loadDocument(XMLDocument.java:36)
    	at net.sf.l2j.donation.DonationStats.load(DonationStats.java:28)
    	at net.sf.l2j.donation.DonationStats.<init>(DonationStats.java:22)
    	at net.sf.l2j.donation.DonationStats$SingletonHolder.<clinit>(DonationStats.java:98)
    	at net.sf.l2j.donation.DonationStats.getInstance(DonationStats.java:93)
    	at net.sf.l2j.gameserver.GameServer.<init>(GameServer.java:288)
    	at net.sf.l2j.gameserver.GameServer.main(GameServer.java:120)
    

    If anyone has an idea about how to fix this please reply!

    Acis rev 374.

  7. Wtf  WW3 will start from a single post lul.. Anyway.. Im glad that i still see some people with pure intentions. Back in the past we were sharing even our mothers pants in order to see the community move forward. Now we claim our mothers pants back because we forgot to give credits to our mother for wearing them 1rst.... Kinda dissapointing..

     

    Cheers

  8. Well that might be my problem... i should just read posts and keep my mouth shut. People hunger for credits and to be recognised " Pr0 coder" "Great shares" " Imba developer".

    This shit is not for me , i constantly feed poor homeless persons in my neighbourhood but never gave them t-shirts with my logo lol.

     

    Anyway , i never had any intentions to steal someones cookie..

     

    With regards,

    a motherfcker from the chrono-capsule.

  9. Wtf is wrong with you people.. i just shared a fix on official l2jacis files , i didnt even wrote the word "I". Tryskel came up with a fix and i was happy to share it for people that may wanted a fix. 

    DO F..ING NOT hunger for reputation on your lifes guys.. Life is simple and people should help each other w/o caring if they will be recognised.

    Yeah im really old in here , like @2007 but i never lied about anything regarding any shares or trying to leach anyones work..

     

    So plz gimme a break and even remove my account.. I really dont give a penny.

    Cheers

  10. Hello people!

    Heres the code for automatic starting items equip on character 1rst login.

     

    Into java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java

    Find these lines:

    if (item.isEquipable())
                {
                    if (player.getActiveWeaponItem() == null || !(item.getItem().getType2() != Item.TYPE2_WEAPON))
                        player.getInventory().equipItemAndRecord(item);
                }

    and change them like this: 

    if (item.isEquipable())
                {
                    if (item.isWeapon())
                    {
                        if (player.getActiveWeaponItem() == null || !(item.getItem().getType2() != Item.TYPE2_WEAPON))
                            player.getInventory().equipItemAndRecord(item);
                    }
                    else
                        player.getInventory().equipItemAndRecord(item);
                }

     

     

    The starting items are selected by the .xml files for player classes.

     

    Hope thats is usefull for someone.

     

    Cheers!

     

    Credits: @Tryskell

    • Thanks 1
    • Upvote 1
  11. Replace this part of the code :

        private void ReloadData()
            {
            try (Connection con = L2DatabaseFactory.getInstance().getConnection())
                {
                PreparedStatement statement = con.prepareStatement("SELECT char_name, pvpkills, accesslevel, online FROM characters WHERE accesslevel = '0' ORDER BY pvpkills DESC, char_name ASC LIMIT 10");
                ResultSet result = statement.executeQuery();
                
                //refreshing top pvp list
                int i = 0; //index of array
                
                while (result.next())
                    {
                    topPvPList[i] = new PlayerInfo(i+1,result.getString("char_name"),result.getInt("pvpkills"),0,0,result.getBoolean("online"));
                    i++;
                    }
                        
                //refreshing top pk list
                statement = con.prepareStatement("SELECT char_name, pkkills, accesslevel, online FROM characters WHERE accesslevel = '0' ORDER BY pkkills DESC, char_name ASC LIMIT 10");
                result = statement.executeQuery();
                
                i = 0; //index of array
                while (result.next())
                    {
                    topPkList[i] = new PlayerInfo(i+1,result.getString("char_name"),0,result.getInt("pkkills"),0,result.getBoolean("online"));
                    i++;
                    }
                
                //refreshing top online list
                statement = con.prepareStatement("SELECT char_name, onlinetime, accesslevel, online FROM characters WHERE accesslevel = '0' ORDER BY onlinetime DESC, char_name ASC LIMIT 10");
                result = statement.executeQuery();
                
                i = 0; //index of array
    

    and it will exclude entries with accesslevel >0

×
×
  • Create New...