Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.74 KB | None | 0 0
  1. diff --git a/l2junity-gameserver/src/main/java/org/l2junity/gameserver/model/itemcontainer/Inventory.java b/l2junity-gameserver/src/main/java/org/l2junity/gameserver/model/itemcontainer/Inventory.java
  2. index 08bcaf3..e668a68 100644
  3. --- a/l2junity-gameserver/src/main/java/org/l2junity/gameserver/model/itemcontainer/Inventory.java
  4. +++ b/l2junity-gameserver/src/main/java/org/l2junity/gameserver/model/itemcontainer/Inventory.java
  5. @@ -115,7 +115,12 @@
  6. public static final int PAPERDOLL_BROOCH_JEWEL4 = 29;
  7. public static final int PAPERDOLL_BROOCH_JEWEL5 = 30;
  8. public static final int PAPERDOLL_BROOCH_JEWEL6 = 31;
  9. - public static final int PAPERDOLL_TOTALSLOTS = 32;
  10. + public static final int PAPERDOLL_AGATHION1 = 32;
  11. + public static final int PAPERDOLL_AGATHION2 = 33;
  12. + public static final int PAPERDOLL_AGATHION3 = 34;
  13. + public static final int PAPERDOLL_AGATHION4 = 35;
  14. + public static final int PAPERDOLL_AGATHION5 = 36;
  15. + public static final int PAPERDOLL_TOTALSLOTS = 37;
  16.  
  17. // Speed percentage mods
  18. public static final double MAX_ARMOR_WEIGHT = 12000;
  19. diff --git a/l2junity-gameserver/src/main/java/org/l2junity/gameserver/model/itemcontainer/PcInventory.java b/l2junity-gameserver/src/main/java/org/l2junity/gameserver/model/itemcontainer/PcInventory.java
  20. index 4c1848c..c5752e7 100644
  21. --- a/l2junity-gameserver/src/main/java/org/l2junity/gameserver/model/itemcontainer/PcInventory.java
  22. +++ b/l2junity-gameserver/src/main/java/org/l2junity/gameserver/model/itemcontainer/PcInventory.java
  23. @@ -779,7 +779,7 @@
  24.  
  25. public static int[][] restoreVisibleInventory(int objectId)
  26. {
  27. - int[][] paperdoll = new int[33][4];
  28. + int[][] paperdoll = new int[38][4];
  29. try (Connection con = DatabaseFactory.getInstance().getConnection();
  30. PreparedStatement statement2 = con.prepareStatement("SELECT object_id,item_id,loc_data,enchant_level FROM items WHERE owner_id=? AND loc='PAPERDOLL'"))
  31. {
  32. diff --git a/l2junity-gameserver/src/main/java/org/l2junity/gameserver/network/client/send/IClientOutgoingPacket.java b/l2junity-gameserver/src/main/java/org/l2junity/gameserver/network/client/send/IClientOutgoingPacket.java
  33. index dd1d851..ef3111a 100644
  34. --- a/l2junity-gameserver/src/main/java/org/l2junity/gameserver/network/client/send/IClientOutgoingPacket.java
  35. +++ b/l2junity-gameserver/src/main/java/org/l2junity/gameserver/network/client/send/IClientOutgoingPacket.java
  36. @@ -68,7 +68,12 @@
  37. Inventory.PAPERDOLL_BROOCH_JEWEL3,
  38. Inventory.PAPERDOLL_BROOCH_JEWEL4,
  39. Inventory.PAPERDOLL_BROOCH_JEWEL5,
  40. - Inventory.PAPERDOLL_BROOCH_JEWEL6
  41. + Inventory.PAPERDOLL_BROOCH_JEWEL6,
  42. + Inventory.PAPERDOLL_AGATHION1,
  43. + Inventory.PAPERDOLL_AGATHION2,
  44. + Inventory.PAPERDOLL_AGATHION3,
  45. + Inventory.PAPERDOLL_AGATHION4,
  46. + Inventory.PAPERDOLL_AGATHION5
  47.  
  48. };
  49.  
  50. diff --git a/l2junity-gameserver/src/main/java/org/l2junity/gameserver/network/client/send/UserInfo.java b/l2junity-gameserver/src/main/java/org/l2junity/gameserver/network/client/send/UserInfo.java
  51. index dc7eecf..0e23699 100644
  52. --- a/l2junity-gameserver/src/main/java/org/l2junity/gameserver/network/client/send/UserInfo.java
  53. +++ b/l2junity-gameserver/src/main/java/org/l2junity/gameserver/network/client/send/UserInfo.java
  54. @@ -318,11 +318,13 @@
  55.  
  56. if (containsMask(UserInfoType.SLOTS))
  57. {
  58. - packet.writeH(9);
  59. + packet.writeH(11);
  60. packet.writeC(_activeChar.getInventory().getTalismanSlots()); // Confirmed
  61. packet.writeC(_activeChar.getInventory().getBroochJewelSlots()); // Confirmed
  62. packet.writeC(_activeChar.getTeam().getId()); // Confirmed
  63. packet.writeD(0x00); // Some kind of aura mask (1 = Red, 2 = White, 3 = White AND Red, there is higher values: 20, 50, 100 produces different aura) dotted / straight circle ring on the floor
  64. + packet.writeC(-1);
  65. + packet.writeC(-1);
  66. }
  67.  
  68. if (containsMask(UserInfoType.MOVEMENTS))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement