Ignore:
Timestamp:
Jan 16, 2012 7:56:19 AM (4 months ago)
Author:
MELERIX
Message:

STABLE: Sync with BETA [8629]

Location:
trunk/L2J_DataPack
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/L2J_DataPack

  • trunk/L2J_DataPack/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java

    r8406 r8630  
    3131 
    3232/** 
    33  *  
    3433 * @author DS 
    35  * 
    3634 */ 
    3735public class AirShipGludioGracia extends Quest implements Runnable 
    3836{ 
    39         private static final int[] CONTROLLERS = {32607, 32609}; 
     37        private static final int[] CONTROLLERS = 
     38        { 
     39                32607, 32609 
     40        }; 
    4041         
    4142        private static final int GLUDIO_DOCK_ID = 10; 
     
    4950                new VehiclePathPoint(-151202, 252556, 231), 
    5051                new VehiclePathPoint(-160403, 256144, 222), 
    51                 new VehiclePathPoint(-167874, 256731, -509, 0, 41035) // teleport: x,y,z,speed=0,heading 
     52                new VehiclePathPoint(-167874, 256731, -509, 0, 41035) 
     53        // teleport: x,y,z,speed=0,heading 
    5254        }; 
    5355         
     
    8183                new VehiclePathPoint(-169763, 254815, 282), 
    8284                new VehiclePathPoint(-168067, 256626, 343), 
    83                 new VehiclePathPoint(-157261, 255664, 221, 0, 64781) // teleport: x,y,z,speed=0,heading 
     85                new VehiclePathPoint(-157261, 255664, 221, 0, 64781) 
     86        // teleport: x,y,z,speed=0,heading 
    8487        }; 
    8588         
    8689        private static final VehiclePathPoint[] WARPGATE_TO_GLUDIO = 
    8790        { 
    88                 new VehiclePathPoint(-153414, 255385, 221), 
    89                 new VehiclePathPoint(-149548, 258172, 221), 
    90                 new VehiclePathPoint(-146884, 257097, 221), 
    91                 new VehiclePathPoint(-146672, 254239, 221), 
    92                 new VehiclePathPoint(-147855, 252712, 206), 
    93                 new VehiclePathPoint(-149378, 252552, 198) 
     91                new VehiclePathPoint(-153414, 255385, 221), new VehiclePathPoint(-149548, 258172, 221), new VehiclePathPoint(-146884, 257097, 221), new VehiclePathPoint(-146672, 254239, 221), new VehiclePathPoint(-147855, 252712, 206), new VehiclePathPoint(-149378, 252552, 198) 
    9492        }; 
    9593         
     
    110108                        return null; 
    111109                } 
    112                 if (player.isParalyzed()) 
     110                else if (player.isParalyzed()) 
    113111                { 
    114112                        player.sendPacket(SystemMessageId.YOU_CANNOT_BOARD_AN_AIRSHIP_WHILE_PETRIFIED); 
    115113                        return null; 
    116114                } 
    117                 if (player.isDead() || player.isFakeDeath()) 
    118                 { 
    119                         player.sendPacket(SystemMessageId.YOU_CANNOT_BOARD_AN_AIRSHIP_WHILE_DEAD);       
    120                         return null; 
    121                 } 
    122                 if (player.isFishing()) 
     115                else if (player.isDead() || player.isFakeDeath()) 
     116                { 
     117                        player.sendPacket(SystemMessageId.YOU_CANNOT_BOARD_AN_AIRSHIP_WHILE_DEAD); 
     118                        return null; 
     119                } 
     120                else if (player.isFishing()) 
    123121                { 
    124122                        player.sendPacket(SystemMessageId.YOU_CANNOT_BOARD_AN_AIRSHIP_WHILE_FISHING); 
    125123                        return null; 
    126124                } 
    127                 if (player.isInCombat()) 
     125                else if (player.isInCombat()) 
    128126                { 
    129127                        player.sendPacket(SystemMessageId.YOU_CANNOT_BOARD_AN_AIRSHIP_WHILE_IN_BATTLE); 
    130128                        return null; 
    131129                } 
    132                 if (player.isInDuel()) 
     130                else if (player.isInDuel()) 
    133131                { 
    134132                        player.sendPacket(SystemMessageId.YOU_CANNOT_BOARD_AN_AIRSHIP_WHILE_IN_A_DUEL); 
    135133                        return null; 
    136134                } 
    137                 if (player.isSitting()) 
     135                else if (player.isSitting()) 
    138136                { 
    139137                        player.sendPacket(SystemMessageId.YOU_CANNOT_BOARD_AN_AIRSHIP_WHILE_SITTING); 
    140138                        return null; 
    141139                } 
    142                 if (player.isCastingNow()) 
     140                else if (player.isCastingNow()) 
    143141                { 
    144142                        player.sendPacket(SystemMessageId.YOU_CANNOT_BOARD_AN_AIRSHIP_WHILE_CASTING); 
    145143                        return null; 
    146144                } 
    147                 if (player.isCursedWeaponEquipped()) 
     145                else if (player.isCursedWeaponEquipped()) 
    148146                { 
    149147                        player.sendPacket(SystemMessageId.YOU_CANNOT_BOARD_AN_AIRSHIP_WHILE_A_CURSED_WEAPON_IS_EQUIPPED); 
    150148                        return null; 
    151149                } 
    152                 if (player.isCombatFlagEquipped()) 
     150                else if (player.isCombatFlagEquipped()) 
    153151                { 
    154152                        player.sendPacket(SystemMessageId.YOU_CANNOT_BOARD_AN_AIRSHIP_WHILE_HOLDING_A_FLAG); 
    155153                        return null; 
    156154                } 
    157                 if (player.getPet() != null || player.isMounted()) 
     155                else if (player.getPet() != null || player.isMounted()) 
    158156                { 
    159157                        player.sendPacket(SystemMessageId.YOU_CANNOT_BOARD_AN_AIRSHIP_WHILE_A_PET_OR_A_SERVITOR_IS_SUMMONED); 
    160158                        return null; 
    161159                } 
    162                  
    163                 if (_ship.isInDock() && _ship.isInsideRadius(player, 600, true, false)) 
     160                else if (_ship.isInDock() && _ship.isInsideRadius(player, 600, true, false)) 
    164161                        _ship.addPassenger(player); 
    165162                 
     
    191188        } 
    192189         
     190        @Override 
    193191        public void run() 
    194192        { 
     
    203201                                        break; 
    204202                                case 1: 
    205                                         //_ship.teleToLocation(-167874, 256731, -509, 41035, false); 
     203                                        // _ship.teleToLocation(-167874, 256731, -509, 41035, false); 
    206204                                        _ship.setOustLoc(OUST_GRACIA); 
    207205                                        ThreadPoolManager.getInstance().scheduleGeneral(this, 5000); 
     
    222220                                        break; 
    223221                                case 5: 
    224                                         //                                      _ship.teleToLocation(-157261, 255664, 221, 64781, false); 
     222                                        // _ship.teleToLocation(-157261, 255664, 221, 64781, false); 
    225223                                        _ship.setOustLoc(OUST_GLUDIO); 
    226224                                        ThreadPoolManager.getInstance().scheduleGeneral(this, 5000); 
     
    277275                                for (int id : CONTROLLERS) 
    278276                                { 
    279                                         if (((L2Npc)obj).getNpcId() == id) 
    280                                                 return (L2Npc)obj; 
     277                                        if (((L2Npc) obj).getNpcId() == id) 
     278                                                return (L2Npc) obj; 
    281279                                } 
    282280                        } 
Note: See TracChangeset for help on using the changeset viewer.