Jump to content

Recommended Posts

Posted

Hello. So today I will share couple my new things. First will be Voiced Command handlers in Bypass

-> Code <-

Usage:

bypass -h .voicedCommand

Second share will be Dress Me command.

-> Code <-

With this command you can change Your clothes, don't touching stats.

There are 3 commands:

.dressme - will open Html, where you will see all information about Dress Me.

.dressmetarget - will copy targets items.

.dressmestate - will change your state (you can turn on or turn off your Visual Armors).

shot00017w.jpg

shot00018hw.jpg

shot00019xr.jpg

shot00020xa.jpg

In the bottom of the HTML you see 5 weapons.

You can take 5 types of weapons for Visual type:

Swords (1 hand sword, 1 hand blunt, dagger and so on)

Bows (bow, crossbow)

Pole (only poles)

Duals (fists, dual daggers, dual weapons and so on)

Big Swords (2 hand sword, 2 hand blunt and ancient sword)

If you have that type texture, you will see that item Visual type, if for example You have only Sword type in that case, when you put for example Bow, you will see your equiped bow, not visual type.

Second revision will have items choosing by yourself and configurations.

I already started to work on second revision and here is the photo:

shot00021y.jpg

If someone have any ideas how to mark equipped weapon (in html) or want to try to show html for choosing item (becouse for now I don't have it) or have any good ideas, you are welcome to write it here, I will be waiting.

P.s. Credits: Erlandys!

P.s.s. Sorry for bad english and mistakes, I was in hurry, when I will have time I will rework this topic to look better. :)

Posted

[LT] Gal galetum padeti? butu labai malonu:)

Skype: lineage.forever

vardas: L2F

Well try to implement it into some pack and if something goes wrong write in forum, I will help :)

Posted

OMG Tnx!!!...

 

Tested in Freya and error in L2PcInstance.java

 

+
+   private void restoreVisualArmors()
+   {
+      try [color=red]([/color]Connection con = L2DatabaseFactory.getInstance().getConnection();
+         PreparedStatement statement = con.prepareStatement("SELECT * FROM character_visual_armors WHERE charId=?"[color=red]))[/color]
+      {
+         statement.setInt(1, getObjectId());
+         try (ResultSet rset = statement.executeQuery())
+         {
+            if (rset.next())
+            {
+               isUsingVisualArmors(rset.getBoolean("isUsingVisual"));
+               setVisualArmor(VisualArmors.Armor, rset.getInt("armor"));
+               setVisualArmor(VisualArmors.Legs, rset.getInt("leggings"));
+               setVisualArmor(VisualArmors.Feet, rset.getInt("feet"));
+               setVisualArmor(VisualArmors.Gloves, rset.getInt("gloves"));
+               setVisualArmor(VisualArmors.LHand, rset.getInt("lHand"));
+               setVisualArmor(VisualArmors.Sword, rset.getInt("sword"));
+               setVisualArmor(VisualArmors.Bow, rset.getInt("bow"));
+               setVisualArmor(VisualArmors.Pole, rset.getInt("pole"));
+               setVisualArmor(VisualArmors.Dual, rset.getInt("dualWeapons"));
+               setVisualArmor(VisualArmors.BigSword, rset.getInt("bigSword"));
+            }
+         }
+      }
+      catch (Exception e)
+      {
+         _log.log(Level.WARNING, "Could not restore " + getObjectId() + " visual armors data " + e.getMessage(), e);
+      }
+   }
+   
+   private boolean checkIfExist()
+   {
+      try[color=red] ([/color]Connection con = L2DatabaseFactory.getInstance().getConnection();
+         PreparedStatement statement = con.prepareStatement("SELECT charId FROM character_visual_armors WHERE charId=?"[color=red]))[/color]
+      {
+         statement.setInt(1, getObjectId());
+         try (ResultSet rset = statement.executeQuery()) {
+            if (rset.next())
+               return true;
+         }
+      }
+      catch (Exception e)
+      {
+         _log.log(Level.WARNING, "Could not restore " + getObjectId() + " visual armors data " + e.getMessage(), e);
+      }
+      return false;
+   }
+   
+   private void storeVisualArmors()

And in which place is error?

  • 2 weeks later...
Posted

Sorry for tooking so long, here is the update for L2PcInstance -> Code <-

  • 1 month later...
Posted

Hmm...... well i can't believe it's all your code... some of it maybe but not all of it.... i have to say i see major similarity with issle's Visual Armor...

Posted

Hmm...... well i can't believe it's all your code... some of it maybe but not all of it.... i have to say i see major similarity with issle's Visual Armor...

Well if you want you can don't believe, it's your choice. If you see similarity in NpcInfo packet, then IT must be similarity, I can't make smth major different just sending same packet... I made all code by myself.

Works for Freya / H5 newest...  ;D

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

    • buenas no puedo poner el server On para que entren mis amigos   LoginServer # ================================================= # Settings authorization server # ================================================= # Host and port for client connections LoginserverHostname = 127.0.0.1 LoginserverPort = 2106 # Host and port for game servers LoginHost = 192.168.100.25 ( mi Ip interna) LoginPort = 9014     GameServer   # =============================== # Network Configuration Server  # # =============================== # IP which Bind Game server, * - all possible GameserverHostname = * GameserverPort = 7777 # This is transmitted to the clients connecting from an external network, so it has to be a public IP or resolvable hostname ExternalHostname = 186.158.144.71 ( Ip externa ovbio) # This is transmitted to the client from the same network, so it has to be a local IP or resolvable host name InternalHostname = 192.168.100.25 # AdvIpSystem Make more GameServerIDs. Every Ip should be Protected by a DDoS Guard. # Your Server will have Success with this system Online. AdvIPSystem = False # Address \ port LS LoginPort = 9014 LoginHost = 192.168.100.25 LoginUseCrypt = true # How to request ID of LS RequestServerID = 4 # Permission to take a different id, if requested busy AcceptAlternateID = False     en que estaria fallando ?    
    • mporeis na valeis l2jaCis i kapoio etimo project  free sources gia aCis edw https://acis.i-live.eu/index.php?topic=1974.0 server install ktl edw https://acis.i-live.eu/index.php?topic=10190.0 an dn vgaleis akrh steile mou discord margazeas2
    • Hello! I am new to l2 server creation and i need your help please!!! I want to make my own l2 interlude c6 server with custom thing in it.  I need help with where to start. What source pack to pick to start and what to do. Please if you can help me i would appreciate it very much !!!
    • Need Discord with rare badge? VISIT US AND SHOP WITH US! NEW STOCK   Aged, Early Supporter Discord Accounts I sell HQ Aged and Early, Discord Accounts that are inactive and not flagged by discord at cheap prices   If you want to contact me, you can add me on discord: worldcoldwar Features: Format - age : email : pass : token Not flagged and undetected by discord HQ % With OGE Emails, password etc can be changed Unverified Early Supporter 24M Boost Badge HypeSquad Events Early Verified Bot Developer Early Supporters SHOP LINK: disvault1.mypaylix.gg/ For PayPal payments, please open a ticket. If you experience any problems with cryptocurrency payments, please open a ticket as well.
  • 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..