root/trunk/AE-go_GameServer/src/com/aionemu/gameserver/services/TeleportService.java
| 2343 | 2440 | ||
|---|---|---|---|
175 | { | 175 | { |
176 | Storage inventory = player.getInventory(); | 176 | Storage inventory = player.getInventory(); |
177 | 177 | ||
178 | // TODO: make this a global factor and link with SM_PRICES | ||
179 | int transportationPrice = player.getPrices().getPriceForService(location.getPrice()); | ||
180 | 178 | ||
179 | // Possibly 20% cheaper flight costs due to 1.9 patch (?) | ||
180 | int basePrice = (int)(location.getPrice() * 0.8F); | ||
181 | |||
182 | long transportationPrice = player.getPrices().getPriceForService(basePrice); | ||
183 | |||
181 | if(!inventory.decreaseKinah(transportationPrice)) | 184 | if(!inventory.decreaseKinah(transportationPrice)) |
182 | { | 185 | { |
183 | PacketSendUtility.sendPacket(player, SM_SYSTEM_MESSAGE.NOT_ENOUGH_KINAH(transportationPrice)); | 186 | PacketSendUtility.sendPacket(player, SM_SYSTEM_MESSAGE.NOT_ENOUGH_KINAH(transportationPrice)); |
Download diff