Changeset 8630 for trunk/L2J_DataPack/dist/game/data/scripts/teleports/MithrilMines/MithrilMines.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/teleports/MithrilMines/MithrilMines.java (modified) (3 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/teleports/MithrilMines/MithrilMines.java
r7665 r8630 15 15 package teleports.MithrilMines; 16 16 17 import com.l2jserver.gameserver.model.Location; 17 18 import com.l2jserver.gameserver.model.actor.L2Npc; 18 19 import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; … … 22 23 public class MithrilMines extends Quest 23 24 { 24 private static final int[][] data=25 private static final Location[] _locs = 25 26 { 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) 32 33 }; 33 34 … … 48 49 QuestState st = player.getQuestState(getName()); 49 50 50 int loc= Integer.parseInt(event) - 1;51 if ( data.length > loc)51 int index = Integer.parseInt(event) - 1; 52 if (_locs.length > index) 52 53 { 53 int x = data[loc][0]; 54 int y = data[loc][1]; 55 int z = data[loc][2]; 54 Location loc = _locs[index]; 56 55 57 player.teleToLocation( x, y, z);56 player.teleToLocation(loc, false); 58 57 st.exitQuest(true); 59 58 }
Note: See TracChangeset
for help on using the changeset viewer.
