Changeset 8630 for trunk/L2J_DataPack/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java
- Timestamp:
- Jan 16, 2012 7:56:19 AM (4 months ago)
- Location:
- trunk/L2J_DataPack
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/L2J_DataPack
- Property svn:mergeinfo changed
/branches/unstable/L2J_DataPack_BETA merged: 8407-8426,8428-8480,8482-8491,8493-8588,8590-8629
- Property svn:mergeinfo changed
-
trunk/L2J_DataPack/dist/game/data/scripts/vehicles/AirShipGludioGracia/AirShipGludioGracia.java
r8406 r8630 31 31 32 32 /** 33 *34 33 * @author DS 35 *36 34 */ 37 35 public class AirShipGludioGracia extends Quest implements Runnable 38 36 { 39 private static final int[] CONTROLLERS = {32607, 32609}; 37 private static final int[] CONTROLLERS = 38 { 39 32607, 32609 40 }; 40 41 41 42 private static final int GLUDIO_DOCK_ID = 10; … … 49 50 new VehiclePathPoint(-151202, 252556, 231), 50 51 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 52 54 }; 53 55 … … 81 83 new VehiclePathPoint(-169763, 254815, 282), 82 84 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 84 87 }; 85 88 86 89 private static final VehiclePathPoint[] WARPGATE_TO_GLUDIO = 87 90 { 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) 94 92 }; 95 93 … … 110 108 return null; 111 109 } 112 if (player.isParalyzed())110 else if (player.isParalyzed()) 113 111 { 114 112 player.sendPacket(SystemMessageId.YOU_CANNOT_BOARD_AN_AIRSHIP_WHILE_PETRIFIED); 115 113 return null; 116 114 } 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()) 123 121 { 124 122 player.sendPacket(SystemMessageId.YOU_CANNOT_BOARD_AN_AIRSHIP_WHILE_FISHING); 125 123 return null; 126 124 } 127 if (player.isInCombat())125 else if (player.isInCombat()) 128 126 { 129 127 player.sendPacket(SystemMessageId.YOU_CANNOT_BOARD_AN_AIRSHIP_WHILE_IN_BATTLE); 130 128 return null; 131 129 } 132 if (player.isInDuel())130 else if (player.isInDuel()) 133 131 { 134 132 player.sendPacket(SystemMessageId.YOU_CANNOT_BOARD_AN_AIRSHIP_WHILE_IN_A_DUEL); 135 133 return null; 136 134 } 137 if (player.isSitting())135 else if (player.isSitting()) 138 136 { 139 137 player.sendPacket(SystemMessageId.YOU_CANNOT_BOARD_AN_AIRSHIP_WHILE_SITTING); 140 138 return null; 141 139 } 142 if (player.isCastingNow())140 else if (player.isCastingNow()) 143 141 { 144 142 player.sendPacket(SystemMessageId.YOU_CANNOT_BOARD_AN_AIRSHIP_WHILE_CASTING); 145 143 return null; 146 144 } 147 if (player.isCursedWeaponEquipped())145 else if (player.isCursedWeaponEquipped()) 148 146 { 149 147 player.sendPacket(SystemMessageId.YOU_CANNOT_BOARD_AN_AIRSHIP_WHILE_A_CURSED_WEAPON_IS_EQUIPPED); 150 148 return null; 151 149 } 152 if (player.isCombatFlagEquipped())150 else if (player.isCombatFlagEquipped()) 153 151 { 154 152 player.sendPacket(SystemMessageId.YOU_CANNOT_BOARD_AN_AIRSHIP_WHILE_HOLDING_A_FLAG); 155 153 return null; 156 154 } 157 if (player.getPet() != null || player.isMounted())155 else if (player.getPet() != null || player.isMounted()) 158 156 { 159 157 player.sendPacket(SystemMessageId.YOU_CANNOT_BOARD_AN_AIRSHIP_WHILE_A_PET_OR_A_SERVITOR_IS_SUMMONED); 160 158 return null; 161 159 } 162 163 if (_ship.isInDock() && _ship.isInsideRadius(player, 600, true, false)) 160 else if (_ship.isInDock() && _ship.isInsideRadius(player, 600, true, false)) 164 161 _ship.addPassenger(player); 165 162 … … 191 188 } 192 189 190 @Override 193 191 public void run() 194 192 { … … 203 201 break; 204 202 case 1: 205 // _ship.teleToLocation(-167874, 256731, -509, 41035, false);203 // _ship.teleToLocation(-167874, 256731, -509, 41035, false); 206 204 _ship.setOustLoc(OUST_GRACIA); 207 205 ThreadPoolManager.getInstance().scheduleGeneral(this, 5000); … … 222 220 break; 223 221 case 5: 224 // _ship.teleToLocation(-157261, 255664, 221, 64781, false);222 // _ship.teleToLocation(-157261, 255664, 221, 64781, false); 225 223 _ship.setOustLoc(OUST_GLUDIO); 226 224 ThreadPoolManager.getInstance().scheduleGeneral(this, 5000); … … 277 275 for (int id : CONTROLLERS) 278 276 { 279 if (((L2Npc) obj).getNpcId() == id)280 return (L2Npc) obj;277 if (((L2Npc) obj).getNpcId() == id) 278 return (L2Npc) obj; 281 279 } 282 280 }
Note: See TracChangeset
for help on using the changeset viewer.
