- 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/StakatoNest/StakatoNest.java (modified) (4 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/StakatoNest/StakatoNest.java
r7665 r8630 15 15 package teleports.StakatoNest; 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; 19 20 import com.l2jserver.gameserver.model.quest.Quest; 20 21 import com.l2jserver.gameserver.model.quest.QuestState; 21 import com.l2jserver.gameserver.model.quest.State;22 22 23 23 public class StakatoNest extends Quest 24 24 { 25 private final static int[][] data=25 private final static Location[] _locs = 26 26 { 27 {80456, -52322, -5640},28 {88718, -46214, -4640},29 {87464, -54221, -5120},30 {80848, -49426, -5128},31 {87682, -43291, -4128}27 new Location(80456, -52322, -5640), 28 new Location(88718, -46214, -4640), 29 new Location(87464, -54221, -5120), 30 new Location(80848, -49426, -5128), 31 new Location(87682, -43291, -4128) 32 32 }; 33 33 … … 49 49 st = newQuestState(player); 50 50 51 int loc= Integer.parseInt(event) - 1;51 int index = Integer.parseInt(event) - 1; 52 52 53 if ( data.length > loc)53 if (_locs.length > index) 54 54 { 55 int x = data[loc][0]; 56 int y = data[loc][1]; 57 int z = data[loc][2]; 55 Location loc = _locs[index]; 58 56 59 57 if (player.getParty() != null) … … 62 60 { 63 61 if (partyMember.isInsideRadius(player, 1000, true, true)) 64 partyMember.teleToLocation( x, y, z);62 partyMember.teleToLocation(loc, true); 65 63 } 66 64 } 67 player.teleToLocation( x, y, z);65 player.teleToLocation(loc, false); 68 66 st.exitQuest(true); 69 67 } … … 77 75 String htmltext = ""; 78 76 QuestState accessQuest = player.getQuestState("240_ImTheOnlyOneYouCanTrust"); 79 if ( accessQuest != null && accessQuest.getState() == State.COMPLETED)77 if ((accessQuest != null) && accessQuest.isCompleted()) 80 78 htmltext = "32640.htm"; 81 79 else
Note: See TracChangeset
for help on using the changeset viewer.
