Changeset 2263

Show
Ignore:
Timestamp:
07/11/08 19:36:38 (3 months ago)
Author:
DrHouse
Message:

Juices handler. Thanks Z0mbie!

  • Haste Juice
  • Accuracy Juice
  • Critical Power Juice
  • Critical Attack Juice
  • Casting Speed Juice
  • Evasion Juice
  • Magic Power Juice
  • Power Juice
  • Speed Juice
  • Defense Juice
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/L2_GameServer/java/net/sf/l2j/gameserver/handler/itemhandlers/Potions.java

    r2233 r2263  
    8282                                8634, 8635, 8636, 8637, 8638, 8639, 
    8383                                // Endeavor Potion 
    84                                 733}; 
     84                                733, 
     85                                // Juices 
     86                                10260, 10261, 10262, 10263, 10264, 10265, 10266, 10267, 10268, 10269}; 
    8587 
    8688        public synchronized void useItem(L2PlayableInstance playable, L2ItemInstance item) 
     
    412414                                res = usePotion(activeChar, 2275, 1); 
    413415                                break; 
     416                         
     417                        // Juices 
     418                        // added by Z0mbie! 
     419                        case 10260: // Haste Juice,xml:2429 
     420                                res = usePotion(activeChar, 2429, 1); 
     421                                break; 
     422                        case 10261: // Accuracy Juice,xml:2430 
     423                                res = usePotion(activeChar, 2430, 1); 
     424                                break; 
     425                        case 10262: // Critical Power Juice,xml:2431 
     426                                res = usePotion(activeChar, 2431, 1); 
     427                                break; 
     428                        case 10263: // Critical Attack Juice,xml:2432 
     429                                res = usePotion(activeChar, 2432, 1); 
     430                                break; 
     431                        case 10264: // Casting Speed Juice,xml:2433 
     432                                res = usePotion(activeChar, 2433, 1); 
     433                                break; 
     434                        case 10265: // Evasion Juice,xml:2434 
     435                                res = usePotion(activeChar, 2434, 1); 
     436                                break; 
     437                        case 10266: // Magic Power Juice,xml:2435 
     438                                res = usePotion(activeChar, 2435, 1); 
     439                                break; 
     440                        case 10267: // Power Juice,xml:2436 
     441                                res = usePotion(activeChar, 2436, 1); 
     442                                break; 
     443                        case 10268: // Speed Juice,xml:2437 
     444                                res = usePotion(activeChar, 2437, 1); 
     445                                break; 
     446                        case 10269: // Defense Juice,xml:2438 
     447                                res = usePotion(activeChar, 2438, 1); 
     448                                break; 
    414449                        default: 
    415450                }