Jump to content

Dressme Command + Vch In Bypass


Recommended Posts

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. :)

Link to comment
Share on other sites

[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 :)

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

  • 2 weeks later...
Link to comment
Share on other sites

  • 1 month later...

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

Link to comment
Share on other sites

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

    • Welcome to my store :  https://topestore.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 50.99 $ 2016 Discord Account : 10$ 2017 Discord Account :3.99 $ 2018 Discord Account : 3.50$ 2019 Discord Account : 2.70 $ 2020 Discord Account :1.50$ 2021 Discord Account :0.99$ 2022 Discord Account :0.70$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord : @ultrasstore11 Telegram : https://t.me/ultrastore1 Welcome to my store :  https://topestore.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 50.99 $ 2016 Discord Account : 10$ 2017 Discord Account :3.99 $ 2018 Discord Account : 3.50$ 2019 Discord Account : 2.70 $ 2020 Discord Account :1.50$ 2021 Discord Account :0.99$ 2022 Discord Account :0.70$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord : @ultrasstore11
    • L2 ArenaWar: Low Rate PvP Server with Free Buffs & Autofarm [PVP]⚔️ [Free]🆓 Classic Interlude with  3x XP rates! Free starter pack(no grade) to kickstart your adventure! Autofarm for convenient grinding! Free buffs to keep you fighting fit! (2 job buffs) No experience loss on death! (Except with Karma) Clear Karma system to keep things fair! ⚖️ Active community of 800-1k players! Join our Discord to learn more! >> Discord <<     Server website: https://l2arenawar.com/en/    
    • This is dedication! 2 years working on a problem. Congratulations!
    • You indeed have to save player position over Enterworld to properly clean it up later (if you don't, even trying to delete packet content would eventually keep it up), that's what we do with debug packet (which is a reusable Map of ExServerPrimitive packets) on aCis.   It doesn't solve the FPS stuttering - more you draw/delete lines, more your client becomes laggy. It's like if client wasn't deleting drawn points/lines properly, but instead simply hide them and redrawn content above.   If you got a solution, I would happy to integrate it.   You should check aCis#Player _debug packet integration, it allows very big amount of lines/points to be drawn, it is also reusable.   https://gitlab.com/Tryskell/acis_public/-/blob/master/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/Player.java?ref_type=heads https://gitlab.com/Tryskell/acis_public/-/blob/master/aCis_gameserver/java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java?ref_type=heads  
    • we sell website templates, make websites to order. Great selection at very good prices. My contacts discord : advert1231 telegram : https://t.me/ggwpins  
  • Topics

×
×
  • Create New...