Tryskell

L2OFF autosoulshot behavior

Oct 23rd, 2011
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.59 KB | None | 0 0
  1. ### Eclipse Workspace Patch 1.0
  2. #P L2J_Core
  3. Index: java/com/l2jserver/gameserver/network/clientpackets/RequestAutoSoulShot.java
  4. ===================================================================
  5. --- java/com/l2jserver/gameserver/network/clientpackets/RequestAutoSoulShot.java    (revision 5036)
  6. +++ java/com/l2jserver/gameserver/network/clientpackets/RequestAutoSoulShot.java    (working copy)
  7. @@ -107,11 +107,13 @@
  8.                     }
  9.                     else
  10.                     {
  11. +                       activeChar.addAutoSoulShot(_itemId);
  12. +                       activeChar.sendPacket(new ExAutoSoulShot(_itemId, _type));
  13. +                      
  14.                         if (activeChar.getActiveWeaponItem() != activeChar.getFistsWeaponItem()
  15.                                 && item.getItem().getCrystalType() == activeChar.getActiveWeaponItem().getItemGradeSPlus())
  16.                         {
  17. -                           activeChar.addAutoSoulShot(_itemId);
  18. -                           activeChar.sendPacket(new ExAutoSoulShot(_itemId, _type));
  19. +                           activeChar.rechargeAutoSoulShot(true, true, false);
  20.                         }
  21.                         else
  22.                         {
  23. @@ -119,17 +121,12 @@
  24.                                 activeChar.sendPacket(SystemMessageId.SPIRITSHOTS_GRADE_MISMATCH);
  25.                             else
  26.                                 activeChar.sendPacket(SystemMessageId.SOULSHOTS_GRADE_MISMATCH);
  27. -                          
  28. -                           activeChar.addAutoSoulShot(_itemId);
  29. -                           activeChar.sendPacket(new ExAutoSoulShot(_itemId, _type));
  30.                         }
  31.                        
  32.                         // start the auto soulshot use
  33.                         SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.USE_OF_S1_WILL_BE_AUTO);
  34.                         sm.addItemName(item);// Update Message by rocknow
  35.                         activeChar.sendPacket(sm);
  36. -                      
  37. -                       activeChar.rechargeAutoSoulShot(true, true, false);
  38.                     }
  39.                 }
  40.             }
  41.  
  42.  
Advertisement
Add Comment
Please, Sign In to add comment