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

    • ============================================================               CLExt Classic Interlude: v7.80 ============================================================   01. Fixed ValidateLocation handling and player/client position synchronization. 02. Added protection against invalid coordinates and characters falling under the map. 03. Improved XY/Z position and heading validation. 04. Fixed MoveToLocation and MoveToPawn packet conversion and target validation. 05. Fixed TargetSelected, TargetUnselected and MyTargetSelected packet handling. 06. Improved GeoData Z-location handling and disabled unsafe PathNode modifications. 07. Added ExUserInfoInventoryWeight support. 08. Fixed inventory weight and maximum load synchronization. 09. Fixed incorrect 0% inventory weight after character login. 10. Added automatic inventory weight updates after EnterWorld and inventory changes. 11. Added inventory weight packet spam protection and safe weight caching. 12. Fixed BuyList and SellList inventory, slot and weight synchronization. 13. Improved NPC target and Buy/Sell packet validation. 14. Reworked mail attachment inventory and weight validation. 15. Added all-or-nothing mail attachment receiving and safe retry handling. 16. Fixed stackable mail attachment validation and INT_MAX overflow protection. 17. Improved COD Adena validation and post-mail inventory weight refresh. 18. Improved Warehouse Deposit and Withdraw validation. 19. Added protection against malformed warehouse item counts, DBIDs and amounts. 20. Added warehouse INT_MAX, CItem and pSID validation. 21. Improved warehouse anti-dupe protection. 22. Reworked the HTML Cache system for improved stability and memory usage. 23. Added lazy HTML loading instead of loading ~20,000 files during startup. 24. Fixed HTML Cache startup crashes with large HTML collections. 25. Added thread-safe HTML Cache access and Clear/Reload support. 26. Added bad allocation, invalid HTML and oversized HTML protection. 27. Reduced HTML Cache RAM usage, startup allocations and disk I/O. 28. Added HTML Caching ON/OFF with live HTM loading support. 29. Fixed ToggleCachingHook and added VS2005-compatible live HTML handling. 30. Fixed ShortcutInit processing and skill synchronization order. 31. Improved shortcut item validation, augmentation handling and va_list safety. 32. Added LiveMode Ability Point system. 33. Added inventory-item-based Ability Points with configurable pointItemId. 34. Preserved the original level-based Ability Point system as fallback. 35. Fixed incorrect Ability Point display and inventory synchronization. 36. Improved Ability skill learning and point validation. 37. Improved OfflineShopRestore loading and FakePC/DBID handling. 38. Added safer OfflineShopRestore socket limits and batch processing. 39. Prevented thousands of restore sockets from loading simultaneously. 40. Added delayed, non-blocking OfflineShopRestore after server startup. 41. Improved OnEnterWorld initialization order and stability. 42. Improved inventory weight, SkillList and acquired-skill initialization after login. 43. Added VIP integration to the EnterWorld process. 44. Added safe UserExtData initialization without modifying the native User structure. 45. Improved duplicate Bronch Jewel and equipped-slot protection. 46. Improved Bracelet, Belt, Bronch and general UseItem validation. 47. Improved general packet, UserSocket, User, pSD and Creature validation. 48. Added safer INT32/INT64 packet handling and malformed-packet protection. 49. Improved L2Server startup memory usage and lazy resource loading. 50. Reduced unnecessary startup allocations. 51. Improved account-only KeyEngine authentication and remote account validation. 52. Removed account expiration-time requirements. 53. Added updater/restart design without requiring CLExtUpdate.exe. 54. Improved CLIEXT HWID, shared-memory and client/server version validation. 55. Improved ReadFile/WriteFile hooks and MemoryProtector handling. 56. Added UoPilot and Extreme Injector detection handling. 57. Reworked VIP point loading, saving and database synchronization. 58. Fixed VIP Level 0 initialization and first VIP activation. 59. Fixed vip.htm activation after login and from party-shared points. 60. Fixed VIP points being incorrectly reset before successful activation. 61. Improved VIP progression from Level 1 through Level 7. 62. Added proper VIP Level 7 MAX/DONE behavior with no Level 8 requirement. 63. Disabled further VIP point collection after reaching maximum level. 64. Reworked VIP BonusInfo/ReceiveVipInfo packet synchronization. 65. Fixed VIP tier, points, duration and level requirement packet fields. 66. Added VIP duration, tier, point and User validation protections. 67. Added safer 64-bit VIP EXP and party EXP calculations. 68. Preserved subclass maximum EXP protection. 69. Improved ItemDataEx validation during character loading. 70. Fixed augmentation loss during login, relog and server restart. 71. Added safe restoration of augmentation IDs directly from the database. 72. Added CItem, pSID, pExItem and User validation during ItemDataEx loading. 73. Improved Shadow Item mana and item lifetime loading. 74. Preserved item protection timeout data during character loading. 75. Added augmentation loading diagnostics and protected valid augmentation data. 76. Preserved database value 0 for genuinely non-augmented items. 77. Added RaidBoss Status synchronization with the World Map. 78. Fixed alive/dead RaidBoss status updates after spawn and death. 79. Added RaidBossStatus as the source of truth for RaidBoss map packets. 80. Fixed RaidBoss map status synchronization after server/database loading.
    • 🚀 L2AQUILA — GRAND OPENING TOMORROW! Lineage 2 Gracia Final — Like L2 Pride, but fresh. The server you've been waiting for opens tomorrow, Saturday 19/09, 16:00 (Greek time) — No Wipe · 24/7 · Anti-DDoS. ⚔️ What's inside: • EXP 9300x · SP 3000x · Adena 5500x · High drop • Max enchant +20 · Safe +3 · 24 buffs / 3 debuffs • 20 free Custom Coins for every new player on day one! • Custom farming zones (Cave of Trials, Cemetery, Ruins of Despair + more) • PvP Events · Olympiads · Offline Trading · Weddings · Balanced classes • Starter + Dynasty shops in every town — playable from minute one 📥 Download: Client + Patch at https://l2aquila.com/index.html 💬 Discord: discord.gg/5ZyBRvG4k · Facebook: facebook.com/l2aquila Be there at opening hour — bring your squad. See you at the Grand Opening! 🔥
  • 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..