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/teleports/TeleportToRaceTrack/TeleportToRaceTrack.java

    r8406 r8630  
    1919import javolution.util.FastMap; 
    2020 
     21import com.l2jserver.gameserver.model.Location; 
    2122import com.l2jserver.gameserver.model.actor.L2Npc; 
    2223import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; 
     
    2728 
    2829/** 
    29  * @author Plim 
    30  * Original python script by DraX & updated by DrLecter 
     30 * @author Plim Original python script by DraX & updated by DrLecter 
    3131 */ 
    3232public class TeleportToRaceTrack extends Quest 
     
    3636        private static final Map<Integer, Integer> TELEPORTERS = new FastMap<Integer, Integer>(); 
    3737         
    38         private static final int[][] RETURN_LOCS =  
     38        private static final Location[] RETURN_LOCS = 
    3939        { 
    40                 {-80826, 149775, -3043},  
    41                 {-12672, 122776, -3116}, 
    42                 {15670, 142983, -2705},  
    43                 {83400, 147943, -3404},  
    44                 {111409, 219364, -3545},  
    45                 {82956, 53162, -1495},  
    46                 {146331, 25762, -2018},  
    47                 {116819, 76994, -2714},  
    48                 {43835, -47749, -792},  
    49                 {147930, -55281, -2728},  
    50                 {87386, -143246, -1293},  
    51                 {12882, 181053, -3560} 
     40                new Location(-80826, 149775, -3043), 
     41                new Location(-12672, 122776, -3116), 
     42                new Location(15670, 142983, -2705), 
     43                new Location(83400, 147943, -3404), 
     44                new Location(111409, 219364, -3545), 
     45                new Location(82956, 53162, -1495), 
     46                new Location(146331, 25762, -2018), 
     47                new Location(116819, 76994, -2714), 
     48                new Location(43835, -47749, -792), 
     49                new Location(147930, -55281, -2728), 
     50                new Location(87386, -143246, -1293), 
     51                new Location(12882, 181053, -3560) 
    5252        }; 
    5353         
     
    7575                                if (return_id < 13) 
    7676                                { 
    77                                         st.getPlayer().teleToLocation(RETURN_LOCS[return_id][0], RETURN_LOCS[return_id][1], RETURN_LOCS[return_id][2]); 
     77                                        st.getPlayer().teleToLocation(RETURN_LOCS[return_id], false); 
    7878                                        st.unset("id"); 
    7979                                } 
     
    9696                super(questId, name, descr); 
    9797                 
    98                 TELEPORTERS.put(30059, 3); //TRISHA 
    99                 TELEPORTERS.put(30080, 4); //CLARISSA 
    100                 TELEPORTERS.put(30177, 6); //VALENTIA 
    101                 TELEPORTERS.put(30233, 8); //ESMERALDA 
    102                 TELEPORTERS.put(30256, 2); //BELLA 
    103                 TELEPORTERS.put(30320, 1); //RICHLIN 
    104                 TELEPORTERS.put(30848, 7); //ELISA 
    105                 TELEPORTERS.put(30899, 5); //FLAUEN 
    106                 TELEPORTERS.put(31320, 9); //ILYANA 
    107                 TELEPORTERS.put(31275, 10); //TATIANA 
    108                 TELEPORTERS.put(31964, 11); //BILIA 
    109                 TELEPORTERS.put(31210, 12); //RACE TRACK GK 
     98                TELEPORTERS.put(30059, 3); // TRISHA 
     99                TELEPORTERS.put(30080, 4); // CLARISSA 
     100                TELEPORTERS.put(30177, 6); // VALENTIA 
     101                TELEPORTERS.put(30233, 8); // ESMERALDA 
     102                TELEPORTERS.put(30256, 2); // BELLA 
     103                TELEPORTERS.put(30320, 1); // RICHLIN 
     104                TELEPORTERS.put(30848, 7); // ELISA 
     105                TELEPORTERS.put(30899, 5); // FLAUEN 
     106                TELEPORTERS.put(31320, 9); // ILYANA 
     107                TELEPORTERS.put(31275, 10); // TATIANA 
     108                TELEPORTERS.put(31964, 11); // BILIA 
     109                TELEPORTERS.put(31210, 12); // RACE TRACK GK 
    110110                 
    111111                for (int npcId : TELEPORTERS.keySet()) 
     
    116116                 
    117117                addStartNpc(RACE_MANAGER); 
    118         addTalkId(RACE_MANAGER); 
     118                addTalkId(RACE_MANAGER); 
    119119        } 
    120120         
Note: See TracChangeset for help on using the changeset viewer.