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/MithrilMines/MithrilMines.java

    r7665 r8630  
    1515package teleports.MithrilMines; 
    1616 
     17import com.l2jserver.gameserver.model.Location; 
    1718import com.l2jserver.gameserver.model.actor.L2Npc; 
    1819import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; 
     
    2223public class MithrilMines extends Quest 
    2324{ 
    24         private static final int[][] data = 
     25        private static final Location[] _locs = 
    2526        { 
    26                 {171946, -173352, 3440}, 
    27                 {175499, -181586, -904}, 
    28                 {173462, -174011, 3480}, 
    29                 {179299, -182831, -224}, 
    30                 {178591, -184615, 360}, 
    31                 {175499, -181586, -904} 
     27                new Location(171946, -173352, 3440), 
     28                new Location(175499, -181586, -904), 
     29                new Location(173462, -174011, 3480), 
     30                new Location(179299, -182831, -224), 
     31                new Location(178591, -184615, 360), 
     32                new Location(175499, -181586, -904) 
    3233        }; 
    3334         
     
    4849                QuestState st = player.getQuestState(getName()); 
    4950                 
    50                 int loc = Integer.parseInt(event) - 1; 
    51                 if (data.length > loc) 
     51                int index = Integer.parseInt(event) - 1; 
     52                if (_locs.length > index) 
    5253                { 
    53                         int x = data[loc][0]; 
    54                         int y = data[loc][1]; 
    55                         int z = data[loc][2]; 
     54                        Location loc = _locs[index]; 
    5655                         
    57                         player.teleToLocation(x, y, z); 
     56                        player.teleToLocation(loc, false); 
    5857                        st.exitQuest(true); 
    5958                } 
Note: See TracChangeset for help on using the changeset viewer.